:root {
    --dash-bg: #f7f2f8;
    --dash-card: #ffffff;
    --dash-ink: #261d2b;
    --dash-muted: #6f6277;
    --dash-line: #ecd8e8;
    --dash-primary: #cf2f84;
    --dash-primary-strong: #a71f68;
    --dash-soft: #fff0f8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    color: var(--dash-ink);
    background:
        radial-gradient(circle at 8% 14%, #f6deef 0, transparent 44%),
        radial-gradient(circle at 92% 86%, #ddd0f4 0, transparent 34%),
        var(--dash-bg);
    overflow-x: hidden;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

.dash-main {
    width: min(1280px, 92vw);
    margin: 1.2rem auto 2.5rem;
}

.dash-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--dash-line);
    backdrop-filter: blur(8px);
}

.dash-nav {
    width: min(1280px, 92vw);
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dash-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1a1625;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.dash-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(214,59,138,.25));
}

.dash-brand span em {
    font-style: normal;
    color: #D63B8A;
}

.dash-links {
    margin-left: auto;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.dash-links-middle {
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-links-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dash-links a {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    color: #57534E;
    font-size: 0.86rem;
    transition: all 0.18s ease;
}

.dash-links a:hover {
    background: #F5F5F0;
    color: #1C1917;
}

.dash-links a.active {
    color: #D63B8A;
    border-color: transparent;
    background: #FFF0F8;
}

.dash-links .logout-btn {
    border: 1.5px solid #EEEDE8;
    background: #ffffff;
    color: #1C1917;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    transition: all 0.18s ease;
    display: inline-block;
}

.dash-links .logout-btn:hover {
    border-color: #D6D3CD;
    background: #FAFAF9;
    color: #1C1917;
}

.dash-links.dash-links-staff {
    gap: 0.3rem;
}

.dash-links.dash-links-staff .dash-links-middle {
    gap: 0.3rem;
}

.dash-links.dash-links-staff a {
    padding: 0.3rem 0.56rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Nav Dropdown Fix */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    font-weight: 700;
    color: #5f4b67;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger {
    background: #fff;
    color: #b12371;
    box-shadow: 0 2px 8px rgba(73, 20, 52, 0.05);
}

.nav-dropdown-trigger.active {
    color: #fff;
    background: linear-gradient(135deg, var(--dash-primary), var(--dash-primary-strong));
}

.nav-dropdown-content {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: #fff;
    border: 1px solid #ead7e8;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(73, 20, 52, 0.12);
    min-width: 170px;
    padding: 0.4rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-content a {
    display: block !important;
    width: 100% !important;
    padding: 0.6rem 0.8rem !important;
    border-radius: 8px !important;
    font-size: 0.78rem !important;
    color: #5f4b67 !important;
    text-align: left !important;
    background: transparent !important;
    border: none !important;
    white-space: nowrap !important;
}

.nav-dropdown-content a:hover {
    background: #fdf2f8 !important;
    color: #ad246d !important;
}

.dash-burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #ebd7e7;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
}

.dash-burger span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #7a5572;
}

.section-wrap {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--dash-line);
    border-radius: 18px;
    padding: clamp(0.75rem, 1.5vw, 1.2rem);
}

.section-title-block {
    margin-bottom: 1rem;
}

.section-title-block.center {
    text-align: center;
}

.section-title-block h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.4rem, 2.8vw, 2.05rem);
    line-height: 1.05;
}

.section-title-block p {
    margin-top: 0.35rem;
    color: var(--dash-muted);
    font-size: 0.9rem;
}

.soft-btn,
.ghost-btn {
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 0.56rem 0.82rem;
    border: 1px solid transparent;
}

.soft-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--dash-primary), var(--dash-primary-strong));
    box-shadow: 0 9px 18px rgba(167, 31, 104, 0.22);
}

.ghost-btn {
    color: #ad246d !important;
    border: 1.5px solid #ad246d !important;
    background: #ffffff !important;
    transition: all 0.2s ease;
    display: inline-block;
}

.ghost-btn:hover {
    background: #ad246d !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(173, 36, 109, 0.15);
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: revealIn 500ms ease forwards;
}

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

/* Loading State Utilities */
.loading-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

.reveal-after-load {
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: opacity 0.4s ease-in-out !important;
}

@media (max-width: 900px) {
    .dash-burger {
        display: inline-flex;
    }

    .dash-links {
        position: absolute;
        top: 68px;
        left: 3vw;
        right: 3vw;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--dash-line);
        border-radius: 14px;
        padding: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .dash-links.open {
        display: flex;
    }

    .dash-links-middle, .dash-links-right {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin: 0;
    }

    .dash-links a {
        text-align: center;
        width: 100%;
    }

    .dash-links .logout-btn {
        text-align: center;
        width: 100%;
    }

    .dash-main {
        width: 94vw;
    }
}

@media (max-width: 480px) {
    .dash-main {
        width: 96vw;
    }

    .section-wrap {
        padding: 1rem;
    }

    .form-grid.two-col {
        grid-template-columns: 1fr;
    }
}


/* Demo Fill Buttons */
.demo-fill-btn {
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--dash-primary), var(--dash-primary-strong));
    color: #fff;
    font-weight: 800;
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(167, 31, 104, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.demo-fill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(167, 31, 104, 0.3);
}
