/* ============================================
   School ENT - Professional CSS Framework
   Version: 3.0 | Primary: #00214a | Accent: #cebdab
   Cleaned & Optimized - No Duplicates
   ============================================ */

/* === CSS Variables === */
:root {
    /* Colors - More Professional & Modern Palette */
    --primary: #0f172a;       /* Darker Slate */
    --primary-dark: #020617;
    --primary-light: #1e293b;
    --accent: #3b82f6;        /* Bright Blue for emphasis */
    --accent-light: #eff6ff;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    
    /* Backgrounds */
    --bg-main: #f8fafc;       /* Brighter, cleaner Slate 50 */
    --bg-sidebar: #0f172a;    /* Match Primary */
    --bg-card: #ffffff;
    
    /* Text */
    --text-main: #1e293b;     /* Slate 800 */
    --text-muted: #64748b;    /* Slate 500 */
    --text-light: #94a3b8;    /* Slate 400 */
    
    /* Borders & Effects */
    --border-color: #e2e8f0;  /* Slate 200 */
    --radius: 6px;            /* Slightly sharper for professional feel */
    --radius-lg: 10px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.1s ease;

    /* Theme Colors (Light Versions) */
    --success-light: #ecfdf5;
    --danger-light: #fef2f2;
    --warning-light: #fffbeb;
    --info-light: #f0f9ff;
    --accent-light-bg: #eff6ff;

    /* Theme Borders */
    --success-border: #bbf7d0;
    --danger-border: #fecaca;
    --warning-border: #fef3c7;
    --info-border: #bae6fd;
}

/* === Theme Utility Classes === */
.theme-success-light, .stat-icon-success, .badge-success, .status-accepted, .overview-card-success .overview-icon, .stat-icon-emerald, .alert-success { background-color: var(--success-light); color: var(--success); }
.theme-danger-light, .stat-icon-danger, .badge-danger, .status-rejected, .stat-icon-rose, .alert-danger { background-color: var(--danger-light); color: var(--danger); }
.theme-warning-light, .stat-icon-warning, .badge-warning, .overview-card-warning .overview-icon, .alert-warning, .status-waiting { background-color: var(--warning-light); color: var(--warning); }
.theme-info-light, .stat-icon-info, .badge-info, .status-review, .overview-card-info .overview-icon, .stat-icon-sky, .alert-info { background-color: var(--info-light); color: var(--info); }
.theme-primary-light, .badge-primary, .stat-icon-primary, .overview-card-primary .overview-icon { background-color: var(--accent-light-bg); color: var(--accent); }

/* Theme Border Utilities */
.theme-success-border, .alert-success { border: 1px solid var(--success-border); }
.theme-danger-border, .alert-danger { border: 1px solid var(--danger-border); }
.theme-warning-border, .alert-warning { border: 1px solid var(--warning-border); }
.theme-info-border, .alert-info { border: 1px solid var(--info-border); }


/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.03) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(206, 189, 171, 0.03) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.5;
    font-size: 0.875rem;      /* Standard professional size */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 { 
    font-weight: 600;         /* Slightly less bold for elegance */
    line-height: 1.25;
    color: var(--primary);
    letter-spacing: -0.01em;
}

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

a:hover { color: var(--primary-light); }

/* === Layout === */
.main-container {
    display: flex;
    margin-top: 56px;         /* Match header height */
    min-height: calc(100vh - 56px);
    overflow-x: hidden;
}

.content { 
    flex: 1; 
    padding: 0.75rem;         /* Tighter padding for space utilization */
    max-width: 100%; 
    transition: padding 0.3s ease;
}

@media (min-width: 768px) {
    .content { padding: 1rem; }
}

@media (min-width: 1024px) {
    .sidebar.sidebar-open ~ .content { margin-right: 260px; }
    .sidebar.collapsed ~ .content { margin-right: 70px; }
}

