/* ============================================
   CONSTRUCTION TIMESHEET SYSTEM
   COMPLETE DESIGN - OLD STYLE RESTORED
   ============================================ */

/* ========== VARIABLES ========== */
:root {
    --primary: #1e293b;
    --primary-light: #334155;
    --primary-dark: #0f172a;
    --secondary: #f59e0b;
    --secondary-hover: #d97706;
    --success: #22c55e;
    --success-bg: #dcfce7;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --info: #3b82f6;
    --info-bg: #dbeafe;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

/* ========== RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f1f5f9;
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--info);
    text-decoration: none;
    transition: all 0.2s ease;
}
a:hover {
    color: var(--primary);
}

/* ========== LAYOUT ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== APP WRAPPER ========== */
.app-wrapper {
    display: flex;
    min-height: calc(100vh - 64px);
}

/* ========== NAVBAR ========== */
.navbar {
    background: var(--primary);
    color: white;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.navbar-brand a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-user .user-info {
    text-align: right;
    font-size: 13px;
}

.navbar-user .user-name {
    color: white;
    font-weight: 600;
}

.navbar-user .user-role {
    color: var(--gray-400);
    font-size: 11px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

/* Notification Bell */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 20px;
}

.notification-bell:hover {
    background: rgba(255,255,255,0.1);
}

.notification-bell .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notification-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    width: 360px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 2000;
}

.notification-dropdown.show {
    display: block;
}

.notification-dropdown .header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    color: var(--gray-800);
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: var(--info-bg);
}

.notification-item .title {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-800);
}

.notification-item .message {
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 2px;
}

.notification-item .time {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 4px;
}

/* ========== SIDEBAR ========== */
.sidebar {
    width: 240px;
    background: white;
    border-right: 1px solid var(--gray-200);
    height: calc(100vh - 64px);
    position: sticky;
    top: 64px;
    overflow-y: auto;
    padding: 16px 0;
    flex-shrink: 0;
}

.sidebar-section {
    padding: 0 12px;
    margin-bottom: 24px;
}

.sidebar-section .section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.sidebar-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.sidebar-item.active {
    background: var(--info-bg);
    color: var(--info);
}

.sidebar-item .icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    flex: 1;
    padding: 24px;
    max-width: 100%;
    overflow-x: hidden;
    background: #f1f5f9;
}

/* ========== PAGE HEADER ========== */
.page-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
}

.page-header .text-muted {
    color: var(--gray-500);
    margin-top: 4px;
}

.page-header .header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ========== CARDS ========== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
    gap: 8px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
}

.card-subtitle {
    font-size: 14px;
    color: var(--gray-500);
}

/* ========== STATS GRID ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card .icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .label {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: var(--success-bg);
    color: #16a34a;
}

.badge-warning {
    background: var(--warning-bg);
    color: #d97706;
}

.badge-danger {
    background: var(--danger-bg);
    color: #dc2626;
}

.badge-info {
    background: var(--info-bg);
    color: #2563eb;
}

.badge-gray {
    background: var(--gray-200);
    color: var(--gray-600);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #16a34a;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: var(--warning);
    color: var(--primary);
}

.btn-warning:hover {
    background: var(--secondary-hover);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-100);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.form-group .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--info);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

.form-control.error {
    border-color: var(--danger);
}

.form-control:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

.form-hint {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

.form-error {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

/* ========== TABLES ========== */
.table-wrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--gray-200);
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}

.table tr:hover {
    background: var(--gray-50);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--gray-500);
}

/* ========== ALERTS ========== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 1px solid transparent;
    font-size: 14px;
}

.alert-success {
    background: var(--success-bg);
    border-color: #86efac;
    color: #16a34a;
}

.alert-danger {
    background: var(--danger-bg);
    border-color: #fca5a5;
    color: #dc2626;
}

.alert-warning {
    background: var(--warning-bg);
    border-color: #fcd34d;
    color: #d97706;
}

.alert-info {
    background: var(--info-bg);
    border-color: #93c5fd;
    color: #2563eb;
}

/* ========== FILTER BAR ========== */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    background: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-600);
    text-decoration: none;
}

.filter-btn:hover {
    border-color: var(--gray-400);
}

.filter-btn.active {
    border-color: var(--info);
    background: var(--info-bg);
    color: var(--info);
}

