/* ============================================================
   VARIABLES & THEMING
   ============================================================ */
:root {
    /* ── Brand Colours ── */
    --primary-blue: #6392f3;
    --primary-dark: #3a68ca;
    --accent-green: #90ee20;
    --accent-green-hover: #7cd318;
    --bg-light: #eef5f9;
    --card-yellow: #fdf59b;
    --footer-dark: #40322c;

    /* ── Text & Background ── */
    --text-dark: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --white: #ffffff;
    --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;

    /* ── Dimensions ── */
    --sidebar-width: 260px;
    --header-height: 65px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-full: 9999px;

    /* ── Shadows ── */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08);

    /* ── Transitions ── */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* ── Role Base Branding Accents ── */
    --admin-color: #e74c3c;
    --trainer-color: #9b59b6;
    --student-color: #2ecc71;
    --staff-color: #34495e;
    --officer-color: #16a085;
    --coordinator-color: #f39c12;
    --dean-color: #2c3e50;
    --vicedean-color: #2980b9;
    --management-color: #d35400;
}

/* ============================================================
   UNIVERSAL DEFAULTS
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

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

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }
.text-success { color: #059669; }
.text-danger { color: #dc2626; }
.text-warning { color: #d97706; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.5rem; }

.d-flex { display: flex; }
.d-flex-center { display: flex; align-items: center; justify-content: center; }
.d-flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ============================================================
   ALERTS & NOTIFICATIONS
   ============================================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border-left: 4px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* ============================================================
   TOP NAVIGATION (PUBLIC)
   ============================================================ */
.navbar {
    background-color: var(--primary-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    color: var(--white);
    border-bottom: 4px solid var(--white);
    position: relative;
    z-index: 1000;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo h1 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.nav-logo p {
    font-size: 0.8rem;
    opacity: 0.9;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 6px 12px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    transition: background var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.25);
}

/* ── Dropdown ── */
.nav-menu .dropdown {
    position: relative;
    display: inline-block;
}

.nav-menu .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 230px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-md);
    padding: 8px 0;
    list-style: none;
    z-index: 1100;
    margin-top: 5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-menu .submenu li {
    width: 100%;
}

