/* ============================================
   BOOKING SYSTEM - DESIGN SYSTEM
   Aesthetic: Industrial Precision + Corporate Edge
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --ink:       #0d0d0f;
    --ink-soft:  #1a1a1f;
    --ink-muted: #2c2c35;
    --line:      #2e2e38;
    --line-soft: #3d3d4a;
    --fog:       #6b6b7e;
    --mist:      #9898aa;
    --paper:     #f4f3f0;
    --paper-off: #eceae6;
    --white:     #ffffff;

    --accent:    #e8500a;
    --accent-2:  #f07030;
    --accent-glow: rgba(232, 80, 10, 0.15);
    --green:     #1aab6d;
    --red:       #e03c3c;
    --yellow:    #f5a623;

    --font-display: 'Bebas Neue', sans-serif;
    --font-body:    'DM Sans', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    --radius-sm: 4px;
    --radius:    8px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
    --shadow:    0 4px 16px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.10);
    --shadow-accent: 0 4px 20px rgba(232, 80, 10, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--ink);
    color: var(--paper);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ink-soft); }
::-webkit-scrollbar-thumb { background: var(--line-soft); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--fog); }

/* ============================================
   ADMIN LAYOUT
   ============================================ */

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ---- SIDEBAR ---- */
.sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--ink-soft);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-logo {
    padding: 28px 24px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 38px; height: 38px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--white);
}

.logo-text span { color: var(--accent); }

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--fog);
    padding: 8px 12px 4px;
    font-family: var(--font-mono);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--mist);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    margin-bottom: 2px;
    position: relative;
}

.nav-item:hover {
    background: var(--ink-muted);
    color: var(--paper);
}

.nav-item.active {
    background: var(--accent-glow);
    color: var(--accent-2);
    border-left: 2px solid var(--accent);
}

.nav-item .nav-icon {
    width: 18px; height: 18px;
    flex-shrink: 0;
    opacity: 0.8;
}

.nav-badge {
    margin-left: auto;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    font-family: var(--font-mono);
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--line);
}

.admin-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--ink-muted);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.admin-avatar {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.admin-info { flex: 1; min-width: 0; }

.admin-info .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--paper);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-info .role {
    font-size: 11px;
    color: var(--fog);
    font-family: var(--font-mono);
}

/* ---- MAIN CONTENT ---- */
.main-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 60px;
    background: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 1.5px;
    color: var(--white);
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-body {
    padding: 28px;
    flex: 1;
}

/* ============================================
   CARDS & STATS
   ============================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s;
}

.stat-card:hover { border-color: var(--line-soft); }

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--accent);
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--fog);
    font-family: var(--font-mono);
    margin-bottom: 8px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 40px;
    letter-spacing: 1px;
    color: var(--white);
    line-height: 1;
}

.stat-sub {
    font-size: 12px;
    color: var(--mist);
    margin-top: 4px;
}

.card {
    background: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title {
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--white);
}

.card-body { padding: 20px; }

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--mist);
    font-family: var(--font-mono);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    background: var(--ink-muted);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.15s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    background: var(--ink);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder { color: var(--fog); }

select.form-control option {
    background: var(--ink-muted);
    color: var(--paper);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.slug-preview {
    font-size: 12px;
    color: var(--accent-2);
    margin-top: 6px;
    font-family: var(--font-mono);
    padding: 6px 10px;
    background: var(--ink);
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
}

.slug-preview span { color: var(--fog); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    text-decoration: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
}
.btn-primary:hover {
    background: var(--accent-2);
    box-shadow: var(--shadow-accent);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--ink-muted);
    color: var(--paper);
    border: 1px solid var(--line-soft);
}
.btn-secondary:hover {
    background: var(--line);
    border-color: var(--fog);
}

.btn-ghost {
    background: transparent;
    color: var(--mist);
    border: 1px solid var(--line);
}
.btn-ghost:hover {
    background: var(--ink-muted);
    color: var(--paper);
}

.btn-danger {
    background: transparent;
    color: var(--red);
    border: 1px solid rgba(224, 60, 60, 0.3);
}
.btn-danger:hover {
    background: rgba(224, 60, 60, 0.1);
    border-color: var(--red);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-icon {
    padding: 8px;
    width: 34px; height: 34px;
    justify-content: center;
}

/* ============================================
   TABLE
   ============================================ */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--fog);
    font-family: var(--font-mono);
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--line);
    transition: background 0.1s;
}

tbody tr:hover { background: var(--ink-muted); }
tbody tr:last-child { border-bottom: none; }

tbody td {
    padding: 12px 14px;
    font-size: 13px;
    color: var(--paper);
    vertical-align: middle;
}

/* ============================================
   BADGES & TAGS
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.3px;
}

.badge-active  { background: rgba(26,171,109,0.15); color: var(--green); border: 1px solid rgba(26,171,109,0.25); }
.badge-inactive { background: rgba(224,60,60,0.12); color: var(--red); border: 1px solid rgba(224,60,60,0.2); }
.badge-dept {
    background: var(--ink-muted);
    color: var(--mist);
    border: 1px solid var(--line);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.alert-success { background: rgba(26,171,109,0.1); border: 1px solid rgba(26,171,109,0.25); color: #4ade80; }
.alert-error   { background: rgba(224,60,60,0.1); border: 1px solid rgba(224,60,60,0.25); color: #f87171; }
.alert-info    { background: rgba(232,80,10,0.1); border: 1px solid rgba(232,80,10,0.25); color: var(--accent-2); }

/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
    background: var(--ink-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 18px;
    letter-spacing: 1px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--fog);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s;
    font-size: 18px;
    line-height: 1;
}

.modal-close:hover { color: var(--paper); background: var(--ink-muted); }

.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ============================================
   PUBLIC FORM PAGE
   ============================================ */

