/* ================================================================
   XCORD - GLOBAL DESIGN SYSTEM
   Theme: Midnight Indigo Glassmorphism
   ================================================================ */

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

/* ----------------------------------------------------------------
   CSS CUSTOM PROPERTIES (Design Tokens)
   ---------------------------------------------------------------- */
:root {
    /* Primary Palette */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;

    /* Accent / Cyan */
    --accent-400: #22d3ee;
    --accent-500: #06b6d4;
    --accent-600: #0891b2;

    /* Surfaces */
    --bg-body: #0f0e17;
    --bg-surface: rgba(30, 27, 56, 0.7);
    --bg-surface-solid: #1e1b38;
    --bg-card: rgba(40, 36, 70, 0.55);
    --bg-card-hover: rgba(50, 45, 85, 0.7);
    --bg-input: rgba(255, 255, 255, 0.06);
    --bg-sidebar: rgba(20, 18, 40, 0.85);

    /* Text */
    --text-primary: #f0eef6;
    --text-secondary: #a8a3c0;
    --text-muted: #6b6590;
    --text-accent: #818cf8;
    --text-on-primary: #ffffff;

    /* Borders */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-active: rgba(99, 102, 241, 0.5);

    /* Status Colors */
    --success: #34d399;
    --success-bg: rgba(52, 211, 153, 0.12);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, 0.12);
    --danger: #f87171;
    --danger-bg: rgba(248, 113, 113, 0.12);
    --info: #60a5fa;
    --info-bg: rgba(96, 165, 250, 0.12);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

    /* Layout */
    --sidebar-width: 260px;
    --header-height: 64px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------------------------------------------
   RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -1%) rotate(1deg); }
    66% { transform: translate(-1%, 2%) rotate(-1deg); }
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--primary-300); }

/* ----------------------------------------------------------------
   LAYOUT: SIDEBAR + MAIN
   ---------------------------------------------------------------- */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-slow);
    overflow-y: auto;
}

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

.sidebar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    font-weight: 800;
    flex-shrink: 0;
}

.sidebar-brand .brand-text h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.sidebar-brand .brand-text span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.sidebar-nav .nav-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 12px 12px 8px;
    font-weight: 600;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    margin-bottom: 2px;
    text-decoration: none;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.sidebar-nav a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.1));
    color: var(--primary-300);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--primary-500);
}

.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

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

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

