@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --primary:        #6366f1;
    --primary-dark:   #4f46e5;
    --primary-light:  #eef2ff;
    --accent:         #06b6d4;
    --success:        #10b981;
    --danger:         #ef4444;
    --warning:        #f59e0b;
    --bg:             #f8fafc;
    --surface:        #ffffff;
    --surface2:       #f1f5f9;
    --border:         #e2e8f0;
    --text:           #0f172a;
    --text-2:         #334155;
    --text-muted:     #94a3b8;
    --sidebar-w:      260px;
    --radius:         12px;
    --radius-lg:      16px;
    --shadow-sm:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow:         0 4px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
    --shadow-lg:      0 12px 40px rgba(0,0,0,.12);
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    font-size: 14px;
    line-height: 1.6;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SIDEBAR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sidebar {
    width: var(--sidebar-w);
    min-height: 100vh;
    background: #1e1b4b;
    background: linear-gradient(160deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
}

.sidebar-logo {
    padding: 1.75rem 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    gap: .75rem;
}
.sidebar-logo .logo-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,.15);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(4px);
}
.sidebar-logo .logo-text { color: #fff; }
.sidebar-logo .logo-text strong { display: block; font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.sidebar-logo .logo-text span  { font-size: .72rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; }

.sidebar-nav {
    flex: 1;
    padding: 1.25rem .75rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.sidebar-section {
    font-size: .68rem;
    font-weight: 600;
    color: rgba(255,255,255,.35);
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 1rem .75rem .4rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .85rem;
    border-radius: 10px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: all .2s;
    position: relative;
}
.sidebar-link:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
    transform: translateX(2px);
}
.sidebar-link.active {
    background: rgba(255,255,255,.15);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 25%; bottom: 25%;
    width: 3px;
    background: #a5b4fc;
    border-radius: 0 3px 3px 0;
}
.sidebar-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
}
.sidebar-link.active .sidebar-icon,
.sidebar-link:hover .sidebar-icon {
    background: rgba(255,255,255,.15);
}

.sidebar-user {
    padding: 1rem .75rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: auto;
}
.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
}
.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a5b4fc, #818cf8);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}
.user-avatar.employer { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.user-meta { flex: 1; min-width: 0; }
.user-meta .name { color: #fff; font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta .role { color: rgba(255,255,255,.45); font-size: .7rem; }
.logout-btn {
    color: rgba(255,255,255,.45);
    text-decoration: none;
    font-size: .9rem;
    padding: .3rem;
    border-radius: 6px;
    transition: color .2s, background .2s;
    flex-shrink: 0;
}
.logout-btn:hover { color: #fca5a5; background: rgba(239,68,68,.15); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MAIN CONTENT
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.main-wrap {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: .85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow-sm);
}
.topbar-left { display: flex; align-items: center; gap: .75rem; }
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1;
    transition: background .2s;
}
.hamburger:hover { background: var(--surface2); }
.topbar-title { font-weight: 600; font-size: 1rem; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: .5rem; }
.topbar-date {
    font-size: .8rem;
    color: var(--text-muted);
    background: var(--surface2);
    padding: .35rem .75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.page-content { padding: 2rem; flex: 1; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAGE HEADER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}
.page-header h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; color: var(--text); }
.page-header p  { color: var(--text-muted); font-size: .875rem; margin-top: .15rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   STATS GRID
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    transform: translate(20px, -20px);
    opacity: .06;
}
.stat-card.blue::after   { background: #6366f1; }
.stat-card.cyan::after   { background: #06b6d4; }
.stat-card.green::after  { background: #10b981; }
.stat-card.orange::after { background: #f59e0b; }

.stat-icon-wrap {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.stat-card.blue   .stat-icon-wrap { background: #eef2ff; }
.stat-card.cyan   .stat-icon-wrap { background: #ecfeff; }
.stat-card.green  .stat-icon-wrap { background: #d1fae5; }
.stat-card.orange .stat-icon-wrap { background: #fef3c7; }

.stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stat-label { color: var(--text-muted); font-size: .8rem; font-weight: 500; margin-top: .35rem; }
.stat-card.blue   .stat-value { color: #4f46e5; }
.stat-card.cyan   .stat-value { color: #0891b2; }
.stat-card.green  .stat-value { color: #059669; }
.stat-card.orange .stat-value { color: #d97706; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CARDS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.card-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.card-title .title-icon {
    width: 28px; height: 28px;
    border-radius: 7px;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
}
.card-body { padding: 1.5rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BUTTONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1.1rem;
    border-radius: 9px;
    font-size: .845rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .18s;
    white-space: nowrap;
    font-family: inherit;
}
.btn:hover  { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0);    filter: brightness(.98);  }

.btn-primary   { background: var(--primary);   color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,.3); }
.btn-success   { background: var(--success);   color: #fff; box-shadow: 0 2px 8px rgba(16,185,129,.3); }
.btn-danger    { background: var(--danger);    color: #fff; box-shadow: 0 2px 8px rgba(239,68,68,.3);  }
.btn-warning   { background: var(--warning);   color: #fff; box-shadow: 0 2px 8px rgba(245,158,11,.3); }
.btn-secondary { background: var(--surface2);  color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost     { background: transparent;      color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface2); color: var(--text); }

.btn-sm { padding: .35rem .75rem; font-size: .78rem; border-radius: 7px; }
.btn-icon { padding: .45rem; width: 34px; height: 34px; justify-content: center; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TABLE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
    padding: .85rem 1.25rem;
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-muted);
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
}
thead th:first-child { border-radius: 0; }
tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
    vertical-align: middle;
    font-size: .875rem;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: #fafbff; }

.actions { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BADGES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.badge-employer { background: #ede9fe; color: #6d28d9; }
.badge-employer::before { background: #7c3aed; }
.badge-employee { background: #d1fae5; color: #065f46; }
.badge-employee::before { background: #059669; }
.badge-today    { background: #fef9c3; color: #854d0e; }
.badge-today::before { background: #ca8a04; }
.badge-info     { background: #e0f2fe; color: #0369a1; }
.badge-info::before { background: #0ea5e9; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FORMS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.form-wrap { max-width: 600px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: .82rem;
    color: var(--text-2);
    margin-bottom: .45rem;
    letter-spacing: .01em;
}
.form-group label .required { color: var(--danger); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: .65rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: .9rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
}
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.form-hint { font-size: .76rem; color: var(--text-muted); margin-top: .3rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ALERTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.alert {
    padding: .9rem 1.1rem;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    animation: slideDown .25s ease;
}
@keyframes slideDown { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: translateY(0); } }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info    { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ASSIGN CHECKBOXES
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.check-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .75rem;
}
.check-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
    user-select: none;
}
.check-item:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-1px); }
.check-item.checked { border-color: var(--primary); background: var(--primary-light); }
.check-item input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.check-item .check-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a5b4fc, #6366f1);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    text-transform: uppercase;
    flex-shrink: 0;
}
.check-item .check-name  { font-size: .875rem; font-weight: 600; color: var(--text); }
.check-item .check-email { font-size: .75rem; color: var(--text-muted); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FILTER BAR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.25rem;
}
.filter-tabs { display: flex; gap: .35rem; background: var(--surface2); padding: .3rem; border-radius: 10px; border: 1px solid var(--border); }
.filter-tab {
    padding: .35rem .85rem;
    border-radius: 7px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all .15s;
}
.filter-tab:hover  { color: var(--text); background: rgba(0,0,0,.04); }
.filter-tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.search-box { display: flex; gap: .4rem; flex: 1; min-width: 180px; max-width: 320px; }
.search-box input { flex: 1; padding: .45rem .85rem; border: 1.5px solid var(--border); border-radius: 9px; font-size: .85rem; font-family: inherit; background: #fff; }
.search-box input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   EMPTY STATE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-state .es-icon {
    width: 64px; height: 64px;
    background: var(--surface2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1rem;
}
.empty-state h3 { font-size: 1rem; font-weight: 600; color: var(--text-2); margin-bottom: .35rem; }
.empty-state p  { font-size: .875rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LOGIN PAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.login-wrap {
    min-height: 100vh;
    display: flex;
    background: var(--bg);
}
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 60%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.login-left::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    top: -150px; right: -150px;
}
.login-left::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    bottom: -80px; left: -80px;
}
.login-branding { position: relative; z-index: 1; color: #fff; max-width: 380px; }
.login-branding .brand-logo {
    width: 56px; height: 56px;
    background: rgba(255,255,255,.15);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}
.login-branding h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; margin-bottom: .75rem; }
.login-branding p  { color: rgba(255,255,255,.65); font-size: 1rem; line-height: 1.7; }
.login-features { margin-top: 2.5rem; display: flex; flex-direction: column; gap: .75rem; }
.login-feature {
    display: flex; align-items: center; gap: .75rem;
    color: rgba(255,255,255,.8); font-size: .9rem;
}
.login-feature-icon {
    width: 32px; height: 32px;
    background: rgba(255,255,255,.12);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.login-right {
    width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    flex-shrink: 0;
}
.login-card { width: 100%; max-width: 400px; }
.login-card h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: .3rem; }
.login-card .sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 2rem; }
.login-card .form-group label { font-size: .82rem; }
.login-card .form-group input { padding: .75rem 1rem; font-size: .95rem; }
.login-submit { width: 100%; padding: .8rem; font-size: .95rem; justify-content: center; margin-top: .5rem; }

@media (max-width: 900px) {
    .login-left { display: none; }
    .login-right { width: 100%; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.site-footer {
    text-align: center;
    padding: 1.25rem 2rem;
    color: var(--text-muted);
    font-size: .78rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-wrap { margin-left: 0; }
    .hamburger { display: flex; }
    .page-content { padding: 1.25rem; }
    .topbar { padding: .75rem 1.25rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .sidebar-overlay.active { display: block !important; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .filter-bar { flex-direction: column; align-items: flex-start; }
    .search-box { max-width: 100%; width: 100%; }
}
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 199;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SHIFT INFO BLOCK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.shift-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}
.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface2);
    padding: .22rem .65rem;
    border-radius: 999px;
    border: 1px solid var(--border);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ANIMATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.fade-in { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FINANCE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.fin-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 160px;
    padding-bottom: 1.5rem;
    position: relative;
    overflow-x: auto;
}
.fin-bar-wrap {
    flex: 1;
    min-width: 18px;
    max-width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.fin-bar-wrap.today .fin-bar { background: var(--warning) !important; }
.fin-bar-wrap.today .fin-bar-day { color: var(--warning); font-weight: 700; }
.fin-bar-label-top { font-size: .6rem; color: var(--text-muted); height: 16px; display: flex; align-items: flex-end; white-space: nowrap; }
.fin-bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.fin-bar { width: 100%; background: var(--primary); border-radius: 4px 4px 0 0; min-height: 3px; transition: height .3s; }
.fin-bar-day { font-size: .65rem; color: var(--text-muted); margin-top: .2rem; }

.fin-hbar-list { display: flex; flex-direction: column; gap: .6rem; }
.fin-hbar-row { display: flex; align-items: center; gap: .75rem; }
.fin-hbar-row.active .fin-hbar-label { font-weight: 700; color: var(--primary); }
.fin-hbar-row.active .fin-hbar-fill  { background: var(--primary); }
.fin-hbar-label { font-size: .78rem; width: 100px; flex-shrink: 0; color: var(--text-2); }
.fin-hbar-track { flex: 1; height: 10px; background: var(--surface2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.fin-hbar-fill  { height: 100%; background: #a5b4fc; border-radius: 999px; transition: width .5s; }
.fin-hbar-val   { font-size: .78rem; font-weight: 600; color: var(--text-2); width: 70px; text-align: right; flex-shrink: 0; }
.fin-mini-bar   { height: 4px; background: var(--surface2); border-radius: 3px; margin: .25rem 0 .15rem; overflow: hidden; }
.fin-tab-badge  { background: var(--primary); color: #fff; border-radius: 999px; font-size: .65rem; font-weight: 700; padding: .05rem .35rem; margin-left: .3rem; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESERVATIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.res-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .25rem .75rem; border-radius: 999px;
    font-size: .75rem; font-weight: 700;
}
.res-badge::before { content:''; width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.res-new        { background: #e0f2fe; color: #0369a1; }   .res-new::before        { background: #0ea5e9; }
.res-confirmed  { background: #d1fae5; color: #065f46; }   .res-confirmed::before  { background: #10b981; }
.res-cancelled  { background: #fee2e2; color: #991b1b; }   .res-cancelled::before  { background: #ef4444; }
.res-completed  { background: #ede9fe; color: #5b21b6; }   .res-completed::before  { background: #7c3aed; }
.res-no_show    { background: #fef3c7; color: #92400e; }   .res-no_show::before    { background: #f59e0b; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SETTINGS / WEBHOOK
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.wh-step {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: .75rem 0;
    border-bottom: 1px solid var(--border);
}
.wh-step:last-of-type { border-bottom: none; }
.wh-step-num {
    width: 26px; height: 26px;
    background: var(--primary); color: #fff;
    border-radius: 50%; font-size: .78rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: .1rem;
}
.wh-step strong { font-size: .875rem; display: block; margin-bottom: .1rem; }
.wh-step-desc { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }
.wh-step-desc code { background: var(--surface2); padding: .1rem .35rem; border-radius: 4px; font-size: .75rem; color: var(--primary-dark); }
.wh-code {
    background: #1e1b4b; color: #c7d2fe;
    border-radius: 10px; padding: 1rem 1.25rem;
    font-size: .72rem; line-height: 1.7;
    overflow-x: auto; white-space: pre;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PROFILE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.profile-layout { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .profile-layout { grid-template-columns: 1fr; } }

.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
}
.profile-card-top {
    padding: 2rem 1.5rem 3.5rem;
    position: relative;
}
.profile-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-top: .5rem;
}
.profile-avatar {
    width: 88px; height: 88px;
    border-radius: 50%;
    font-size: 2rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    color: #fff; margin: 0 auto;
    border: 4px solid rgba(255,255,255,.3);
    text-transform: uppercase;
}
.profile-avatar.employer { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.profile-avatar.employee { background: linear-gradient(135deg, #a5b4fc, #6366f1); }
.profile-card-body { padding: 1.5rem 1.5rem 1.25rem; margin-top: -2rem; }
.profile-name { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.profile-role { display: inline-flex; margin: .4rem auto .75rem; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1rem; }
.profile-stat { background: var(--surface2); border-radius: 9px; padding: .75rem .5rem; text-align: center; }
.profile-stat .ps-val  { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.profile-stat .ps-label{ font-size: .72rem; color: var(--text-muted); font-weight: 500; margin-top: .1rem; }

.profile-info-row {
    display: flex; align-items: flex-start; gap: .6rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .875rem;
}
.profile-info-row:last-child { border-bottom: none; }
.pir-icon  { font-size: .95rem; width: 20px; flex-shrink: 0; color: var(--text-muted); margin-top: .05rem; }
.pir-label { font-size: .72rem; font-weight: 600; color: var(--text-muted); }
.pir-val   { color: var(--text-2); font-weight: 500; word-break: break-all; }
.pir-empty { color: var(--text-muted); font-style: italic; font-size: .82rem; }

.section-title {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--text-muted);
    margin: 1.5rem 0 .75rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: .5rem;
}
.section-title:first-child { margin-top: 0; }

.form-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (max-width: 700px) { .form-grid-3, .form-grid-2 { grid-template-columns: 1fr; } }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CALENDAR — SHARED
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cal-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.cal-nav {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .3rem;
}
.cal-nav-btn {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 7px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    transition: background .15s, color .15s;
    text-decoration: none;
}
.cal-nav-btn:hover { background: var(--surface2); color: var(--text); }
.cal-nav-title { font-weight: 700; font-size: .95rem; padding: 0 .5rem; white-space: nowrap; min-width: 160px; text-align: center; }
.cal-today-btn { }

.cal-view-tabs {
    display: flex;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .3rem;
    gap: .25rem;
    margin-left: auto;
}
.cal-view-tab {
    padding: .35rem 1rem;
    border-radius: 7px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all .15s;
}
.cal-view-tab:hover  { color: var(--text); background: rgba(0,0,0,.04); }
.cal-view-tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CALENDAR — MONTH VIEW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cal-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--border);
    gap: 1px;
}
.cal-month-header {
    background: var(--surface2);
    padding: .6rem .5rem;
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-muted);
}
.cal-month-header.weekend { color: var(--danger); }
.cal-cell {
    background: var(--surface);
    min-height: 110px;
    padding: .4rem;
    cursor: pointer;
    transition: background .12s;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    position: relative;
}
.cal-cell:hover { background: #fafbff; }
.cal-cell.other-month { background: #fafafa; }
.cal-cell.other-month .cal-cell-num { color: #cbd5e1; }
.cal-cell.is-today { background: var(--primary-light) !important; }
.cal-cell.is-today .cal-cell-num {
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
}
.cal-cell-num {
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-2);
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    transition: background .15s;
}
.cal-cell:hover .cal-cell-num { background: var(--surface2); }
.cal-cell.is-today:hover .cal-cell-num { background: var(--primary-dark); }
.cal-chip {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .18rem .5rem;
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: #e0e7ff;
    color: #3730a3;
    border-left: 3px solid var(--primary);
}
.cal-chip:hover { filter: brightness(.93); }
.cal-chip.chip-1 { background: #e0e7ff; color: #3730a3; border-color: #6366f1; }
.cal-chip.chip-2 { background: #d1fae5; color: #065f46; border-color: #10b981; }
.cal-chip.chip-3 { background: #fef3c7; color: #92400e; border-color: #f59e0b; }
.cal-chip.chip-4 { background: #fee2e2; color: #991b1b; border-color: #ef4444; }
.cal-chip.chip-5 { background: #f3e8ff; color: #6b21a8; border-color: #a855f7; }
.cal-chip-time { opacity: .7; font-weight: 500; flex-shrink: 0; }
.cal-more {
    font-size: .7rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: .1rem .4rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background .12s;
}
.cal-more:hover { background: var(--surface2); color: var(--text); }
.cal-add-btn {
    position: absolute;
    bottom: .35rem; right: .35rem;
    width: 20px; height: 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: .85rem;
    display: none;
    align-items: center; justify-content: center;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    opacity: .8;
    transition: opacity .15s;
}
.cal-cell:hover .cal-add-btn { display: flex; }
.cal-add-btn:hover { opacity: 1; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CALENDAR — WEEK VIEW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cal-week-wrap {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--surface);
}
.cal-week-header {
    display: grid;
    grid-template-columns: 56px repeat(7, 1fr);
    border-bottom: 2px solid var(--border);
    background: var(--surface2);
}
.cal-week-header-day {
    padding: .75rem .5rem;
    text-align: center;
    border-left: 1px solid var(--border);
}
.cal-week-header-day .wh-name { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.cal-week-header-day .wh-num  { font-size: 1.4rem; font-weight: 800; letter-spacing: -.04em; color: var(--text); margin-top: .1rem; }
.cal-week-header-day.wh-today .wh-num { color: var(--primary); }
.cal-week-header-day.wh-today { background: var(--primary-light); }
.cal-week-header-day.wh-weekend .wh-name { color: var(--danger); }

.cal-week-body {
    display: grid;
    grid-template-columns: 56px repeat(7, 1fr);
    overflow-y: auto;
    max-height: 640px;
}
.cal-week-body::-webkit-scrollbar { width: 5px; }
.cal-week-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.cal-hour-labels { display: flex; flex-direction: column; }
.cal-hour-label {
    height: 56px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: .25rem .5rem 0 0;
    font-size: .68rem;
    font-weight: 600;
    color: var(--text-muted);
    flex-shrink: 0;
    border-right: 1px solid var(--border);
}
.cal-hour-label:first-child { margin-top: -8px; }

.cal-day-col {
    position: relative;
    border-left: 1px solid var(--border);
    min-height: var(--total-h, 896px);
}
.cal-day-col.col-today { background: rgba(99,102,241,.025); }
.cal-day-col.col-weekend { background: #fafafa; }

.cal-hour-line {
    position: absolute;
    left: 0; right: 0;
    border-top: 1px solid var(--border);
    pointer-events: none;
}
.cal-hour-line.half { border-top-style: dashed; opacity: .5; }
.cal-now-line {
    position: absolute;
    left: 0; right: 0;
    border-top: 2px solid var(--danger);
    z-index: 10;
    pointer-events: none;
}
.cal-now-line::before {
    content: '';
    position: absolute;
    left: -4px; top: -4px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--danger);
}

.cal-event {
    position: absolute;
    left: 3px; right: 3px;
    border-radius: 7px;
    padding: .3rem .5rem;
    font-size: .75rem;
    cursor: pointer;
    overflow: hidden;
    z-index: 5;
    transition: filter .15s, transform .15s;
    border-left: 3px solid transparent;
}
.cal-event:hover { filter: brightness(.93); transform: scale(1.01); z-index: 20; }
.cal-event .ev-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event .ev-time  { font-size: .68rem; opacity: .75; margin-top: .1rem; }
.cal-event .ev-emps  { font-size: .68rem; opacity: .75; }
.cal-event.ev-1 { background: #e0e7ff; color: #3730a3; border-color: #6366f1; }
.cal-event.ev-2 { background: #d1fae5; color: #065f46; border-color: #10b981; }
.cal-event.ev-3 { background: #fef3c7; color: #92400e; border-color: #f59e0b; }
.cal-event.ev-4 { background: #fee2e2; color: #991b1b; border-color: #ef4444; }
.cal-event.ev-5 { background: #f3e8ff; color: #6b21a8; border-color: #a855f7; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CALENDAR — DAY VIEW
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cal-day-wrap {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--surface);
}
.cal-day-header-bar {
    background: var(--surface2);
    border-bottom: 2px solid var(--border);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cal-day-header-bar .day-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; }
.cal-day-header-bar .day-sub   { font-size: .85rem; color: var(--text-muted); margin-top: .1rem; }
.cal-day-body {
    display: grid;
    grid-template-columns: 56px 1fr;
    overflow-y: auto;
    max-height: 640px;
}
.cal-day-body::-webkit-scrollbar { width: 5px; }
.cal-day-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SHIFT MODAL
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.modal-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; pointer-events: none;
    transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    transform: translateY(16px) scale(.97);
    transition: transform .22s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-header .modal-date { font-size: .82rem; color: var(--text-muted); margin-top: .2rem; }
.modal-close {
    width: 30px; height: 30px;
    border-radius: 7px;
    border: none; background: none; cursor: pointer;
    font-size: 1.1rem; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}
.modal-close:hover { background: var(--surface2); color: var(--text); }
.modal-body { padding: 1.25rem 1.5rem; }
.modal-row { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; font-size: .875rem; }
.modal-row:last-child { margin-bottom: 0; }
.modal-row .mr-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; margin-top: .05rem; }
.modal-row .mr-label { color: var(--text-muted); font-size: .78rem; font-weight: 600; margin-bottom: .15rem; }
.modal-row .mr-val   { color: var(--text-2); font-weight: 500; }
.modal-emp-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.modal-emp-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 999px; padding: .2rem .65rem;
    font-size: .75rem; font-weight: 600; color: var(--text-2);
}
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex; gap: .5rem; flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cal-week-header { grid-template-columns: 40px repeat(7, 1fr); }
    .cal-week-body   { grid-template-columns: 40px repeat(7, 1fr); }
    .cal-hour-label  { padding: .25rem .3rem 0 0; font-size: .62rem; }
    .cal-event .ev-title { font-size: .7rem; }
    .cal-month-grid { font-size: .8rem; }
    .cal-cell { min-height: 70px; }
    .cal-chip { font-size: .65rem; padding: .12rem .35rem; }
}