.form-page {
    min-height: 100vh;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.form-page::before {
    content: '';
    position: fixed;
    top: -20%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(232,80,10,0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.form-page::after {
    content: '';
    position: fixed;
    bottom: -20%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(232,80,10,0.05) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.form-topbar {
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: rgba(13,13,15,0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.form-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.form-logo-icon {
    width: 32px; height: 32px;
    background: var(--accent);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}

.form-logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--white);
}

.form-logo-text span { color: var(--accent); }

.form-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    position: relative;
    z-index: 1;
}

.form-card {
    width: 100%;
    max-width: 520px;
    background: var(--ink-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.form-card-header {
    padding: 32px 36px 24px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, var(--ink-soft), var(--ink-muted));
    position: relative;
}

.form-card-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.form-step-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: 6px;
}

.form-card-title {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 1.5px;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 8px;
}

.form-card-desc {
    font-size: 14px;
    color: var(--mist);
    line-height: 1.5;
}

.form-card-body {
    padding: 28px 36px 32px;
}

/* Department Grid */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.dept-option {
    position: relative;
}

.dept-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}

.dept-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    background: var(--ink-muted);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    color: var(--mist);
    font-family: var(--font-mono);
    text-align: center;
    line-height: 1.2;
    transition: all 0.15s ease;
    min-height: 44px;
    letter-spacing: 0.3px;
}

.dept-label:hover {
    border-color: var(--accent-2);
    color: var(--paper);
    background: rgba(232,80,10,0.08);
}

.dept-option input:checked + .dept-label {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: var(--shadow-accent);
}

.form-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.form-submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.4s ease;
}

.form-submit-btn:hover {
    background: var(--accent-2);
    box-shadow: var(--shadow-accent);
    transform: translateY(-2px);
}

.form-submit-btn:hover::before { left: 100%; }
.form-submit-btn:active { transform: translateY(0); }

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
    min-height: 100vh;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.3;
    pointer-events: none;
}

.login-bg-glow {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(232,80,10,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--ink-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-card-header {
    padding: 36px 32px 28px;
    text-align: center;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.login-card-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.login-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    background: var(--accent);
    border-radius: var(--radius);
    font-size: 26px;
    margin-bottom: 16px;
}

.login-title {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 4px;
}

.login-sub {
    font-size: 13px;
    color: var(--fog);
}

.login-card-body { padding: 28px 32px 32px; }

/* ============================================
   SUCCESS PAGE
   ============================================ */

.success-card {
    width: 100%;
    max-width: 480px;
    background: var(--ink-soft);
    border: 1px solid rgba(26,171,109,0.3);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.5s ease;
}

.success-icon {
    width: 72px; height: 72px;
    background: rgba(26,171,109,0.15);
    border: 2px solid var(--green);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
    animation: pop 0.4s 0.2s ease both;
}

@keyframes pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.success-title {
    font-family: var(--font-display);
    font-size: 36px;
    letter-spacing: 2px;
    color: var(--green);
    margin-bottom: 12px;
}

.success-msg {
    font-size: 15px;
    color: var(--mist);
    line-height: 1.6;
    margin-bottom: 28px;
}

/* ============================================
   SEARCH & FILTER
   ============================================ */

.filter-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-input svg {
    position: absolute;
    left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--fog);
    width: 14px; height: 14px;
}

.search-input input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    background: var(--ink-muted);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    color: var(--paper);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    transition: all 0.15s;
}

.search-input input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input input::placeholder { color: var(--fog); }

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--fog);
}

.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 1px;
    color: var(--mist);
    margin-bottom: 6px;
}

.empty-state p { font-size: 13px; }

/* ============================================
   COPY URL
   ============================================ */

.copy-url {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 8px 10px 8px 14px;
    overflow: hidden;
}

.copy-url-text {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   DROPDOWN
   ============================================ */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    right: 0; top: calc(100% + 6px);
    background: var(--ink-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    display: none;
    overflow: hidden;
}

.dropdown-menu.open { display: block; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--mist);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.1s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--ink-muted);
    color: var(--paper);
}

.dropdown-item.danger { color: var(--red); }
.dropdown-item.danger:hover { background: rgba(224,60,60,0.1); }

.dropdown-divider {
    height: 1px;
    background: var(--line);
    margin: 4px 0;
}

/* ============================================
   FORM STATUS TOGGLE
   ============================================ */

.toggle {
    position: relative;
    display: inline-block;
    width: 40px; height: 22px;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute; inset: 0;
    background: var(--ink-muted);
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    left: 2px; top: 50%;
    transform: translateY(-50%);
    background: var(--fog);
    border-radius: 50%;
    transition: all 0.2s;
}

.toggle input:checked + .toggle-slider {
    background: rgba(26,171,109,0.2);
    border-color: var(--green);
}

.toggle input:checked + .toggle-slider::before {
    background: var(--green);
    transform: translateX(18px) translateY(-50%);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
    padding: 16px;
    border-top: 1px solid var(--line);
}

.page-btn {
    min-width: 32px; height: 32px;
    padding: 0 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ink-muted);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--mist);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    font-family: var(--font-mono);
}

.page-btn:hover { background: var(--line); color: var(--paper); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: white; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .dept-grid { grid-template-columns: repeat(2, 1fr); }
    .form-card-header, .form-card-body { padding-left: 22px; padding-right: 22px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .page-body { padding: 16px; }
}

/* ============================================
   UTILITIES
   ============================================ */

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }
.text-muted { color: var(--mist); }
.text-small { font-size: 12px; }
.font-mono { font-family: var(--font-mono); }
.w-full { width: 100%; }
.text-center { text-align: center; }
.hidden { display: none; }