.sidebar-user .user-info .user-role {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-user .logout-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--danger-bg);
    border: none;
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 14px;
}
.sidebar-user .logout-btn:hover {
    background: rgba(248, 113, 113, 0.25);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* TOP BAR */
.top-bar {
    height: var(--header-height);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 14, 23, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-bar .page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.top-bar .page-title span {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 14px;
    margin-left: 8px;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
}

/* PAGE CONTAINER */
.page-content {
    padding: 28px;
}

/* ----------------------------------------------------------------
   GLASS CARDS
   ---------------------------------------------------------------- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    transition: all var(--transition-base);
    animation: fadeInUp 0.4s ease both;
}
.card:hover {
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ----------------------------------------------------------------
   STAT CARDS
   ---------------------------------------------------------------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all var(--transition-base);
    animation: fadeInUp 0.4s ease both;
}
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-glow);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon.indigo { background: rgba(99, 102, 241, 0.15); color: var(--primary-400); }
.stat-icon.cyan { background: rgba(6, 182, 212, 0.15); color: var(--accent-400); }
.stat-icon.green { background: var(--success-bg); color: var(--success); }
.stat-icon.amber { background: var(--warning-bg); color: var(--warning); }
.stat-icon.red { background: var(--danger-bg); color: var(--danger); }
.stat-icon.blue { background: var(--info-bg); color: var(--info); }

.stat-card .stat-info { flex: 1; }

.stat-card .stat-number {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
    font-weight: 500;
}

/* ----------------------------------------------------------------
   TABLES
   ---------------------------------------------------------------- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

table.vtx-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

table.vtx-table thead th {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
table.vtx-table thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
table.vtx-table thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }

table.vtx-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

table.vtx-table tbody tr {
    transition: background var(--transition-fast);
}

table.vtx-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.04);
}

table.vtx-table tbody tr:last-child td { border-bottom: none; }

/* ----------------------------------------------------------------
   FORMS
   ---------------------------------------------------------------- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select option {
    background: var(--bg-surface-solid);
    color: var(--text-primary);
}

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

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: white;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #059669, var(--success));
    color: white;
    box-shadow: 0 2px 10px rgba(52, 211, 153, 0.25);
}
.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.35);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, var(--danger));
    color: white;
    box-shadow: 0 2px 10px rgba(248, 113, 113, 0.25);
}
.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(248, 113, 113, 0.35);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #d97706, var(--warning));
    color: #1a1a2e;
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.25);
}
.btn-warning:hover {
    transform: translateY(-1px);
    color: #1a1a2e;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

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

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ----------------------------------------------------------------
   BADGES / STATUS PILLS
   ---------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-default { background: rgba(255,255,255,0.06); color: var(--text-secondary); }
.badge-primary { background: rgba(99, 102, 241, 0.15); color: var(--primary-300); }

/* ----------------------------------------------------------------
   ALERTS
   ---------------------------------------------------------------- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.3s ease;
}

.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.2); }
.alert-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.2); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(251, 191, 36, 0.2); }
.alert-info { background: var(--info-bg); color: var(--info); border: 1px solid rgba(96, 165, 250, 0.2); }

/* ----------------------------------------------------------------
   ANNOUNCEMENT / MESSAGE CARDS
   ---------------------------------------------------------------- */
.announcement-item {
    border-left: 3px solid var(--primary-500);
    padding: 16px 20px;
    margin-bottom: 16px;
    background: rgba(99, 102, 241, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: all var(--transition-fast);
}
.announcement-item:hover {
    background: rgba(99, 102, 241, 0.08);
}
.announcement-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.announcement-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.announcement-item small {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    display: block;
}

/* ----------------------------------------------------------------
   ATTENDANCE CALENDAR
   ---------------------------------------------------------------- */
.calendar-header {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.calendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
}

.calendar th {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-300);
    padding: 12px 5px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
}

.calendar td {
    border: 1px solid var(--border-color);
    width: 14.28%;
    height: 100px;
    vertical-align: top;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.calendar td:hover:not(.empty) {
    border-color: var(--border-active);
}

.calendar .day-number {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.calendar .status {
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar .times {
    font-size: 9px;
    color: var(--text-muted);
}

.calendar .location {
    font-size: 8px;
    color: var(--text-muted);
    margin-top: 2px;
}

.calendar td.present {
    background: var(--success-bg);
    border-color: rgba(52, 211, 153, 0.2);
}
.calendar td.present .day-number,
.calendar td.present .status { color: var(--success); }

.calendar td.late {
    background: var(--warning-bg);
    border-color: rgba(251, 191, 36, 0.2);
}
.calendar td.late .day-number,
.calendar td.late .status { color: var(--warning); }

.calendar td.half_day {
    background: rgba(251, 146, 60, 0.12);
    border-color: rgba(251, 146, 60, 0.2);
}
.calendar td.half_day .day-number,
.calendar td.half_day .status { color: #fb923c; }

.calendar td.early_left {
    background: rgba(168, 163, 192, 0.08);
    border-color: rgba(168, 163, 192, 0.15);
}
.calendar td.early_left .day-number,
.calendar td.early_left .status { color: var(--text-secondary); }

.calendar td.absent {
    background: var(--danger-bg);
    border-color: rgba(248, 113, 113, 0.2);
}
.calendar td.absent .day-number,
.calendar td.absent .status { color: var(--danger); }

.calendar td.sunday {
    background: var(--info-bg);
    border-color: rgba(96, 165, 250, 0.15);
}
.calendar td.sunday .day-number,
.calendar td.sunday .status { color: var(--info); }

.calendar td.not_absent {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
}
.calendar td.not_absent .day-number,
.calendar td.not_absent .status { color: var(--accent-400); }

.calendar td.empty {
    background: transparent;
    border-color: transparent;
}

/* Legend */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border-radius: var(--radius-md);
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}
.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* ----------------------------------------------------------------
   CHECK-IN / CLOCK SECTION
   ---------------------------------------------------------------- */
.clock-display {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-400), var(--accent-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.shift-info {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.shift-info strong {
    color: var(--text-primary);
}

.check-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
}
.check-status.done {
    background: var(--success-bg);
    color: var(--success);
}

.location-info {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin: 12px 0;
    font-size: 13px;
    color: var(--accent-400);
}
.location-error {
    background: var(--danger-bg);
    border: 1px solid rgba(248, 113, 113, 0.15);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin: 12px 0;
    font-size: 13px;
    color: var(--danger);
}

/* ----------------------------------------------------------------
   ANIMATIONS
   ---------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 0; }
}

/* ----------------------------------------------------------------
   AUTH PAGES (Login/Register)
   ---------------------------------------------------------------- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-body);
    position: relative;
}

.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.14) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.auth-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease;
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 36px;
}

.auth-card .auth-logo .logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: 800;
    margin-bottom: 16px;
}

.auth-card .auth-logo h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
}

.auth-card .auth-logo p {
    color: var(--text-muted);
    margin-top: 6px;
    font-size: 14px;
}

/* ----------------------------------------------------------------
   EMPTY STATES
   ---------------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 40px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

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

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }

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

    .page-content {
        padding: 16px;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .calendar td {
        height: 70px;
        padding: 4px;
    }

    .calendar .status { font-size: 8px; }
    .calendar .times { font-size: 7px; }
    .calendar .day-number { font-size: 11px; }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}
.sidebar-overlay.active {
    display: block;
}

/* ----------------------------------------------------------------
   UTILITY CLASSES
   ---------------------------------------------------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 12px; }
.d-flex { display: flex; align-items: center; }