.filter-btn .badge {
    margin-left: 4px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .sidebar.show {
        display: block;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        background: white;
        z-index: 999;
    }
    
    .notification-dropdown {
        width: 100%;
        right: -20px;
    }
    
    .stat-card .value {
        font-size: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 22px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========== PRINT ========== */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .navbar, .sidebar {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
}
/* ============================================
   CONSTRUCTION TIMESHEET SYSTEM
   MASTER STYLESHEET - VERSION 1.0
   ============================================ */

/* ========== VARIABLES ========== */
:root {
    --primary: #1e293b;
    --primary-dark: #0f172a;
    --secondary: #f59e0b;
    --success: #22c55e;
    --success-bg: #dcfce7;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --info: #3b82f6;
    --info-bg: #dbeafe;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

/* ========== RESET ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f1f5f9;
    color: var(--gray-900);
    line-height: 1.6;
    min-height: 100vh;
}
a { color: var(--info); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

/* ========== LAYOUT ========== */
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ========== NAVBAR ========== */
.navbar {
    background: var(--primary);
    color: white;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    color: white;
}
.navbar-brand a { color: white; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.navbar-user { display: flex; align-items: center; gap: 16px; }
.navbar-user .user-info { text-align: right; font-size: 13px; }
.navbar-user .user-name { color: white; font-weight: 600; }
.navbar-user .user-role { color: var(--gray-400); font-size: 11px; }
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

/* Notification */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 20px;
}
.notification-bell:hover { background: rgba(255,255,255,0.1); }
.notification-bell .badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
.notification-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    width: 360px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 2000;
}
.notification-dropdown.show { display: block; }
.notification-dropdown .header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    color: var(--gray-800);
}
.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
}
.notification-item:hover { background: var(--gray-50); }
.notification-item.unread { background: var(--info-bg); }
.notification-item .title { font-weight: 600; font-size: 14px; color: var(--gray-800); }
.notification-item .message { font-size: 13px; color: var(--gray-600); margin-top: 2px; }
.notification-item .time { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

/* ========== SIDEBAR ========== */
.app-wrapper { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
    width: 240px;
    background: white;
    border-right: 1px solid var(--gray-200);
    height: calc(100vh - 64px);
    position: sticky;
    top: 64px;
    overflow-y: auto;
    padding: 16px 0;
    flex-shrink: 0;
}
.sidebar-section { padding: 0 12px; margin-bottom: 24px; }
.sidebar-section .section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 12px;
    margin-bottom: 8px;
}
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.sidebar-item:hover { background: var(--gray-100); color: var(--primary); }
.sidebar-item.active { background: var(--info-bg); color: var(--info); }
.sidebar-item .icon { font-size: 18px; width: 24px; text-align: center; }

/* ========== MAIN CONTENT ========== */
.main-content { flex: 1; padding: 24px; max-width: 100%; overflow-x: hidden; background: #f1f5f9; }
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 28px; font-weight: 700; color: var(--gray-900); }
.page-header .text-muted { color: var(--gray-500); margin-top: 4px; }
.page-header .header-actions { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }

/* ========== CARDS ========== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
    gap: 8px;
}
.card-title { font-size: 18px; font-weight: 700; color: var(--gray-800); }
.card-subtitle { font-size: 14px; color: var(--gray-500); }

/* ========== STATS ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .icon { font-size: 28px; margin-bottom: 8px; }
.stat-card .value { font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-card .label { font-size: 14px; color: var(--gray-500); margin-top: 4px; }

/* ========== BADGES ========== */
.badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-success { background: var(--success-bg); color: #16a34a; }
.badge-warning { background: var(--warning-bg); color: #d97706; }
.badge-danger { background: var(--danger-bg); color: #dc2626; }
.badge-info { background: var(--info-bg); color: #2563eb; }
.badge-gray { background: var(--gray-200); color: var(--gray-600); }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #16a34a; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-outline { background: transparent; color: var(--gray-700); border: 2px solid var(--gray-300); }
.btn-outline:hover { background: var(--gray-100); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ========== FORMS ========== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--gray-700); margin-bottom: 4px; }
.form-group .required { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    background: white;
}
.form-control:focus {
    outline: none;
    border-color: var(--info);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}
.form-control:disabled { background: var(--gray-100); cursor: not-allowed; }
.form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; margin-top: 16px; }

/* ========== TABLES ========== */
.table-wrapper { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.table th {
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--gray-200);
}
.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
}
.table tr:hover { background: var(--gray-50); }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }

/* ========== ALERTS ========== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    border: 1px solid transparent;
    font-size: 14px;
}
.alert-success { background: var(--success-bg); border-color: #86efac; color: #16a34a; }
.alert-danger { background: var(--danger-bg); border-color: #fca5a5; color: #dc2626; }
.alert-warning { background: var(--warning-bg); border-color: #fcd34d; color: #d97706; }
.alert-info { background: var(--info-bg); border-color: #93c5fd; color: #2563eb; }

/* ========== LOGIN ========== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 20px;
}
.login-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-header { text-align: center; margin-bottom: 32px; }
.login-header h1 { font-size: 24px; font-weight: 700; color: var(--gray-900); }
.login-header p { color: var(--gray-500); font-size: 14px; }
.login-footer { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--gray-200); }
.login-footer a { color: var(--info); font-size: 14px; }

/* ========== FILTER BAR ========== */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 16px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    background: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-600);
    text-decoration: none;
}
.filter-btn:hover { border-color: var(--gray-400); }
.filter-btn.active { border-color: var(--info); background: var(--info-bg); color: var(--info); }
.filter-btn .badge { margin-left: 4px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .sidebar.show { display: block; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; width: 100%; background: white; z-index: 999; }
    .notification-dropdown { width: 100%; right: -20px; }
    .stat-card .value { font-size: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .page-header h1 { font-size: 22px; }
    .container { padding: 0 12px; }
    .main-content { padding: 16px; }
    .login-box { padding: 28px 20px; }
    .login-header h1 { font-size: 20px; }
}

/* ========== PRINT ========== */
@media print {
    .no-print { display: none !important; }
    body { background: white; }
    .card { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
    .navbar, .sidebar { display: none !important; }
    .main-content { padding: 0; }
}

/* ============================================
   USER EDIT PAGE STYLES
   ============================================ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

hr {
    margin: 20px 0;
    border: none;
    border-top: 2px solid var(--gray-200);
}

h4 {
    margin-bottom: 16px;
    color: var(--gray-700);
}

.form-hint {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}