.nav-menu .submenu li a {
    color: var(--text-dark) !important;
    padding: 10px 18px !important;
    text-decoration: none;
    display: block;
    font-size: 0.8125rem;
    border-radius: 0;
    font-weight: 500;
    text-align: left;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-menu .submenu li a:hover {
    background-color: #f0f5ff;
    color: var(--primary-blue) !important;
}

.nav-menu .dropdown:hover .submenu {
    display: block;
    animation: fadeInSubmenu 0.25s ease forwards;
}

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

/* ── Auth Buttons ── */
.nav-auth {
    background-color: var(--accent-green);
    border-radius: var(--border-radius-full);
    padding: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-auth a {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: var(--border-radius-full);
    color: #111;
    transition: background var(--transition-fast);
}

.nav-auth .btn-login:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.nav-auth .btn-signup {
    background-color: transparent;
}

.user-greeting {
    font-size: 0.8125rem;
    color: #111;
    font-weight: 600;
    padding: 0 5px 0 15px;
}

/* ============================================================
   SLIDER (PUBLIC HOMEPAGE)
   ============================================================ */
.slider-container {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #000;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 100%;
}

.slide {
    height: 100%;
    width: 100%;
    flex-shrink: 0;
}

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

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.1rem;
    transition: background var(--transition-fast);
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-arrow.prev {
    left: 10px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.slider-arrow.next {
    right: 10px;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.dot.active {
    background: #7d3326;
}

/* ============================================================
   PUBLIC CONTENT WRAPPER
   ============================================================ */
.content-wrapper {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

.events-section h2,
.faq-section h2 {
    font-size: 1.125rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: capitalize;
}

.events-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.event-card {
    background-color: var(--card-yellow);
    border-radius: 18px;
    padding: 25px;
    width: 260px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.event-amharic {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #d15a00;
    margin-bottom: 10px;
    line-height: 1.5;
}

.event-date,
.event-time {
    font-size: 0.6875rem;
    margin-bottom: 4px;
    font-weight: 600;
    color: #444;
}

.btn-readmore {
    display: inline-flex;
    background-color: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    padding: 6px 16px;
    font-size: 0.6875rem;
    border-radius: var(--border-radius-full);
    margin-top: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.btn-readmore:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* ============================================================
   FAQ / SUPPORT SECTION
   ============================================================ */
.faq-section h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.faq-section p {
    font-size: 0.875rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.btn-raise-question {
    background-color: #e0e0e0;
    border: none;
    padding: 10px 20px;
    font-size: 0.8125rem;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    transition: background var(--transition-fast);
}

.btn-raise-question:hover {
    background-color: #d0d0d0;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 440px;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalFadeIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

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

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
    transition: color var(--transition-fast);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-content h3 {
    font-size: 1.125rem;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.modal-content textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--gray-300);
    font-size: 0.875rem;
    resize: vertical;
    outline: none;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.modal-content textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(99, 146, 243, 0.15);
}

.btn-submit {
    margin-top: 15px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    transition: background var(--transition-fast);
}

.btn-submit:hover {
    background: var(--primary-dark);
}

/* ============================================================
   AUTHENTICATION PAGES (Login / Signup)
   ============================================================ */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #dce7f3 0%, #eef5f9 100%);
}

.auth-shell {
    display: flex;
    min-height: 100vh;
}

.auth-brand-panel {
    flex: 1;
    background: linear-gradient(160deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
}

.auth-brand-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.auth-brand-link h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white);
}

.auth-brand-link p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.auth-brand-copy h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
}

.auth-brand-copy p {
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.92;
    max-width: 380px;
}

.auth-role-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.875rem;
    opacity: 0.95;
}

.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.auth-card {
    background: var(--white);
    padding: 36px 40px;
    border-radius: var(--border-radius-xl);
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.auth-card h2 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 6px;
    font-weight: 700;
}

.auth-card > p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.auth-card .form-group {
    text-align: left;
    margin-bottom: 18px;
}

.auth-card .form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--gray-600);
}

.auth-card .form-group input,
.auth-card .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    outline: none;
    background: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-card .form-group input:focus,
.auth-card .form-group select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(99, 146, 243, 0.15);
}

.btn-auth-submit {
    width: 100%;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 13px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    margin-top: 8px;
    transition: background var(--transition-fast);
}

.btn-auth-submit:hover {
    background-color: var(--primary-dark);
}

.auth-redirect {
    font-size: 0.875rem;
    margin-top: 22px !important;
    color: var(--text-muted);
}

.auth-redirect a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-redirect a:hover {
    text-decoration: underline;
}

.auth-back {
    margin-top: 12px !important;
    font-size: 0.8125rem;
}

.auth-back a {
    color: var(--text-muted);
    text-decoration: none;
}

.auth-back a:hover {
    color: var(--primary-blue);
}

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
/* ── Role-specific body classes ── */
body.admin-view,
body.trainer-view,
body.student-view,
body.staff-view,
body.officer-view,
body.coordinator-view,
body.dean-view,
body.vicedean-view,
body.management-view {
    display: block;
    min-height: 100vh;
    background: var(--gray-100);
}

/* ── Top Bar ── */
.dash-topbar {
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid rgba(255, 255, 255, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 10px;
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 0.9375rem;
}

.dash-brand small {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    opacity: 0.85;
}

.dash-brand img {
    object-fit: contain;
}

.dash-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dash-topbar-date {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-right: 8px;
}

.dash-topbar .btn-action.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.dash-topbar .btn-action.secondary:hover {
    background: rgba(255, 255, 255, 0.28);
}

.dash-topbar .btn-action.primary {
    background: var(--accent-green);
    color: #111;
}

.dash-topbar .btn-action.primary:hover {
    background: var(--accent-green-hover);
}

/* ── Dashboard Container ── */
.dashboard-container {
    display: flex;
    flex: 1;
    width: 100%;
    min-height: calc(100vh - var(--header-height));
}

/* ── Sidebar ── */
.dashboard-sidebar {
    width: var(--sidebar-width);
    background-color: #2c3e50;
    color: var(--white);
    padding: 25px 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.sidebar-profile {
    padding: 0 20px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.sidebar-profile h3 {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--white);
}

.sidebar-profile .role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--border-radius-full);
    font-size: 0.625rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 5px;
    color: var(--white);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-left: 4px solid transparent;
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    background-color: rgba(255, 255, 255, 0.07);
    color: var(--white);
    border-left-color: var(--primary-blue);
}

.sidebar-menu li.logout-item a {
    color: #f87171;
}

.sidebar-menu li.logout-item a:hover {
    background-color: rgba(248, 113, 113, 0.1);
}

.menu-icon {
    font-size: 0.9375rem;
    width: 18px;
    text-align: center;
    opacity: 0.9;
}

/* ── Main Content ── */
.dashboard-content {
    flex: 1;
    padding: 40px;
    background-color: var(--gray-100);
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
}

.dashboard-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.current-time-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--gray-200);
    padding: 6px 12px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
}

