@import url("nts_dashboard.css");
@import url("slidebar.css");
:root {
  --ink:       #1A1208;
  --ink-mid:   #5C4A32;
  --ink-soft:  #9A8070;
  --gold:      #B08D4A;
  --gold-lt:   #D4A96A;
  --cream:     #FAF7F2;
  --panel:     #FFFFFF;
  --border:    #E8DDD0;
  --shadow:    0 2px 16px rgba(26,18,8,.08);
}
body {
    background: var(--cream);
    color: var(--ink);
    margin: 0;
    font-family: 'DM Sans', sans-serif;
}

.main-content {
    background: var(--cream);
    min-height: 100vh;
    margin-left: 78px;
    transition: margin-left 0.25s ease;
}

.sidebar.open ~ .main-content {
    margin-left: 260px;
}

.header {
    position: sticky;
    top: 0;

    z-index: 2000;

    height: 58px;

    background: #140c05;

    border-bottom: 1px solid rgba(212,169,106,0.12);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-right: 24px;

    box-shadow:
        0 4px 20px rgba(0,0,0,.25);
}


/* LEFT */
.header-left {
    display: flex;
    align-items: center;
}

/* PAGE INDICATOR */
.page-indicator {
    height: 58px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding-left: 108px;

    transition:
        padding-left 0.25s ease;
}

.sidebar.open ~ .header .page-indicator {
    padding-left: 290px;
}


.page-indicator-label {
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold-lt);
    font-size: 1.1rem;
    letter-spacing: .08em;
    font-weight: 600;
}

.page-indicator-current {
    color: var(--ink-soft);
    font-size: .7rem;
    letter-spacing: .06em;
    margin-left: 10px;
}

.menu-toggle {
    width: 42px;
    height: 42px;

    border-radius: 10px;

    border: 1px solid var(--border);

    background: var(--panel);

    color: var(--ink);

    font-size: 18px;

    cursor: pointer;

    transition: .2s;
}

.menu-toggle:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}
/* RIGHT */
.user-box {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 6px 12px;

    border-radius: 14px;

    cursor: pointer;

    transition: .2s;

    border: 1px solid transparent;
}

.user-box:hover {
    background: rgba(176,141,74,.06);

    border-color: rgba(176,141,74,.14);
}

/* AVATAR */
.avatar {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid rgba(176,141,74,.18);

    background: white;

    transition: .2s;
}

.user-box:hover .avatar {
    transform: scale(1.04);

    border-color: var(--gold);
}

/* TEXT */
.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.username {
    font-size: 13px;
    font-weight: 600;

    color: var(--ink-soft);
}

.job-title {
    font-size: 11px;

    color: var(--ink-soft);
}

/* dropdown */
.user-dropdown {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    min-width: 220px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(26,18,8,.12);

    display: none;
    flex-direction: column;

    z-index: 999;
}

.user-dropdown a {
    padding: 12px 14px;

    color: var(--ink);

    text-decoration: none;

    font-size: 13px;

    transition: .15s;
}

.user-dropdown a:hover {
    background: var(--cream);

    color: var(--gold);
}

  /* ================= TOAST ================= */

.toast-overlay {
    position: fixed;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 9999;
}

.toast {
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    animation: toastIn 0.3s ease, toastOut 0.4s ease 2s forwards;
}

.toast.success {
    background: #dcfce7;
    color: #166534;
}

.toast.error {
    background: #fee2e2;
    color: #991b1b;
}

.toast.info {
    background: #dbeafe;
    color: #1e40af;
}
/* ================= ANIMATIONS ================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastIn {
    from { opacity: 0; transform: scale(.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes toastOut {
    to { opacity: 0; transform: scale(.9); }
}

/* ── PAGE HEADER ── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 24px;

    padding: 18px 22px;

    border: 1px solid var(--border);
    border-radius: 4px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.92),
            rgba(250,247,242,.82)
        );

    backdrop-filter: blur(10px);

    box-shadow:
        0 6px 24px rgba(26,18,8,.06);

    position: relative;

    overflow: hidden;
}

/* GOLD ACCENT LINE */
.page-header::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 4px;

    background:
        linear-gradient(
            180deg,
            var(--gold-lt),
            var(--gold)
        );

    border-radius: 10px;
}

.page-subtitle {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;

    color: #6c63ff;

    margin-bottom: 6px;
}

.page-title {
    margin: 0;

    font-family: 'Cormorant Garamond', serif;

    font-size: 42px;
    font-weight: 700;

    color: var(--ink);

    letter-spacing: -.03em;

    line-height: 1;
}


.page-subtitle {
    color: var(--gold);
    letter-spacing: .12em;
    font-size: 11px;
}