:root {
    --bg: #09090b;
    /* Zinc 950 */
    --card: #121214;
    --border: #27272a;
    --border-hover: #3f3f46;
    --primary: #6366f1;
    /* Indigo 500 */
    --primary-hover: #4f46e5;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --font: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font);
    height: 100vh;
    overflow: hidden;
}

/* --- PROFESSIONAL BACKGROUND --- */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.vignette {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at center, transparent 0%, var(--bg) 90%);
}

.app-shell {
    display: flex;
    height: 100vh;
}

/* --- SIDEBAR (Desktop) --- */
.sidebar {
    width: 72px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    background: #000;
    z-index: 10;
}

.logo-box {
    width: 40px;
    height: 40px;
    background: white;
    color: black;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    text-decoration: none;
}

.nav-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
}

.nav-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border-radius: 8px;
    transition: 0.2s;
    font-size: 1.1rem;
    text-decoration: none;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border-color: rgba(99, 102, 241, 0.2);
}

.sep {
    width: 32px;
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* --- MOBILE HEADER --- */
.mobile-header {
    display: none;
    height: 60px;
    border-bottom: 1px solid var(--border);
    background: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
}

.back-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-title {
    font-weight: 600;
    font-size: 1rem;
}

.placeholder {
    width: 40px;
}

/* Balances the layout */

/* --- MAIN CONTENT --- */
.content-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 40px;
    display: flex;
    justify-content: center;
}

.form-wrapper {
    width: 100%;
    max-width: 600px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-section {
    margin-bottom: 40px;
    text-align: center;
}

.header-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.header-section p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- FORM STYLING --- */
.pro-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.form-section {
    margin-bottom: 24px;
}

.label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Grid Select (Radio) */
.grid-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.select-option input {
    display: none;
}

.option-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #18181b;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: 0.2s;
    color: var(--text-muted);
}

.option-box:hover {
    border-color: var(--border-hover);
    background: #202022;
    color: white;
}

.select-option input:checked+.option-box {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 1px var(--primary);
}

.option-box i {
    font-size: 1.2rem;
}

.option-box span {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Inputs */
.input-group input,
.input-group textarea {
    width: 100%;
    background: #18181b;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-family: var(--font);
    font-size: 0.95rem;
    transition: 0.2s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    background: #202022;
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Range Slider */
.priority-slider input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    background: transparent;
    margin-bottom: 10px;
}

.priority-slider input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
}

.priority-slider input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: -6px;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Buttons */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
}

.btn-cancel {
    padding: 10px 20px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: 0.2s;
}

.btn-cancel:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.btn-submit {
    background: white;
    color: black;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-submit:hover {
    background: #e4e4e7;
    transform: translateY(-1px);
}

/* --- MODAL --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.modal-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    transform: scale(0.95);
    transition: 0.3s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-backdrop.visible .modal-content {
    transform: scale(1);
}

.success-icon {
    width: 60px;
    height: 60px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.modal-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.modal-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.hidden {
    display: none;
}

/* --- MOBILE BREAKPOINTS --- */
@media (max-width: 768px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    /* Hide desktop sidebar */
    .mobile-header {
        display: flex;
    }

    /* Show mobile header */

    .content-area {
        padding: 80px 20px 40px 20px;
    }

    /* Adjust padding for header */
    .header-section h1 {
        font-size: 1.5rem;
    }

    .grid-select {
        grid-template-columns: 1fr;
    }

    /* Stack radio buttons */
    .option-box {
        flex-direction: row;
        justify-content: center;
    }
}