/* ── Metric Cards ── */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--primary-blue);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.metric-card h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-card .metric-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* ── Quick Actions ── */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-card h3 {
    font-size: 1rem;
    color: var(--gray-800);
    margin-bottom: 8px;
    font-weight: 600;
}

.action-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

/* ── Info Panel ── */
.info-panel {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    border-left: 4px solid var(--primary-blue);
    box-shadow: var(--shadow-sm);
}

.info-panel h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--gray-800);
}

.info-panel p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   TABLES
   ============================================================ */
.data-table-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    overflow-x: auto;
}

.data-table-container h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--gray-800);
    font-weight: 600;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

.responsive-table th {
    background-color: var(--gray-50);
    padding: 12px 16px;
    font-weight: 600;
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
}

.responsive-table td {
    padding: 14px 16px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

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

.responsive-table tr:hover td {
    background-color: var(--gray-50);
}

/* ============================================================
   STATUS PILLS
   ============================================================ */
.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--border-radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-pill.pending {
    background-color: #fef3c7;
    color: #d97706;
}

.status-pill.approved,
.status-pill.active,
.status-pill.success {
    background-color: #d1fae5;
    color: #059669;
}

.status-pill.resolved {
    background-color: #e0f2fe;
    color: #0284c7;
}

.status-pill.danger,
.status-pill.error {
    background-color: #fee2e2;
    color: #dc2626;
}

.status-pill.info {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.status-pill.warning {
    background-color: #fef3c7;
    color: #d97706;
}

/* ============================================================
   BUTTONS & ACTIONS
   ============================================================ */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    gap: 4px;
}

.btn-action.primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-action.primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-action.secondary {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.btn-action.secondary:hover {
    background-color: var(--gray-300);
}

.btn-action.danger {
    background-color: #dc2626;
    color: var(--white);
}

.btn-action.danger:hover {
    background-color: #b91c1c;
}

.btn-action.success {
    background-color: #059669;
    color: var(--white);
}

.btn-action.success:hover {
    background-color: #047857;
}

.btn-action.small {
    padding: 3px 10px;
    font-size: 0.6875rem;
}

/* ============================================================
   FORMS
   ============================================================ */
.smart-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.form-section h3 {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(99, 146, 243, 0.15);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc2626;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* ============================================================
   ROLE-SPECIFIC THEMING
   ============================================================ */
/* ── Sidebar & Metric Card Accents ── */
body.admin-view .dashboard-sidebar { border-top: 4px solid var(--admin-color); }
body.admin-view .metric-card { border-top-color: var(--admin-color); }
body.trainer-view .dashboard-sidebar { border-top: 4px solid var(--trainer-color); }
body.trainer-view .metric-card { border-top-color: var(--trainer-color); }
body.student-view .dashboard-sidebar { border-top: 4px solid var(--student-color); }
body.student-view .metric-card { border-top-color: var(--student-color); }
body.staff-view .dashboard-sidebar { border-top: 4px solid var(--staff-color); }
body.staff-view .metric-card { border-top-color: var(--staff-color); }
body.officer-view .dashboard-sidebar { border-top: 4px solid var(--officer-color); }
body.officer-view .metric-card { border-top-color: var(--officer-color); }
body.coordinator-view .dashboard-sidebar { border-top: 4px solid var(--coordinator-color); }
body.coordinator-view .metric-card { border-top-color: var(--coordinator-color); }
body.dean-view .dashboard-sidebar { border-top: 4px solid var(--dean-color); }
body.dean-view .metric-card { border-top-color: var(--dean-color); }
body.vicedean-view .dashboard-sidebar { border-top: 4px solid var(--vicedean-color); }
body.vicedean-view .metric-card { border-top-color: var(--vicedean-color); }
body.management-view .dashboard-sidebar { border-top: 4px solid var(--management-color); }
body.management-view .metric-card { border-top-color: var(--management-color); }

/* ── Role Badge Colours ── */
body.admin-view .sidebar-profile .role-badge { background-color: var(--admin-color); }
body.trainer-view .sidebar-profile .role-badge { background-color: var(--trainer-color); }
body.student-view .sidebar-profile .role-badge { background-color: var(--student-color); }
body.staff-view .sidebar-profile .role-badge { background-color: var(--staff-color); }
body.officer-view .sidebar-profile .role-badge { background-color: var(--officer-color); }
body.coordinator-view .sidebar-profile .role-badge { background-color: var(--coordinator-color); }
body.dean-view .sidebar-profile .role-badge { background-color: var(--dean-color); }
body.vicedean-view .sidebar-profile .role-badge { background-color: var(--vicedean-color); }
body.management-view .sidebar-profile .role-badge { background-color: var(--management-color); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background-color: var(--footer-dark);
    color: #e2d6cf;
    padding: 40px;
    font-size: 0.8125rem;
    line-height: 1.6;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 0.875rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #e2d6cf;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--white);
}

.brand-col {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-text h3 {
    font-size: 0.9375rem;
    color: var(--white);
    margin: 0;
}

.address-col a {
    color: #e2d6cf;
    text-decoration: none;
}

.address-col a:hover {
    text-decoration: underline;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
    .content-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 12px 20px;
    }

    .auth-shell {
        flex-direction: column;
    }

    .auth-brand-panel {
        padding: 32px 24px;
    }

    .auth-form-panel {
        padding: 24px;
    }

    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        padding: 15px 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-profile {
        border-bottom: none;
        margin-bottom: 5px;
        padding-bottom: 0;
    }

    .sidebar-menu {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
        gap: 5px;
    }

    .sidebar-menu li a {
        padding: 8px 15px;
        border-radius: var(--border-radius-sm);
        border-left: none;
    }

    .sidebar-menu li a:hover,
    .sidebar-menu li.active a {
        border-left-color: transparent;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .dashboard-content {
        padding: 20px;
    }

    .dash-topbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .dash-topbar-date {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .events-grid {
        justify-content: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 25px;
    }

    .event-card {
        width: 100%;
        max-width: 320px;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
        padding: 20px;
    }

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

    .auth-brand-panel {
        padding: 24px 20px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
    }

    .nav-logo h1 {
        font-size: 0.875rem;
    }

    .nav-auth a {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .dash-topbar {
        padding: 10px 15px;
    }

    .dashboard-content {
        padding: 15px;
    }

    .metric-card .metric-value {
        font-size: 1.25rem;
    }

    .slider-container {
        height: 250px;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .navbar,
    .nav-auth,
    .slider-container,
    .slider-arrow,
    .slider-dots,
    .footer,
    .dash-topbar,
    .dashboard-sidebar,
    .btn-action,
    .btn-status-check,
    .btn-raise-question,
    .no-print {
        display: none !important;
    }

    body {
        background: var(--white) !important;
        color: #000 !important;
    }

    .dashboard-content,
    .content-wrapper {
        padding: 20px !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    .data-table-container {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        border-radius: 0 !important;
    }

    .responsive-table th {
        background-color: #f5f5f5 !important;
        border-bottom: 2px solid #000 !important;
    }

    .responsive-table td {
        border-bottom: 1px solid #ddd !important;
    }

    .modal {
        display: none !important;
    }
}

/* ============================================================
   FOCUS VISIBILITY (Accessibility)
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}