/* === Header === */
header.site-header {
    background: var(--bg-card);
    height: 56px;             /* Slimmer header */
    padding: 0 1rem;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.header-right, .header-nav { display: flex; align-items: center; gap: 0.75rem; }

.header-brand { display: flex; align-items: center; gap: 0.5rem; }

.brand-icon {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    overflow: hidden;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text { display: flex; flex-direction: column; }
.brand-title { font-weight: 700; font-size: 0.9rem; color: var(--primary); line-height: 1.1; }
.brand-subtitle { font-size: 0.65rem; color: var(--text-muted); font-weight: 500; }

.sidebar-toggle, .nav-btn {
    display: flex;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    width: 36px;
    height: 36px;
    transition: var(--transition-fast);
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover, .nav-btn:hover {
    background: var(--bg-main);
    color: var(--primary);
}

/* === Sidebar === */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.4); /* Use Slate 900 for overlay */
    z-index: 998;
    backdrop-filter: blur(1px);
}

body.sidebar-open .sidebar-overlay { display: block; }

.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    color: #94a3b8;
    padding: 1rem 0.75rem;
    flex-shrink: 0;
    transition: var(--transition);
    overflow-x: hidden;
    overflow-y: auto;
    position: fixed;
    top: 56px;
    bottom: 0;
    right: -260px;
    z-index: 999;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar.sidebar-open { right: 0; }
.sidebar.collapsed { width: 70px; right: -70px; }
.sidebar.collapsed.sidebar-open { right: 0; width: 260px; }
.sidebar.collapsed { padding: 1rem 0.5rem; }
.sidebar.collapsed .sidebar-header span,
.sidebar.collapsed .sidebar-label,
.sidebar.collapsed ul li a span,
.sidebar.collapsed .submenu-arrow { display: none; }
.sidebar.collapsed .sidebar-header { justify-content: center; padding: 0.5rem 0 1rem; }
.sidebar.collapsed ul li a { justify-content: center; padding: 0.6rem; }
.sidebar.collapsed ul li a i:first-child { margin-left: 0; }

.sidebar-header {
    padding: 0 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header i { color: var(--accent); font-size: 1.1rem; }
.sidebar-header span { font-weight: 600; color: #fff; font-size: 0.95rem; }

.sidebar-label {
    font-size: 0.7rem;
    color: #475569;
    padding: 1.25rem 0.75rem 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar ul li a {
    color: #94a3b8;
    padding: 0.65rem 0.75rem;
    margin: 0.2rem 0;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.sidebar ul li a i:first-child { width: 22px; margin-left: 0.75rem; font-size: 1rem; opacity: 0.8; }
.sidebar ul li a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.sidebar ul li a.active { background: var(--accent); color: #fff; }
.sidebar ul li a.active i { opacity: 1; }

/* Submenu */
.has-submenu .submenu {
    display: none;
    padding: 0.25rem 0;
    margin-top: 0.1rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius);
}

.has-submenu.open .submenu { display: block; }
.has-submenu .submenu li a { padding: 0.5rem 1rem 0.5rem 0.75rem; font-size: 0.825rem; }
.has-submenu .submenu li a i { font-size: 0.8rem; margin-left: 0.5rem; }

.submenu-arrow {
    margin-right: auto;
    transition: transform 0.2s;
    font-size: 0.7rem;
    opacity: 0.5;
}

.has-submenu.open .submenu-arrow { transform: rotate(180deg); }

/* === Buttons === */
.btn {
    padding: 0.5rem 1rem;     /* More compact */
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border: 1px solid transparent;
    background: var(--primary);
    color: #fff;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn:active { transform: translateY(0); }

.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
.btn-lg { padding: 0.625rem 1.25rem; font-size: 0.9375rem; }
.btn-full { width: 100%; }

.btn-secondary { background: #fff; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-main); border-color: var(--text-light); }

.btn-success { background: var(--success); }
.btn-danger { background: var(--danger); }
.btn-info { background: var(--info); }
.btn-warning { background: var(--warning); color: #fff; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }

.btn-icon { background: none; color: var(--text-muted); padding: 0.25rem; border-radius: 4px; }
.btn-icon:hover { color: var(--primary); background: var(--bg-main); }

/* === Cards === */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow: hidden;
}

.card:hover { 
    box-shadow: var(--shadow); 
}

.card-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.card-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
}

.card-body {
    padding: 1rem;
}

.card-header h3 i { color: var(--accent); font-size: 0.9rem; }

.chart-container { padding: 0.5rem; min-height: 250px; }

/* === Stats === */
.stats-row { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 0.75rem; 
    margin-bottom: 1rem; 
}

.stat-card {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

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

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(-5deg);
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-info h3, .stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin: 0;
    letter-spacing: -0.025em;
}

.stat-info p, .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Stat Icon Colors with Soft Gradients */
.stat-icon-primary { background: var(--accent-light-bg); color: var(--accent); }
.stat-icon-success { background: var(--success-light); color: var(--success); }
.stat-icon-warning { background: var(--warning-light); color: var(--warning); }
.stat-icon-danger { background: var(--danger-light); color: var(--danger); }
.stat-icon-info { background: var(--info-light); color: var(--info); }
.stat-icon-cyan { background: #ecfeff; color: #0891b2; }
.stat-icon-sky { background: #f0f9ff; color: #0ea5e9; }
.stat-icon-violet { background: #f5f3ff; color: #8b5cf6; }
.stat-icon-indigo { background: #eef2ff; color: #6366f1; }


/* === Tables === */
.table-responsive {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: right; }

table th {
    background: #f1f5f9;       /* Slate 100 - more distinct background */
    padding: 0.6rem 0.75rem;   /* Optimized for high density */
    font-size: 0.75rem;        /* Clearer readable size */
    font-weight: 700;
    color: var(--primary);     /* Darker text for better contrast */
    text-transform: none;      /* Natural text for Arabic support */
    letter-spacing: normal;
    border-bottom: 1px solid var(--border-color); 
    white-space: nowrap;
    position: relative;
}

table th::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(59, 130, 246, 0.05); /* Subtle blue glow line */
}

table td {
    padding: 0.4rem 0.75rem;   /* Reduced for high density */
    font-size: 0.775rem;       /* Slightly smaller but readable */
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

table tr:hover td { background-color: #f8fafc; }
table tr:last-child td { border-bottom: none; }

.table-actions { display: flex; gap: 0.25rem; align-items: center; }

/* === Forms === */
.form-group { margin-bottom: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.8125rem; font-weight: 600; color: var(--text-main); }
.form-group label i { color: var(--accent); margin-left: 5px; }

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: 'Cairo', sans-serif;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: #fff;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

/* === Badges === */
.badge {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Input Group with Icon Preview */
.input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-icon-preview {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Logo Upload Styles */
.logo-upload-container {
    margin-top: 0.5rem;
}

.logo-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
    background: var(--bg-main);
    overflow: hidden;
}

.logo-upload-area:hover {
    border-color: var(--primary);
    background: rgba(9, 28, 42, 0.02);
}

.upload-label {
    display: block;
    padding: 1.5rem;
    cursor: pointer;
    text-align: center;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-placeholder i {
    font-size: 2rem;
    color: var(--text-muted);
}

.upload-placeholder span {
    font-weight: 600;
    color: var(--text-main);
}

.upload-placeholder small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.current-logo-preview {
    position: relative;
    display: inline-block;
    background: var(--bg-main);
    border-radius: var(--radius);
    padding: 0.5rem;
    border: 1px solid var(--border-color);
}

.current-logo-preview img {
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
    display: block;
}

.remove-logo-btn {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    background: var(--danger);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.remove-logo-btn:hover {
    background: #991b1b;
    transform: scale(1.1);
}

.logo-preview-temp {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-preview-temp span {
    font-weight: 600;
    color: #166534;
}

.logo-preview-temp img {
    max-width: 100px;
    max-height: 50px;
    object-fit: contain;
}

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.form-section { margin-bottom: 2rem; }
.form-section h3 {
    margin-bottom: 1.25rem;
    color: var(--primary);
    border-bottom: 2px solid var(--bg-main);
    padding-bottom: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.form-actions { 
    margin-top: 2rem; 
    display: flex; 
    gap: 1rem; 
    border-top: 1px solid var(--border-color); 
    padding-top: 1.5rem; 
}

.settings-form { 
    background: var(--bg-card); 
    padding: 1.5rem; 
    border-radius: var(--radius); 
    border: 1px solid var(--border-color); 
    box-shadow: var(--shadow); 
}

/* === Modals === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

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

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.modal-close:hover { color: var(--danger); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 0.75rem; }
.modal-lg { max-width: 800px; }

/* === Tabs === */
.tabs-container { width: 100%; overflow: hidden; }

.tabs-header {
    display: flex;
    gap: 0.4rem;
    padding: 0.4rem;
    background: #f1f5f9;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
}

.tab-btn {
    padding: 0.5rem 1rem;
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tab-btn:hover { 
    color: var(--primary);
    background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active { 
    color: #fff; 
    background: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.2);
}

.tab-badge { 
    font-size: 0.65rem; 
    padding: 1px 6px; 
    border-radius: 20px; 
    background: rgba(255, 255, 255, 0.2); 
    color: inherit;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.tab-btn:not(.active) .tab-badge {
    background: #e2e8f0;
    color: var(--secondary);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* === Alerts === */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.alert-danger-custom { background: var(--danger-light); color: var(--danger); border: 1px solid var(--danger-border); border-right: 4px solid var(--danger); }

/* === Status Badges === */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.status-interview { background: #f3e8ff; color: #6b21a8; }
.status-accreditation { background: #e0e7ff; color: #3730a3; }

/* === Filters === */
.filters-section {
    background: var(--bg-card);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.filters-section:hover {
    box-shadow: var(--shadow);
    border-color: rgba(59, 130, 246, 0.2);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group { 
    display: flex; 
    flex-direction: column; 
    gap: 0.35rem; 
}

.filter-actions {
    display: flex;
    align-items: flex-end;
}

.filter-actions .btn {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    height: 38px;
}

.filter-group label { 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: var(--primary); 
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.filter-group label i {
    color: var(--accent);
    font-size: 0.8rem;
    opacity: 0.8;
}

.filter-group input, .filter-group select { 
    padding: 0.5rem 0.75rem; 
    font-size: 0.8rem; 
    font-family: 'Cairo', sans-serif;
    border: 1px solid var(--border-color); 
    border-radius: var(--radius); 
    background-color: #fcfdfe;
    transition: var(--transition);
    color: var(--text-main);
    width: 100%;
    height: 38px;
}

.filter-group input::placeholder {
    color: var(--text-light);
}

.filter-group input:focus, .filter-group select:focus {
    outline: none;
    border-color: var(--accent);
    background-color: #fff;
    box-shadow: 0 0 0 4px var(--accent-light);
    transform: translateY(-1px);
}

.filter-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 0.875rem;
    padding-left: 2rem;
}

/* === Info Sections === */
.info-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.section-header {
    background: #f8fafc;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-right: 4px solid var(--primary);
}

.section-header h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--primary); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding: 1.25rem; gap: 1.25rem; }
.info-item { display: flex; flex-direction: column; gap: 0.25rem; }
.info-item-full { grid-column: span 2; }
.info-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.info-value { font-size: 0.9rem; color: var(--text-main); font-weight: 500; }

/* === Pagination === */
.pagination-container { margin-top: 1.5rem; display: flex; justify-content: center; }
.pagination { display: flex; gap: 5px; list-style: none; padding: 0; align-items: center; }
.pagination li { display: inline-block; }

.pagination li a, .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
}

.pagination li a:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-main); }
.pagination li.active span { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination li.disabled span { color: #cbd5e1; cursor: not-allowed; background: var(--bg-main); }

.pagination-info { text-align: center; margin-top: 0.75rem; font-size: 0.8rem; }
.pagination-info strong { color: var(--primary); }

/* === User Elements === */
.user-info { display: flex; align-items: center; gap: 0.75rem; }

.avatar {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

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

.user-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    border-radius: 10px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-dropdown-btn:hover { background: var(--bg-main); }

.user-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 2px solid #fff;
    overflow: hidden;
}

.user-name { font-size: 0.85rem; font-weight: 600; color: var(--text-main); }

.user-dropdown-btn > i:last-child { font-size: 0.65rem; color: var(--text-muted); margin-right: 0.25rem; }

.user-dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    min-width: 160px;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.user-dropdown-menu.show { display: block; }

.user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.user-dropdown-menu .dropdown-item:hover { background: var(--bg-main); }
.user-dropdown-menu .dropdown-item i { width: 16px; text-align: center; color: var(--text-muted); }
.user-dropdown-menu .logout-item { color: var(--danger); }
.user-dropdown-menu .logout-item i { color: var(--danger); }

.user-dropdown-menu .logout-btn {
    width: 100%;
    text-align: right;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--danger);
    font-size: 0.85rem;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition-fast);
}

.user-dropdown-menu .logout-btn:hover { background: var(--bg-main); }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 0.25rem 0; }

/* === Notifications === */
.notification-btn { position: relative; }

.notification-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    background: var(--danger);
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    font-weight: 700;
    line-height: 1;
}

.notification-btn:hover .notification-badge { background: #991b1b; }

/* === Page Header === */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    position: relative;
    overflow: visible;
    z-index: 1;
}

.page-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.page-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to left, var(--accent), transparent);
    opacity: 0.3;
}

.page-header:hover {
    box-shadow: var(--shadow);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.page-header-info {
    position: relative;
    padding-right: 1.25rem;
}

.page-header-info::before {
    content: "";
    position: absolute;
    right: 0;
    top: 3px;
    bottom: 3px;
    width: 3px;
    background: var(--accent);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.page-breadcrumb a {
    color: var(--secondary);
    transition: var(--transition);
}

.page-breadcrumb a:hover {
    color: var(--accent);
}

.page-breadcrumb i {
    font-size: 0.65rem;
    color: var(--text-light);
    transform: scaleX(-1); /* Adjust for RTL if needed */
}

.page-breadcrumb span {
    color: var(--text-muted);
}

.page-header-info h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--primary);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.page-header-info p { 
    color: var(--text-muted); 
    font-size: 0.85rem; 
    margin: 0;
    font-weight: 400;
    max-width: 600px;
}

.page-header-actions { 
    display: flex; 
    gap: 0.75rem; 
    align-items: center; 
}

.page-header-actions .btn {
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 1rem;
}

/* === Dashboard Grid === */
.dashboard-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.dashboard-full-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.dashboard-secondary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

/* === Guidance Panel === */
.guidance-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.guidance-panel-info { border-color: #bae6fd; }
.guidance-panel-info .guidance-header { background: #f0f9ff; border-bottom-color: #bae6fd; }
.guidance-panel-info .guidance-header h3 { color: var(--info); }
.guidance-panel-info .guidance-body { background: var(--bg-main); }
.guidance-panel-info .instruction-card { background: #fff; }

.guidance-panel-warning { border-color: #fef3c7; }
.guidance-panel-warning .guidance-header { background: #fffcf0; border-bottom-color: #fef3c7; }
.guidance-panel-warning .guidance-header h3 { color: var(--warning); }
.guidance-panel-warning .guidance-body { background: #fffdf5; }
.guidance-panel-warning .instruction-card { background: #fff; border-color: #fef3c7; }
.guidance-panel-warning .instruction-card h4 { color: var(--warning); }

.guidance-header {
    background: var(--bg-main);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guidance-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guidance-body { padding: 1.5rem; }
.guidance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

.instruction-card {
    background: var(--bg-main);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.instruction-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.instruction-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.instruction-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--primary); }
.instruction-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; flex-grow: 1; }

.instruction-list { list-style: none; padding: 0; margin: 0 0 1rem 0; }
.instruction-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-main);
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.instruction-list li:last-child { border-bottom: none; }
.instruction-list li i { color: var(--success); margin-top: 3px; font-size: 0.9rem; }

.instruction-card-info { background: #eff6ff; border-color: #bfdbfe; }
.instruction-card-info .instruction-icon { color: #2563eb; }
.instruction-card-warning { background: #fffbeb; border-color: #fef3c7; }
.instruction-card-warning .instruction-icon { color: var(--warning); }

/* === Dropdown === */
.dropdown { position: relative; display: inline-block; }

.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    min-width: 200px;
    margin-top: 0.5rem;
    padding: 0.5rem;
}

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

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-fast);
    font-size: 0.85rem;
}

.dropdown-item:hover { background: var(--bg-main); }

/* === Checkbox === */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition-fast);
}

.checkbox-group:hover { background: #f1f5f9; }
.checkbox-group input[type="checkbox"] { width: 1.1rem; height: 1.1rem; cursor: pointer; }
.checkbox-group span { font-size: 0.85rem; font-weight: 500; }

.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox-input { width: 18px; height: 18px; }

/* === Footer === */
footer.site-footer {
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--primary); }
.footer-brand i { font-size: 1.1rem; color: var(--primary); }
.footer-links { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8rem; color: var(--text-muted); }
.footer-links .separator { color: var(--border-color); }
.footer-links a { color: var(--primary); text-decoration: none; font-weight: 500; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--info); text-decoration: underline; }

/* === Reports === */
.reports-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1rem; }

.report-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition);
}

.report-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.report-card h3 { font-size: 1rem; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }
.report-card p { font-size: 0.9rem; color: var(--text-muted); }

/* === Misc Components === */
.file-card { background: #f1f5f9; padding: 0.75rem 1rem; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.action-card { position: sticky; top: 70px; }
.action-card-dark { background: var(--primary); color: #fff; }
.action-card-dark h3, .action-card-dark i { color: #fff; }
.age-highlight { background: #eff6ff; padding: 1rem; border-radius: var(--radius); border: 1px dashed var(--primary); display: flex; align-items: center; gap: 1rem; }
.age-highlight-icon { color: var(--primary); font-size: 1.5rem; }
.age-value-large { font-size: 1.1rem; color: var(--primary); }
.help-box { background: #eff6ff; padding: 1rem; border-radius: var(--radius); margin-top: 1.5rem; }
.no-data { padding: 2rem; color: var(--text-muted); text-align: center; }
.no-data i { font-size: 3rem; color: #cbd5e1; margin-bottom: 1rem; display: block; }
.sub-tabs { display: flex; gap: 1rem; padding: 1rem; background: #f1f5f9; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; }

/* === Select Elegant === */
.select-elegant {
    display: inline-block;
    width: 100%;
    font-family: 'Cairo', sans-serif;
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-size: 0.8rem;
    height: 38px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-fast);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.5rem center;
    background-size: 1rem;
}

.select-elegant:hover { border-color: #cbd5e1; background-color: #fff; }
.select-elegant:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(9, 28, 42, 0.1); }
[dir="rtl"] .select-elegant { padding: 0.4rem 1rem 0.4rem 2rem; background-position: left 0.5rem center; }

/* === Utility Classes === */
/* Text Utilities */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-danger { color: var(--danger); }
.text-primary-bold { font-weight: 700; color: var(--primary); }

/* Font Utilities */
.font-bold { font-weight: 700; }
.font-size-small { font-size: 0.8rem; }
.line-height-relaxed { line-height: 1.6; }

/* Display Utilities */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.inline { display: inline; }

/* Gap Utilities */
.gap-xs { gap: 0.25rem; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }

/* Width Utilities */
.w-full { width: 100%; }
.w-120 { width: 120px; }

/* Border & Background Utilities */
.border-none { border: none !important; }
.bg-transparent { background: transparent !important; }
.bg-main-light { background: var(--bg-main); }

/* Padding Utilities */
.p-0 { padding: 0 !important; }
.p-4 { padding: 1rem; }
.p-6 { padding: 3rem; }

/* Margin Utilities */
.mb-4 { margin-bottom: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }

/* Border Radius */
.rounded-8 { border-radius: var(--radius); }

/* Grid Utilities */
.span-2 { grid-column: span 2; }

/* Link Utilities */
.view-all { font-size: 0.8rem; color: var(--primary); text-decoration: none; font-weight: 600; }
.view-all:hover { text-decoration: underline; }

/* Form Utilities */
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.checkbox-row { grid-column: span 2; }
.info-grid-simple { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.info-label-block { display: block; }
.section-padding { padding: 1.5rem; }
.section-border-none { border-right: none; padding: 0; background: transparent; }
.btn-margin-top { margin-top: 1rem; }
.loading-indicator { font-size: 0.75rem; }
.instructions-title { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.modal-form-actions { margin-top: 1.5rem; }
.guidance-margin { margin-bottom: 1.5rem; }
.header-filter { margin-top: 0.75rem; }
.header-center-items { display: flex; align-items: center; gap: 1rem; }
.form-group-margin { margin-top: 1.25rem; }
.form-label-block { margin-bottom: 0.5rem; display: block; }
.status-select { height: 2rem; font-size: 0.75rem; padding: 0.2rem 0.4rem; }
.status-select-fixed { width: 100%; min-width: 100px; }
.age-message { color: var(--danger); font-size: 0.85rem; margin-top: 5px; font-weight: bold; }
.payment-badge-btn { border: none; cursor: pointer; width: 100%; text-align: center; padding: 0.35rem 0.5rem; }
.import-form { padding: 0.5rem 1rem; }
.import-label { display: block; font-size: 0.8rem; margin-bottom: 0.5rem; font-weight: 700; }
.import-input { font-size: 0.75rem; width: 100%; margin-bottom: 0.5rem; }
.alert-list { margin: 5px 20px 0 0; }
.form-control-tall { height: 45px; }

/* === Audit Page Styles === */
.th-sortable { cursor: pointer; }
.th-sortable:hover { background: var(--primary-light); }
.description-truncate { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip-code { font-size: 0.75rem; background: var(--bg-main); padding: 0.25rem 0.5rem; border-radius: 4px; font-family: monospace; }
.modal-properties-pre { background: #1e1e1e; color: #d4d4d4; padding: 1rem; border-radius: 8px; overflow-x: auto; font-size: 0.8rem; margin: 0; font-family: monospace; direction: ltr; text-align: left; }



/* === Responsive === */
@media (min-width: 1025px) {
    .sidebar { position: relative; right: auto; top: auto; z-index: auto; box-shadow: none; }
    .sidebar-overlay { display: none !important; }
    .main-container { display: flex; }
}

@media (max-width: 1200px) {
    .dashboard-secondary-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .dashboard-grid, .dashboard-full-grid { grid-template-columns: 1fr; }
    .dashboard-secondary-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(3, 1fr); }
    .page-header { flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 1.25rem; }
    .page-header-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
    .content { padding: 1rem; }
    
    .tabs-header { scrollbar-width: thin; scrollbar-color: var(--primary) transparent; padding-bottom: 8px; }
    .tabs-header::-webkit-scrollbar { height: 5px; display: block; }
    .tabs-header::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
    .tabs-header::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 10px; }
    
    /* Header improvements */
    .header-nav { gap: 0.5rem; }
    .user-name { display: none; }
}

@media (max-width: 768px) {
    /* Stats */
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
    .stat-card { padding: 0.75rem; flex-direction: column; text-align: center; gap: 0.5rem; }
    .stat-icon { width: 36px; height: 36px; font-size: 0.9rem; }
    .stat-card h3 { font-size: 0.9rem; }
    .stat-info p { font-size: 0.65rem; }
    
    /* Dashboard */
    .dashboard-grid, .dashboard-secondary-grid, .dashboard-full-grid { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
    .card-header { padding: 0.75rem; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .card-header h3 { font-size: 0.85rem; }
    .card-header h3 i { font-size: 0.9rem; }
    .chart-container { padding: 0.75rem; min-height: 250px; }
    
    /* Filters */
    .filters-section { padding: 0.75rem; }
    .filters-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .filter-group { width: 100%; }
    .filter-group input, .filter-group select { width: 100%; font-size: 0.8rem; padding: 0.5rem; }
    
    /* Tables - Card Layout */
    .table-responsive { border: none; box-shadow: none; background: transparent; overflow-x: visible; }
    table { width: 100%; min-width: 100%; }
    thead tr { position: absolute; top: -9999px; left: -9999px; }
    tr { background: var(--bg-card); border: 1px solid var(--border-color); margin-bottom: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
    td { border: none; border-bottom: 1px solid #f1f5f9; position: relative; padding: 0.75rem 1rem 0.75rem 0.5rem !important; text-align: right !important; min-height: 42px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem; }
    td:last-child { border-bottom: none; justify-content: center; padding: 0.75rem !important; background: var(--bg-main); border-radius: 0 0 var(--radius) var(--radius); }
    td:first-child { border-radius: var(--radius) var(--radius) 0 0; }
    td:before { content: attr(data-label); font-weight: 700; color: var(--primary); font-size: 0.75rem; white-space: nowrap; }
    td:not([data-label]):before { display: none; }
    td:not([data-label]) { justify-content: center !important; }
    td .status-badge { font-size: 0.7rem; padding: 0.2rem 0.5rem; }
    td select.status-select { width: 100% !important; min-width: unset !important; height: 2rem !important; font-size: 0.8rem !important; }
    td .table-actions { display: flex; gap: 0.5rem; justify-content: center; width: 100%; }
    td .table-actions .btn-icon { padding: 0.4rem; border-radius: 4px; background: var(--bg-main); }
    
    /* Forms */
    .form-grid { grid-template-columns: 1fr; gap: 1rem; }
    .form-section { margin-bottom: 1.5rem; }
    .form-actions { flex-direction: column; gap: 0.75rem; }
    .form-actions .btn { width: 100%; }
    
    /* Info Sections */
    .info-grid { grid-template-columns: 1fr; padding: 1rem; gap: 1rem; }
    .info-item-full { grid-column: span 1; }
    
    /* Modals */
    .modal-content { max-width: 100%; margin: 0.5rem; border-radius: var(--radius); }
    .modal-header, .modal-body { padding: 1rem; }
    
    /* Page Header */
    .page-header { margin-bottom: 1.25rem; padding: 1rem; }
    .page-header-info h2 { font-size: 1rem; }
    .page-header-info p { font-size: 0.8rem; }
    
    /* Guidance */
    .guidance-body { padding: 1rem; }
    .guidance-grid { grid-template-columns: 1fr; gap: 1rem; }
    .instruction-card { padding: 1rem; }
    
    /* Tabs */
    .tabs-header { gap: 0; margin-bottom: 0.75rem !important; }
    .tab-btn { padding: 0.6rem 0.8rem !important; font-size: 0.75rem !important; flex: 0 0 auto !important; }
    .tab-badge { font-size: 0.6rem !important; padding: 1px 4px !important; margin-left: 3px !important; }
    
    /* Alerts */
    .alert { padding: 0.75rem; font-size: 0.8rem; flex-wrap: wrap; }
    
    /* Pagination */
    .pagination-container { margin-top: 1rem; }
    .pagination { flex-wrap: wrap; justify-content: center; }
    .pagination li a, .pagination li span { min-width: 28px; height: 28px; font-size: 0.75rem; }
}

@media (max-width: 640px) {
    /* Header */
    .header-brand .brand-subtitle { display: none; }
    .brand-icon { width: 36px; height: 36px; font-size: 1rem; }
    .brand-title { font-size: 0.85rem; }
    .site-header { height: 55px; padding: 0 0.75rem; }
    .main-container { margin-top: 55px; }
    .sidebar-overlay { top: 55px; }
    .sidebar { top: 55px; width: 280px; right: -280px; }
    
    /* Content */
    .content { padding: 0.75rem; }
    
    /* Footer */
    .footer-content { flex-direction: column; text-align: center; gap: 0.75rem; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    
    /* Stats - Single Column */
    .stats-row { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .stat-card { padding: 0.6rem; flex-direction: row; text-align: right; }
    .stat-icon { width: 32px; height: 32px; font-size: 0.8rem; }
    .stat-card h3 { font-size: 0.85rem; }
    .stat-info p { font-size: 0.6rem; }
    
    /* Filters - Single Column */
    .filters-grid { grid-template-columns: 1fr; }
    
    /* Buttons */
    .btn { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
    .btn i { font-size: 0.75rem; }
    .page-header-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
    /* Page Header */
    .page-header { margin-bottom: 1rem; padding: 0.875rem 1rem; }
    .page-header-info h2 { font-size: 0.95rem; }
    .page-header-info p { font-size: 0.75rem; }
    .page-header-actions { gap: 0.5rem; }
    
    /* Stats */
    .stats-row { gap: 0.5rem; }
    .stat-card { padding: 0.5rem; }
    .stat-icon { width: 28px; height: 28px; font-size: 0.75rem; border-radius: 6px; }
    .stat-card h3 { font-size: 0.8rem; }
    .stat-info p { font-size: 0.55rem; }
    
    /* Cards */
    .chart-container { min-height: 200px; padding: 0.5rem; }
    .card-header { padding: 0.5rem; }
    .card-header h3 { font-size: 0.8rem; }
    
    /* Forms */
    .form-group { margin-bottom: 0.75rem; }
    .form-control { padding: 0.5rem; font-size: 0.8rem; }
    .form-group label { font-size: 0.8rem; }
    
    /* Tables */
    td { padding: 0.5rem !important; font-size: 0.75rem; }
    td:before { font-size: 0.7rem; }
    
    /* Modals */
    .modal-header h3 { font-size: 0.95rem; }
    .modal-body { padding: 0.75rem; }
    
    /* Alerts */
    .alert { padding: 0.5rem; font-size: 0.75rem; }
    
    /* Guidance */
    .guidance-header { padding: 0.75rem; }
    .guidance-header h3 { font-size: 0.95rem; }
    .instruction-card { padding: 0.75rem; }
    .instruction-card h4 { font-size: 0.9rem; }
    .instruction-card p { font-size: 0.8rem; }
    
    /* Info Sections */
    .section-header { padding: 0.5rem 0.75rem; }
    .section-header h3 { font-size: 0.9rem; }
    .info-grid { padding: 0.75rem; gap: 0.75rem; }
    .info-value { font-size: 0.85rem; }
}

/* === Touch-Friendly Improvements === */
@media (hover: none) and (pointer: coarse) {
    .btn { min-height: 44px; }
    .form-control { min-height: 44px; font-size: 16px; }
    .filter-group input, .filter-group select { min-height: 44px; font-size: 16px; }
    .tab-btn { min-height: 44px; }
    .sidebar ul li a { min-height: 44px; }
    .dropdown-item { min-height: 44px; }
    .pagination li a, .pagination li span { min-width: 44px; min-height: 44px; }
}

/* === Landscape Mode on Mobile === */
@media (max-width: 896px) and (orientation: landscape) {
    .site-header { height: 50px; }
    .main-container { margin-top: 50px; }
    .sidebar { top: 50px; }
    .sidebar-overlay { top: 50px; }
    .brand-icon { width: 32px; height: 32px; }
    .brand-title { font-size: 0.8rem; }
    .stat-card { flex-direction: row; }
}

/* === Print Styles === */
@media print {
    .sidebar, .sidebar-overlay, .site-header, .site-footer { display: none !important; }
    .main-container { margin-top: 0; }
    .content { padding: 0; }
    .card { box-shadow: none; border: 1px solid #ddd; }
    .btn { display: none; }
    .table-responsive { overflow: visible; }
    table { page-break-inside: auto; }
    tr { page-break-inside: avoid; }
}

/* === Team Page Styles === */
.about-section {
    margin-bottom: 1rem;
}

.about-intro {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.intro-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.intro-content h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.intro-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.about-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.about-card-header {
    background: linear-gradient(to right, var(--bg-main), transparent);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-card-header i {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
}

.about-card-header h3 {
    font-size: 0.9rem;
    color: var(--primary);
    margin: 0;
}

.about-card-body {
    padding: 1rem;
}

.about-card-body p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.about-card-body strong {
    color: var(--primary);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.8rem;
    color: var(--text-main);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: var(--success);
    margin-top: 2px;
    font-size: 0.8rem;
}

.about-footer {
    margin-bottom: 1rem;
}

.footer-message {
    background: linear-gradient(135deg, rgba(206, 189, 171, 0.2), rgba(206, 189, 171, 0.05));
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-message i {
    font-size: 1.25rem;
    color: var(--accent);
}

.footer-message p {
    color: var(--text-main);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.tech-stack {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.tech-stack h3 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--bg-main), #fff);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
}

.tech-badge:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.tech-badge i {
    font-size: 0.85rem;
    color: var(--primary);
}

/* About Page Responsive */
@media (max-width: 768px) {
    .about-intro {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .intro-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .intro-content h3 {
        font-size: 0.95rem;
    }
    
    .intro-content p {
        font-size: 0.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .about-card-body {
        padding: 0.75rem;
    }
    
    .footer-message {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
    }
    
    .tech-badges {
        justify-content: center;
    }
}

/* === Programmers Page - Modern Professional Layout === */
.prog-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.prog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.prog-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.prog-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.prog-logo {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    backdrop-filter: blur(10px);
}

.prog-title h1 {
    color: #fff;
    font-size: 1.25rem;
    margin: 0;
    font-weight: 700;
}

.prog-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin: 0;
}

.prog-stats {
    display: flex;
    gap: 2rem;
}

.prog-stat {
    text-align: center;
}

.prog-stat .stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.prog-stat .stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Layout */
.prog-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Team Section */
.prog-team-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.prog-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(to right, var(--bg-main), transparent);
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
}

.prog-section-title i {
    color: var(--accent);
}

.prog-team-list {
    padding: 0.5rem;
}

/* Member Row */
.prog-member {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    margin-bottom: 1rem;
}

.prog-member:last-child {
    margin-bottom: 0;
}

.prog-member:hover {
    background: var(--bg-main);
}

.prog-member.featured {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.02));
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.member-avatar {
    position: relative;
    flex-shrink: 0;
}

.member-avatar img {
    width: 137.5px;
    height: 137.5px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.member-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-weight: 700;
    white-space: nowrap;
}

.member-badge.director {
    background: var(--primary);
    color: #fff;
}

.member-badge.coordinator {
    background: var(--info);
    color: #fff;
}

.member-badge.senior {
    background: var(--accent);
    color: #fff;
}

.member-details {
    flex: 1;
    min-width: 0;
}

.member-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.member-header h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.member-position {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 600;
}

.member-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.member-skills span {
    background: var(--bg-main);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.member-links {
    display: flex;
    gap: 0.35rem;
}

.member-links a {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: var(--transition);
}

.member-links a:hover {
    background: var(--primary);
    color: #fff;
}

/* Side Panel */
.prog-side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prog-info-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    transition: var(--transition);
}

.prog-info-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.prog-info-card .info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.prog-info-card.vision .info-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.prog-info-card.tech .info-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
}

.prog-info-card.security .info-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.prog-info-card .info-content h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.35rem 0;
}

.prog-info-card .info-content p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tech-tags span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg-main);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--primary);
}

.tech-tags span i {
    font-size: 0.7rem;
    color: var(--accent);
}

/* Member Meta */
.member-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.member-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    color: var(--text-muted);
    background: var(--bg-main);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.member-meta span i {
    font-size: 0.6rem;
    color: var(--accent);
}

/* Security Features */
.security-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
}

.security-features span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    color: var(--text-main);
}

.security-features span i {
    color: var(--success);
    font-size: 0.6rem;
}

/* Features List */
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-main);
}

.feature-item i {
    color: var(--success);
    font-size: 0.65rem;
}

.prog-info-card.features .info-icon {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* Timeline */
.prog-timeline {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    overflow: hidden;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-color);
}

.timeline-item {
    background: var(--bg-card);
    padding: 1rem;
    transition: var(--transition);
}

.timeline-item:hover {
    background: var(--bg-main);
}

.timeline-phase {
    font-size: 0.6rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}

.timeline-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.timeline-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Footer */
.prog-footer {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.prog-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}

.prog-footer .footer-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.prog-footer .footer-info strong {
    color: var(--primary);
}

.prog-footer .footer-tech {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-top: 0.25rem;
    font-family: monospace;
}

.prog-footer .footer-year {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .prog-main {
        grid-template-columns: 1fr;
    }
    
    .prog-side {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prog-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .prog-header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .prog-stats {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .prog-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem;
    }
    
    .member-avatar img {
        width: 150px;
        height: 150px;
    }
    
    .member-header {
        flex-direction: column;
        gap: 0.15rem;
    }
    
    .member-meta {
        justify-content: center;
    }
    
    .member-links {
        justify-content: center;
    }
    
    .prog-side {
        grid-template-columns: 1fr;
    }
    
    .timeline-grid {
        grid-template-columns: 1fr;
    }
    
    .prog-footer .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* === Main Dashboard Styles === */
.dashboard-overview { margin-bottom: 1.5rem; }

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.overview-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.overview-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0.8;
}

.overview-card-success::before { background: var(--success); }
.overview-card-info::before { background: var(--info); }
.overview-card-warning::before { background: var(--warning); }
.overview-card-primary::before { background: var(--accent); }

.overview-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    background: #f8fafc;
    color: var(--primary);
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.overview-card:hover .overview-icon {
    transform: scale(1.1) rotate(-5deg);
    background: #fff;
}

.overview-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 0.1rem 0;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.overview-content p {
    font-size: 0.775rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.overview-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(59, 130, 246, 0.08);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.725rem;
    font-weight: 700;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.overview-badge span { font-weight: 800; }
.overview-badge small { font-size: 0.6rem; opacity: 0.8; text-transform: uppercase; }


/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.375rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.dashboard-tabs .tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}

.dashboard-tabs .tab-btn:hover { color: var(--primary); }

.dashboard-tabs .tab-btn.active {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Quick Stats Grid */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.quick-stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
}

.quick-stat-header {
    background: #f8fafc;
    padding: 0.625rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-stat-header i { color: var(--accent); font-size: 0.875rem; }
.quick-stat-header span { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.025em; }
.quick-stat-body { padding: 1rem; }

.progress-bar-container {
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-bar-success { background: var(--success); }
.progress-bar-info { background: var(--info); }

.quick-stat-values { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 600; }


.value-success {
    color: var(--success);
    font-weight: 600;
}

.value-danger {
    color: var(--danger);
    font-weight: 600;
}

.quick-stat-big {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.quick-stat-big small {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Dashboard Responsive */
@media (max-width: 1200px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .overview-card {
        padding: 1rem;
    }
    
    .overview-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .overview-content h3 {
        font-size: 1.25rem;
    }
    
    .dashboard-tabs {
        padding: 0.35rem;
        gap: 0.25rem;
    }
    
    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .tab-btn i {
        font-size: 1rem;
    }
    
    .quick-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .quick-stat-body {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .overview-card {
        padding: 0.75rem;
    }
    
    .overview-badge {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.2rem 0.4rem;
    }
    
    .overview-badge span {
        font-size: 0.75rem;
    }
}
