/* ============================================================================
   BRANCH PORTAL - Custom Styles
   Based on Saudi DGA (Digital Government Authority) Design System
   Reference: DGA_UI_DESIGN_RULES.txt
   ============================================================================ */

/* Root Variables - DGA Design System Standards */
:root {
    /* Primary Colors - Saudi Green (DGA Standard) */
    --color-primary: #1b8354;           /* DGA sa-flag-600-primary */
    --color-primary-hover: #166a45;     /* DGA sa-flag-700 */
    --color-primary-active: #14573a;    /* DGA sa-flag-800 */
    --color-primary-disabled: #88d8ad;  /* DGA sa-flag-300 */
    --color-primary-light: #dff6e7;     /* DGA sa-flag-100 */
    
    /* Semantic Colors - DGA Standard */
    --color-success: #069454;           /* DGA green-600 */
    --color-success-light: #dcfae6;     /* DGA green-100 */
    --color-warning: #dc6803;           /* DGA yellow-600 */
    --color-warning-light: #fef0c7;     /* DGA yellow-100 */
    --color-danger: #d92c20;            /* DGA red-600 */
    --color-danger-light: #fee4e2;      /* DGA red-100 */
    --color-info: #156fee;              /* DGA blue-600 */
    --color-info-light: #d1e9ff;        /* DGA blue-100 */
    
    /* Neutral Colors - DGA Standard */
    --color-neutral-50: #f9fafb;        /* Page background */
    --color-neutral-100: #f3f4f6;       /* Card hover */
    --color-neutral-200: #e5e7eb;       /* Border default */
    --color-neutral-300: #d2d6db;       /* Border secondary */
    --color-neutral-400: #9da4ae;       /* Disabled text */
    --color-neutral-500: #6c727e;       /* Muted text */
    --color-neutral-600: #4d5761;       /* Secondary text */
    --color-neutral-700: #384250;       /* Primary text */
    --color-neutral-900: #111927;       /* Heading text */
    
    /* Base Colors */
    --color-white: #ffffff;
    --color-black: #161616;
    
    /* DGA Spacing System - 8px base unit */
    --spacing-0: 0px;
    --spacing-1: 4px;
    --spacing-2: 8px;
    --spacing-3: 12px;
    --spacing-4: 16px;
    --spacing-6: 24px;
    --spacing-8: 32px;
    --spacing-12: 48px;
    --spacing-16: 64px;
    
    /* DGA Typography */
    --font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 12px;     /* Text XS */
    --font-size-sm: 14px;     /* Text SM */
    --font-size-base: 16px;   /* Text MD - Default */
    --font-size-lg: 18px;     /* Text LG */
    --font-size-xl: 20px;     /* Text XL */
    --line-height-xs: 18px;
    --line-height-sm: 20px;
    --line-height-base: 24px;
    --line-height-lg: 28px;
    --line-height-xl: 30px;
    
    /* DGA Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;         /* Most common */
    --radius-lg: 12px;
    --radius-circular: 100%;
    
    /* DGA Shadow System */
    --shadow-xs: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    --shadow-sm: 0px 1px 3px 0px rgba(16, 24, 40, 0.1), 0px 1px 2px -1px rgba(16, 24, 40, 0.1);
    --shadow-md: 0px 4px 6px -1px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.1);
    --shadow-lg: 0px 10px 15px -3px rgba(16, 24, 40, 0.1), 0px 4px 6px -4px rgba(16, 24, 40, 0.1);
    --shadow-xl: 0px 20px 25px -5px rgba(16, 24, 40, 0.1), 0px 8px 10px -6px rgba(16, 24, 40, 0.1);
    --shadow-2xl: 0px 25px 50px -12px rgba(16, 24, 40, 0.25);
    
    /* Legacy Variables (for backward compatibility) */
    --primary-color: var(--color-primary);
    --primary-hover: var(--color-primary-hover);
    --border-color: var(--color-neutral-200);
    --text-muted: var(--color-neutral-500);
    --light-gray: var(--color-neutral-50);
    --card-shadow: var(--shadow-sm);
}


/* RTL Support for Arabic */
[dir="rtl"] {
    text-align: right;
}

/* Arabic Font Support - DGA Typography Standard */
body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);      /* 16px - DGA Text MD */
    line-height: var(--line-height-base);  /* 24px - DGA Standard */
    color: var(--color-neutral-700);        /* DGA Primary text color */
    background-color: var(--color-neutral-50); /* DGA Page background */
}

/* Better Arabic Text Rendering */
[dir="rtl"] body,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    font-family: 'IBM Plex Sans Arabic', 'Arial', sans-serif;
}

/* ============================================================================
   HEADER STYLES - DGA Standards
   ============================================================================ */

/* Portal Header - DGA Compliant */
.portal-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-neutral-200); /* DGA standard */
    box-shadow: var(--shadow-sm);  /* DGA shadow-sm */
}

.portal-header .navbar {
    padding: var(--spacing-2) 0;  /* 8px DGA spacing */
    background-color: var(--color-white) !important;
}

.portal-header .navbar-brand h5 {
    font-size: var(--font-size-lg);      /* 18px - DGA Text LG */
    line-height: var(--line-height-lg);  /* 28px */
    color: var(--color-neutral-900);     /* DGA heading color */
    font-weight: 600;                    /* DGA SemiBold */
    margin-bottom: 0;
}

.portal-header .navbar-brand small {
    font-size: var(--font-size-sm);   /* 14px - DGA Text SM */
    color: var(--color-neutral-600);  /* DGA secondary text */
    font-weight: 400;
}

/* ============================================================================
   BUTTON STYLES - DGA Standards
   ============================================================================ */

/* Primary Button - DGA Compliant */
.btn-primary {
    /* DGA Primary Button Colors */
    background-color: var(--color-primary) !important;
    color: var(--color-white) !important;
    border: none !important;
    
    /* DGA Border Radius */
    border-radius: var(--radius-md) !important;  /* 8px DGA standard */
    
    /* DGA Typography */
    font-family: var(--font-family);
    font-size: var(--font-size-sm) !important;       /* 14px - DGA Button Medium */
    line-height: var(--line-height-sm) !important;   /* 20px */
    font-weight: 500 !important;  /* DGA Medium weight */
    
    /* DGA Spacing - Medium Button */
    padding: var(--spacing-3) var(--spacing-4) !important;  /* 12px 16px */
    height: 44px;  /* DGA Medium button height */
    min-width: 100px;  /* DGA standard */
    
    /* DGA Effects */
    box-shadow: var(--shadow-sm) !important;
    transition: all 200ms ease-in-out !important;  /* DGA 200ms standard */
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--spacing-2);  /* 8px gap for icons */
}

/* Hover State - DGA */
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-primary-hover) !important;  /* #166a45 */
    color: var(--color-white) !important;
    transform: translateY(-2px) !important;  /* DGA hover lift */
    box-shadow: var(--shadow-md) !important;
    border: none !important;
}

/* Active/Pressed State - DGA */
.btn-primary:active {
    background-color: var(--color-primary-active) !important;  /* #14573a */
    transform: scale(0.98) !important;  /* DGA pressed effect */
}

/* Focus State - DGA Accessibility */
.btn-primary:focus-visible {
    outline: 2px solid var(--color-primary) !important;
    outline-offset: 2px !important;
}

/* Disabled State - DGA */
.btn-primary:disabled {
    background-color: var(--color-primary-disabled) !important;  /* #88d8ad */
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Icon in Button */
.btn-primary i {
    font-size: 16px;  /* DGA icon size for medium button */
}

/* Small Button Size - DGA */
.btn-sm.btn-primary {
    padding: var(--spacing-2) var(--spacing-3) !important;  /* 8px 12px */
    font-size: var(--font-size-xs) !important;  /* 12px - DGA Button Small */
    line-height: var(--line-height-xs) !important;  /* 18px */
    height: 36px;  /* DGA Small button height */
    min-width: 80px;
}

.btn-sm.btn-primary i {
    font-size: 14px;  /* DGA icon size for small button */
}

/* Icon-only small buttons — override DGA min-width so table/toolbar actions stay square */
.btn.btn-sm.btn-icon-only {
    width: 2.25rem;
    min-width: 0 !important;
    max-width: 2.25rem;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0;
    justify-content: center !important;
}

/* Large Button Size - DGA */
.btn-lg.btn-primary {
    padding: var(--spacing-4) var(--spacing-6) !important;  /* 16px 24px */
    font-size: var(--font-size-base) !important;  /* 16px - DGA Button Large */
    line-height: var(--line-height-base) !important;  /* 24px */
    height: 56px;  /* DGA Large button height */
    min-width: 120px;
}

.btn-lg.btn-primary i {
    font-size: 20px;  /* DGA icon size for large button */
}

/* Legacy Header Login Button Class (for backward compatibility) */
.btn-header-login {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-header-login:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-header-login i {
    font-size: 0.9rem;
}

/* Header Logo Styling */
.header-logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    object-fit: contain;
}

.header-logo:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Responsive Header Logo */
@media (max-width: 768px) {
    .header-logo {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .header-logo {
        height: 40px;
    }
}

/* Header Icon Links (Bell and Globe) */
.header-icon-link {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
    padding: 0 8px;
}

.header-icon-link:hover {
    color: #495057;
    background-color: #f8f9fa;
}

/* Header User Profile Display - Dropdown Trigger */
.header-user-profile {
    background-color: var(--color-neutral-50);  /* DGA neutral-50 */
    border: 1px solid var(--color-neutral-200); /* DGA border */
    transition: all 0.2s ease;                   /* DGA standard transition */
    cursor: pointer;
}

.header-user-profile i {
    color: #6c757d;  /* Same as language icon */
    transition: color 0.2s ease;
}

.header-user-profile:hover {
    background-color: var(--color-neutral-100); /* DGA neutral-100 */
    box-shadow: var(--shadow-xs);               /* DGA shadow-xs */
}

.header-user-profile:hover i {
    color: #495057;  /* Darker gray on hover */
}

/* Active state when dropdown is open */
.header-user-profile.show,
.header-user-profile[aria-expanded="true"] {
    background-color: var(--color-neutral-100);
    box-shadow: var(--shadow-sm);
    border-color: var(--color-neutral-300);
}

.header-user-profile.show i,
.header-user-profile[aria-expanded="true"] i {
    color: #495057;  /* Darker gray when open */
}

.header-user-name {
    font-size: var(--font-size-sm);             /* 14px - DGA Text SM */
    line-height: 1.2;
    font-weight: 500;                           /* DGA Medium */
    color: var(--color-neutral-900);            /* DGA heading color */
}

.header-user-email {
    font-size: 11px;
    line-height: 1.2;
    color: var(--color-neutral-500);            /* DGA muted text */
}

/* User Dropdown Menu - DGA Compliant */
.user-dropdown-menu {
    min-width: 280px;
    margin-top: var(--spacing-2);               /* 8px - DGA spacing */
    border: 1px solid var(--color-neutral-200); /* DGA border */
    box-shadow: var(--shadow-lg);               /* DGA shadow-lg */
    padding: var(--spacing-1);                  /* 4px - DGA spacing */
}

/* User Dropdown Header */
.user-dropdown-header {
    background-color: var(--color-neutral-50);  /* DGA neutral-50 */
    border-radius: var(--radius-sm);            /* 4px - DGA border radius */
    margin-bottom: var(--spacing-1);
}

.user-dropdown-header i {
    color: var(--color-primary);  /* Saudi Green for dropdown header icon */
}

.user-dropdown-email {
    font-size: var(--font-size-xs);             /* 12px - DGA Text XS */
    color: var(--color-neutral-500);            /* DGA muted text */
    line-height: 1.2;
}

/* User Dropdown Menu Items */
.user-dropdown-menu .dropdown-item {
    border-radius: var(--radius-sm);            /* 4px - DGA border radius */
    padding: var(--spacing-2) var(--spacing-3); /* 8px 12px - DGA spacing */
    transition: all 0.2s ease;                   /* DGA standard transition */
    display: flex;
    align-items: center;
    font-family: var(--font-family);            /* IBM Plex Sans Arabic */
}

.user-dropdown-menu .dropdown-item:hover {
    background-color: var(--color-neutral-100); /* DGA neutral-100 */
    color: var(--color-neutral-900);
}

.user-dropdown-menu .dropdown-item:active {
    background-color: var(--color-neutral-200); /* DGA neutral-200 */
}

/* Logout item styling (danger) */
.user-dropdown-menu .dropdown-item.text-danger:hover {
    background-color: var(--color-danger-light); /* DGA red-100 */
    color: var(--color-danger);                   /* DGA red-600 */
}

.user-dropdown-menu .dropdown-item.text-danger:hover i {
    color: var(--color-danger);
}

/* Dropdown divider */
.user-dropdown-menu .dropdown-divider {
    border-color: var(--color-neutral-200);     /* DGA border */
    margin: var(--spacing-1) 0;                 /* 4px - DGA spacing */
}

/* Icon spacing in dropdown items */
.user-dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
    transition: color 0.2s ease;
}

/* Responsive: Hide user email on smaller screens */
@media (max-width: 991px) {
    .header-user-profile {
        padding: var(--spacing-2) !important;   /* Smaller padding on mobile */
    }
    
    .header-user-email {
        display: none;
    }
    
    .user-dropdown-menu {
        min-width: 260px;                       /* Smaller width on mobile */
    }
}

/* Language Dropdown Styling - DGA */
.dropdown-menu {
    border: 1px solid var(--color-neutral-200);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-2);
    min-width: 150px;
    background-color: var(--color-white);
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: var(--spacing-2) var(--spacing-3);
    transition: all 200ms ease-in-out;
    color: var(--color-neutral-700);
}

.dropdown-item:hover {
    background-color: var(--color-neutral-100);
    color: var(--color-primary);
}

.dropdown-item.active {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 500;
}

/* Smooth transitions for all interactive elements */
.card,
.btn,
.form-control,
.dropdown-menu,
.modal-content,
.alert,
.badge,
.nav-drawer,
.header-user-profile {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.dropdown-toggle::after {
    display: none;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #dc3545;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

[dir="rtl"] .notification-badge {
    right: auto;
    left: 8px;
}

/* Old Navbar Styles (for backward compatibility) */
.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.1rem;
}

/* ============================================================================
   SIDEBAR STYLES
   ============================================================================ */
.sidebar {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.sidebar-menu-item {
    display: block;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-menu-item:hover {
    background-color: var(--light-gray);
    border-color: var(--primary-color);
}

.sidebar-menu-item.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.sidebar-menu-item.coming-soon-menu-item {
    pointer-events: none;
    cursor: default;
    opacity: 0.85;
}

.sidebar-menu-item.coming-soon-menu-item::after {
    content: 'قريباً';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-14deg);
    padding: 10px 26px;
    font-size: 1rem;
    font-weight: 700;
    color: #6b9e7c;
    background-color: rgba(255, 255, 255, 0.55);
    border: 3px double #6b9e7c;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(107, 158, 124, 0.22);
    letter-spacing: 0.02em;
    pointer-events: none;
    z-index: 2;
}

.sidebar-menu-item.coming-soon-menu-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    z-index: 1;
    pointer-events: none;
}

.sidebar-menu-item.coming-soon-menu-item > * {
    position: relative;
    z-index: 3;
}

.sidebar-menu-item .badge {
    position: absolute;
    left: 10px;
    top: 10px;
}

[dir="rtl"] .sidebar-menu-item .badge {
    left: auto;
    right: 10px;
}

/* Sidebar nested menu (e.g. hard copy services) */
.sidebar-nav-group {
    margin-bottom: 10px;
}

.sidebar-nav-toggle {
    background-color: #fff;
    font: inherit;
    color: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.sidebar-nav-toggle .sidebar-nav-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    opacity: 0.85;
}

.sidebar-nav-toggle[aria-expanded="true"] .sidebar-nav-chevron {
    transform: rotate(180deg);
}

.sidebar-submenu {
    padding-inline-start: 0.65rem;
    margin-top: 4px;
}

.sidebar-submenu .sidebar-submenu-item {
    margin-bottom: 8px;
    padding-inline-start: 12px;
    font-size: 0.95rem;
}

.sidebar-submenu .sidebar-submenu-item:last-child {
    margin-bottom: 0;
}

/* Print: hard copy requests report (body class set on that page) */
@media print {
    body.gradportal-print-hard-copy-requests .no-print,
    body.gradportal-print-hard-copy-requests .portal-header,
    body.gradportal-print-hard-copy-requests .footer,
    body.gradportal-print-hard-copy-requests .alumni-sidebar,
    body.gradportal-print-hard-copy-requests .back-to-top,
    body.gradportal-print-hard-copy-requests .impersonation-banner,
    body.gradportal-print-hard-copy-requests .alert {
        display: none !important;
    }

    body.gradportal-print-hard-copy-requests .page-wrapper main.container-fluid {
        margin: 0;
        padding: 0.5rem;
    }

    body.gradportal-print-hard-copy-requests main .row > .order-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ============================================================================
   CONTENT AREA STYLES
   ============================================================================ */
.content-header {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.content-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.content-header p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ============================================================================
   TAB NAVIGATION STYLES
   ============================================================================ */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 25px;
}

.nav-tabs .nav-link {
    color: #333;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    margin-bottom: -2px;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: transparent;
}

/* ============================================================================
   CARD STYLES - DGA Standards
   ============================================================================ */

/* Basic Card - DGA Compliant */
.info-card,
.card {
    background-color: var(--color-white);
    border: 1px solid var(--color-neutral-200);  /* DGA border */
    border-radius: var(--radius-md);  /* 8px DGA standard */
    box-shadow: var(--shadow-sm);  /* DGA shadow-sm */
    padding: var(--spacing-6); /* 24px - DGA Medium Card */
    margin-bottom: var(--spacing-4);  /* 16px DGA spacing */
    transition: all 200ms ease-in-out;  /* DGA transition */
}
.info-card-small,
.card {
    background-color: var(--color-white);
    border: 1px solid var(--color-neutral-200);  /* DGA border */
    border-radius: var(--radius-md);  /* 8px DGA standard */
    box-shadow: var(--shadow-sm);  /* DGA shadow-sm */
    /* padding: var(--spacing-6);  24px - DGA Medium Card */
    /* margin-bottom: var(--spacing-4);  16px DGA spacing */
    transition: all 200ms ease-in-out;  /* DGA transition */
}

.dashboard-stat-card {
    padding:0px
}

/* Card Hover Effect - DGA */
.info-card:hover,
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);  /* DGA hover lift */
}

/* Card Title - DGA Typography */
.info-card-title,
.card-title {
    font-size: var(--font-size-lg);  /* 18px - DGA Text LG */
    line-height: var(--line-height-lg);  /* 28px */
    font-weight: 600;  /* DGA SemiBold */
    margin-bottom: var(--spacing-4);  /* 16px */
    color: var(--color-neutral-900);  /* DGA heading color */
}

/* Card Subtitle */
.card-subtitle {
    font-size: var(--font-size-sm);  /* 14px */
    line-height: var(--line-height-sm);  /* 20px */
    color: var(--color-neutral-600);  /* DGA secondary text */
    margin-bottom: var(--spacing-2);  /* 8px */
}

/* Card Text */
.card-text {
    font-size: var(--font-size-base);  /* 16px */
    line-height: var(--line-height-base);  /* 24px */
    color: var(--color-neutral-700);  /* DGA primary text */
}

/* ============================================================================
   INFORMATION DISPLAY (Label-Value Pairs)
   ============================================================================ */
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--text-muted);
    font-weight: 500;
    min-width: 150px;
}

.info-value {
    color: #333;
    font-weight: 400;
    flex: 1;
}

.info-value .update-link {
    color: var(--primary-color);
    text-decoration: none;
    margin-inline-start: 10px;
    font-size: 0.9rem;
}

.info-value .update-link:hover {
    text-decoration: underline;
}

/* ============================================================================
   BUTTON STYLES
   ============================================================================ */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ============================================================================
   BADGE/STATUS STYLES - DGA Standards
   ============================================================================ */

/* Base Badge Styling - DGA */
.badge {
    font-size: var(--font-size-xs);  /* 12px - DGA Text XS */
    line-height: var(--line-height-xs);  /* 18px */
    font-weight: 500;  /* DGA Medium */
    padding: var(--spacing-1) var(--spacing-2);  /* 4px 8px */
    /* border-radius: var(--radius-circular);  100% - DGA fully rounded */
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-1);  /* 4px for icons */
}

/* Badge Variants - DGA Colors */

/* Error/Incomplete/Danger Badge */
.badge-incomplete,
.badge-danger,
.badge-required {
    background-color: var(--color-danger-light);  /* #fee4e2 */
    color: var(--color-danger);  /* #d92c20 */
}

/* Success/Complete Badge */
.badge-complete,
.badge-success {
    background-color: var(--color-success-light);  /* #dcfae6 */
    color: var(--color-success);  /* #069454 */
}

/* Warning/Pending Badge */
.badge-pending,
.badge-warning {
    background-color: var(--color-warning-light);  /* #fef0c7 */
    color: var(--color-warning);  /* #dc6803 */
}

/* Info Badge */
.badge-info {
    background-color: var(--color-info-light);  /* #d1e9ff */
    color: var(--color-info);  /* #156fee */
}

/* Primary Badge */
.badge-primary {
    background-color: var(--color-primary-light);  /* #dff6e7 */
    color: var(--color-primary);  /* #1b8354 */
}

/* Default Badge */
.badge-light,
.badge-secondary {
    background-color: var(--color-neutral-100);  /* #f3f4f6 */
    color: var(--color-neutral-700);  /* #384250 */
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */
@media (max-width: 992px) {
    /* Header responsive adjustments */
    .portal-header .navbar-brand h5 {
        font-size: 1rem;
    }
    
    .portal-header .navbar-brand small {
        font-size: 0.75rem;
    }
    
    .btn-header-login {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
    }
    
    .info-label {
        margin-bottom: 5px;
        font-weight: 600;
    }
    
    .sidebar {
        margin-bottom: 20px;
    }
    
    /* Mobile header adjustments */
    .portal-header .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .portal-header .navbar-brand {
        margin-inline-end: auto;
        margin-inline-start: 0;
    }

    [dir="rtl"] .portal-header .navbar-brand {
        margin-inline-start: auto;
        margin-inline-end: 0;
    }
    
    /* Actions stacked on mobile */
    #navbarActions .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    
    .btn-header-login {
        width: 100%;
        justify-content: center;
    }
    
    .header-icon-link {
        width: auto;
        height: auto;
    }
}

/* ============================================================================
   RTL SPECIFIC ADJUSTMENTS
   ============================================================================ */
[dir="rtl"] .info-row {
    text-align: right;
}

[dir="rtl"] .nav-tabs .nav-link {
    margin-left: 0;
    margin-right: 0;
}

/* ============================================================================
   FOOTER STYLES - Based on SEU Website
   ============================================================================ */

/* SEU Footer Dark Green Background */
.footer {
    background-color: #084d31;
    /* background-image: linear-gradient(to bottom, #0d3d27 0%, #0a2f1e 100%); */
    position: relative;
    color: #fff;
}

.footer * {
    font-family: 'IBM Plex Sans Arabic', 'Arial', sans-serif;
}

/* Footer Main Content */
.footer .container {
    max-width: 1320px;
    /* margin-left: 4rem;
    margin-right: 4rem;
    padding-left: 3rem;
    padding-right: 3rem; */
}
.footerLinksList {
    list-style: none;
    padding: 0;
    margin: 0 16px;
    color: #fff;
    text-decoration:none;
    font-weight: 500;
}

.footerBottom .footerCopyright .links {
    display: flex;
    flex-wrap: wrap;
    font-size: x-small;
}
.copyRight  {
    display: flex;
    flex-wrap: wrap;
    font-size: x-small;
    width: 50%;
}

.footerLogos {
    padding-right: 23%;
    min-width: 200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.footerLinksList a {
    color: #fff;
    text-decoration:none;
    font-size: 0.7rem;
    font-weight: 500;
}
/* Footer Titles */
/* .footer-title {
    font-size: 0.7rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    
    border-bottom: 1px solid rgb(255 255 255 / 60%);
}

/* Footer Links 
.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.footer-links li a {
    font-size: 0.7rem;
    font-weight: 500;
    color: #fff !important;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 300;
} */

.footerLinksList a:hover,
.hover-light:hover {
    color: #fff !important;
    
    text-decoration: underline;
}


/* Social Icons - Bordered Style */
.social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

/* Footer icon boxes (same as social-icon for consistency) */
.footer-icon-box {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.footer-icon-box:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.footer-col-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.25rem;
}

/* Mobile App Section */
.seu-footer h6 {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1rem;
}

.seu-footer .btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
    background-color: transparent;
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    font-weight: 300;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.seu-footer .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.seu-footer .btn-outline-light i {
    font-size: 1rem;
}

/* Footer Bottom Section */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links-bottom {
    gap: 1rem !important;
}

.footer-links-bottom a {
    font-size: 0.75rem;
    color: #fff !important;
    font-weight: 300;
}

.footer-links-bottom a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-links-bottom span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    line-height: 1.6;
}

/* Vision Badge & Logo */
.vision-badge {
    padding: 6px 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.03);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-logo i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    color: #fff;
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .seu-footer .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 768px) {
    .seu-footer .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .footer-title {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-links li a {
        font-size: 0.75rem;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .footer-links-bottom {
        flex-direction: column !important;
        gap: 0.4rem !important;
        align-items: flex-start !important;
    }
    
    .footer-links-bottom span {
        display: none;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    [dir="rtl"] .back-to-top {
        right: auto;
        left: 20px;
    }
}

/* Old Footer Styles (for backward compatibility) */
footer {
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

footer .hover-primary:hover {
    color: var(--primary-color) !important;
}

footer .hover-primary i {
    transition: transform 0.3s ease;
}

footer .hover-primary:hover i {
    transform: scale(1.1);
}

/* Add your additional custom styles below */
/* ========================================================================== */

/**
 * Shared CSS Styles
 * Saudi Electronic University - Academic Accreditation Portal
 */

 :root {
    /* SEU Brand Colors */
    --seu-primary: #0066a1;
    --seu-primary-dark: #004d7a;
    --seu-primary-light: #e6f2f8;
    --seu-secondary: #6c757d;
    --seu-success: #198754;
    --seu-danger: #dc3545;
    --seu-warning: #ffc107;
    --seu-info: #0dcaf0;
    
    /* Neutral Colors */
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
}

/* Global Styles */
body {
    font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
}

/* Utility Classes */
.text-seu-primary {
    color: var(--seu-primary) !important;
}

.bg-seu-primary {
    background-color: var(--seu-primary) !important;
}

.btn-seu-primary {
    background-color: var(--seu-primary);
    border-color: var(--seu-primary);
    color: white;
}

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

/* Card Styles */
.card {
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Font Awesome Icon Fix */
.fa, .fas, .far, .fal, .fab {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.fab {
    font-family: "Font Awesome 6 Brands" !important;
}

.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

.far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400;
}

/* ============================================================================
   DGA NAVIGATION DRAWER - Following Saudi Design System
   ============================================================================ */

.nav-drawer {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.nav-drawer-header {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.nav-drawer-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-drawer-list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
}

.nav-drawer-item {
    margin: 0;
}

.nav-drawer-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-drawer-link:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.nav-drawer-link.active {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 500;
}

.nav-drawer-link.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #495057;
}

[dir="ltr"] .nav-drawer-link.active::before {
    right: auto;
    left: 0;
}

.nav-drawer-icon {
    width: 20px;
    font-size: 1.125rem;
    margin-left: 0.75rem;
    color: inherit;
    flex-shrink: 0;
}

[dir="ltr"] .nav-drawer-icon {
    margin-left: 0;
    margin-right: 0.75rem;
}

.nav-drawer-text {
    flex: 1;
}

.nav-drawer-badge {
    background-color: #e9ecef;
    color: #495057;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    margin-right: 0.5rem;
    min-width: 20px;
    text-align: center;
}

[dir="ltr"] .nav-drawer-badge {
    margin-right: 0;
    margin-left: 0.5rem;
}

.nav-drawer-badge.badge-danger {
    background-color: #dc3545;
    color: white;
}

.nav-drawer-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 0.5rem 0;
}

/* Navigation Drawer Submenu */
.nav-drawer-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: transparent;
}

.nav-drawer-subitem {
    margin: 0;
}

.nav-drawer-sublink {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-drawer-sublink:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.nav-drawer-sublink.active {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 500;
}

.nav-drawer-sublink.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #495057;
}

[dir="ltr"] .nav-drawer-sublink.active::before {
    right: auto;
    left: 0;
}

/* Ensure submenu icons match main menu icons */
.nav-drawer-sublink .nav-drawer-icon {
    width: 20px;
    font-size: 1.125rem;
    margin-left: 0.75rem;
    color: inherit;
    flex-shrink: 0;
}

[dir="ltr"] .nav-drawer-sublink .nav-drawer-icon {
    margin-left: 0;
    margin-right: 0.75rem;
}

/* Settings menu chevron icon */
.nav-drawer-link .fa-chevron-down {
    transition: transform 0.2s ease;
    margin-right: auto;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: #6c757d;
    flex-shrink: 0;
}

[dir="ltr"] .nav-drawer-link .fa-chevron-down {
    margin-right: 0.5rem;
    margin-left: auto;
}

.nav-drawer-link[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Settings parent link when submenu is expanded */
.nav-drawer-link[aria-expanded="true"] {
    background-color: #f8f9fa;
}

/* Mobile Settings chevron */
.mobile-nav-link .fa-chevron-down {
    transition: transform 0.2s ease;
    margin-right: auto;
    margin-left: 0.5rem;
    font-size: 0.75rem;
    color: #6c757d;
    flex-shrink: 0;
}

[dir="ltr"] .mobile-nav-link .fa-chevron-down {
    margin-right: 0.5rem;
    margin-left: auto;
}

.mobile-nav-link[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Mobile Navigation Submenu */
.mobile-nav-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: transparent;
}

.mobile-nav-subitem {
    margin: 0;
}

.mobile-nav-sublink {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem 1rem 3rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-size: 1rem;
    border-bottom: 1px solid #f8f9fa;
}

.mobile-nav-sublink:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.mobile-nav-sublink.active {
    background-color: #f0f7ff;
    color: var(--color-primary);
    font-weight: 500;
}

.mobile-nav-sublink.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--color-primary);
}

[dir="ltr"] .mobile-nav-sublink.active::before {
    right: auto;
    left: 0;
}

/* Ensure mobile submenu icons match main menu icons */
.mobile-nav-sublink .mobile-nav-icon {
    width: 20px;
    font-size: 1.125rem;
    margin-left: 0.75rem;
    color: inherit;
    flex-shrink: 0;
}

[dir="ltr"] .mobile-nav-sublink .mobile-nav-icon {
    margin-left: 0;
    margin-right: 0.75rem;
}

/* ============================================================================
   MOBILE NAVIGATION MENU
   ============================================================================ */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    background: none;
    border: none;
    color: #495057;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
}

.mobile-menu-toggle:hover {
    color: var(--color-primary);
    background-color: #f8f9fa;
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1041;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

[dir="ltr"] .mobile-nav-drawer {
    right: auto;
    left: -100%;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-drawer.active {
    right: 0;
}

[dir="ltr"] .mobile-nav-drawer.active {
    left: 0;
}

/* Mobile Nav Header */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-nav-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.mobile-nav-close:hover {
    color: #495057;
    background-color: #f8f9fa;
}

.mobile-nav-close:active {
    transform: scale(0.9);
}

/* Mobile Nav Content */
.mobile-nav-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-item {
    margin: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-size: 1rem;
    border-bottom: 1px solid #f8f9fa;
}

.mobile-nav-link:hover {
    background-color: #f8f9fa;
    color: var(--color-primary);
}

.mobile-nav-link.active {
    background-color: #f0f7ff;
    color: var(--color-primary);
    font-weight: 500;
}

.mobile-nav-link.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--color-primary);
}

[dir="ltr"] .mobile-nav-link.active::before {
    right: auto;
    left: 0;
}

.mobile-nav-icon {
    width: 24px;
    font-size: 1.25rem;
    margin-left: 1rem;
    color: inherit;
    flex-shrink: 0;
    text-align: center;
}

[dir="ltr"] .mobile-nav-icon {
    margin-left: 0;
    margin-right: 1rem;
}

.mobile-nav-text {
    flex: 1;
    font-size: 1rem;
}

.mobile-nav-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 0.5rem 1.25rem;
}

/* Mobile Nav User Header */
.mobile-nav-user-header {
    padding: 1rem 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    margin-top: 0.5rem;
}

.mobile-nav-user-header .text-danger {
    color: #dc3545 !important;
}

.mobile-nav-link.text-danger {
    color: #dc3545 !important;
}

.mobile-nav-link.text-danger:hover {
    background-color: #fff5f5;
    color: #dc3545 !important;
}

.mobile-nav-link.text-warning {
    color: #ff9800 !important;
}

.mobile-nav-link.text-warning:hover {
    background-color: #fff8e1;
    color: #ff9800 !important;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Responsive Navigation Drawer - Desktop Only */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-nav-drawer,
    .mobile-nav-overlay {
        display: none !important;
    }
}

/* ============================================================================
   SERVICE CARDS STYLING - DGA Portal Dashboard Pattern
   ============================================================================ */

/* Service Card Container - DGA Standards */
.service-card {
    /* DGA Card Structure */
    background: var(--color-white);
    border: 1px solid var(--color-neutral-200);  /* DGA border */
    border-radius: var(--radius-lg);  /* 12px - DGA XLarge radius for special cards */
    padding: var(--spacing-6);  /* 24px - DGA Medium padding */
    
    /* DGA Effects */
    box-shadow: var(--shadow-sm);
    transition: all 200ms ease-in-out;  /* DGA 200ms standard */
    cursor: pointer;
}

/* Service Card Hover - DGA */
.service-card:hover {
    transform: translateY(-4px);  /* DGA hover lift slightly reduced */
    box-shadow: var(--shadow-lg) !important;  /* DGA shadow-lg */
    border-color: var(--color-neutral-300);  /* DGA hover border */
}

/* Service Card Badge - DGA Colors */
.service-card .badge {
    width: fit-content;
    font-size: var(--font-size-xs);  /* 12px - DGA Text XS */
    line-height: var(--line-height-xs);  /* 18px */
    font-weight: 500;  /* DGA Medium */
    padding: var(--spacing-1) var(--spacing-3);  /* 4px 12px */
    border-radius: var(--radius-sm);  /* 6px */
    background-color: var(--color-neutral-100) !important;  /* DGA neutral */
    color: var(--color-neutral-700) !important;  /* DGA text */
    margin-bottom: var(--spacing-3);  /* 12px */
}

/* Service Card Title - DGA Typography */
.service-card .card-title {
    font-size: var(--font-size-lg);  /* 18px - DGA Text LG */
    line-height: var(--line-height-lg);  /* 28px - DGA 1.5 ratio */
    font-weight: 600;  /* DGA SemiBold */
    color: var(--color-neutral-900);  /* DGA heading color */
    margin-bottom: var(--spacing-3);  /* 12px */
}

/* Service Card Description - DGA Typography */
.service-card .card-text {
    font-size: var(--font-size-sm);  /* 14px - DGA Text SM */
    line-height: var(--line-height-sm);  /* 20px - DGA 1.6 ratio */
    color: var(--color-neutral-600);  /* DGA secondary text */
    margin-bottom: var(--spacing-4);  /* 16px spacing below */
}

/* Service Card Link - DGA Colors */
.service-card a {
    font-size: var(--font-size-sm);  /* 14px */
    line-height: var(--line-height-sm);  /* 20px */
    font-weight: 500;  /* DGA Medium */
    color: var(--color-primary) !important;  /* DGA primary green */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);  /* 8px - DGA standard icon spacing */
    transition: all 200ms ease-in-out;  /* DGA transition */
}

/* Service Card Link Hover - DGA */
.service-card a:hover {
    color: var(--color-primary-hover) !important;  /* DGA hover green */
}

/* Service Card Link Icon Animation - DGA */
.service-card a i {
    transition: transform 200ms ease-in-out;  /* DGA transition */
}

/* Icon Movement on Hover - RTL Aware */
.service-card:hover a i {
    transform: translateX(-3px);  /* Move left in LTR */
}

[dir="ltr"] .service-card:hover a i {
    transform: translateX(3px);  /* Move right in LTR */
}

/* Service Card Body Spacing */
.service-card .card-body {
    padding: 0;  /* Remove default Bootstrap padding */
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Position link at bottom corner */
.service-card a {
    margin-top: auto;  /* Push to bottom */
    align-self: flex-start;  /* Align to left in RTL (bottom-left in Arabic) */
}

[dir="ltr"] .service-card a {
    align-self: flex-end;  /* Align to right in LTR (bottom-right in English) */
}

/* Modal print trigger: match .service-card a appearance */
.service-card button.service-card-link {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-sm);
    font-weight: 500;
    color: var(--color-primary) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    transition: all 200ms ease-in-out;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    margin-top: auto;
    align-self: flex-start;
    text-align: inherit;
}
.service-card button.service-card-link:hover {
    color: var(--color-primary-hover) !important;
}
.service-card button.service-card-link i {
    transition: transform 200ms ease-in-out;
}
.service-card:hover button.service-card-link i {
    transform: translateX(-3px);
}
[dir="ltr"] .service-card:hover button.service-card-link i {
    transform: translateX(3px);
}
[dir="ltr"] .service-card button.service-card-link {
    align-self: flex-end;
}

/* ============================================================================
   RTL MIRRORING (Arabic): push badge + action link to the right edge so the
   card fully mirrors the right-aligned title/description. Physical auto-margins
   are used on purpose: they are deterministic no matter how the browser
   resolves flex-start on the cross axis of an RTL column.
   ============================================================================ */
[dir="rtl"] .service-card .badge {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .service-card .card-body > .d-flex {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: 0;
}

/* ============================================================================
   COMING SOON BADGE - Service Card Stamp Style
   ============================================================================ */

/* Coming Soon Card - positioning + muted content */
.coming-soon-card {
    position: relative;
    overflow: visible;  /* Allow stamp to slightly overflow */
    opacity: 0.90;
    filter: grayscale(20%);
}

/* Coming Soon Badge - Rectangular Stamp Style */
.coming-soon-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    
    /* Stamp appearance */
    background-color: rgba(255, 255, 255, 0.35);
    color: #6b9e7c;  /* Desaturated stamp green */
    padding: 16px 40px;
    font-size: 1.65rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.02em;
    
    /* Double border for stamp effect */
    border: 4px double #6b9e7c;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(107, 158, 124, 0.25);
    
    z-index: 10;
    text-align: center;
    opacity: 0.92;
    pointer-events: none;
    
    /* Stamp mesh / grid texture */
    background-image: 
        linear-gradient(rgba(107, 158, 124, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(107, 158, 124, 0.06) 1px, transparent 1px),
        linear-gradient(45deg, transparent 48%, rgba(107, 158, 124, 0.04) 48%, rgba(107, 158, 124, 0.04) 52%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(107, 158, 124, 0.04) 48%, rgba(107, 158, 124, 0.04) 52%, transparent 52%);
    background-size: 6px 6px, 6px 6px, 4px 4px, 4px 4px;
    background-position: 0 0, 0 0, 0 0, 2px 2px;
}

/* RTL: stamp angle matches Arabic layout */
[dir="rtl"] .coming-soon-badge {
    transform: translate(-50%, -50%) rotate(-16deg);
}

/* No “lift” hover on stamped cards */
.service-card.coming-soon-card {
    cursor: default;
}

/* Locked (coming soon): absorb all clicks; nothing on the card is interactive */
.service-card.coming-soon-card--locked {
    user-select: none;
    cursor: not-allowed;
}

.service-card.coming-soon-card--locked,
.service-card.coming-soon-card--locked * {
    pointer-events: none;
}

.service-card.coming-soon-card--locked::before {
    pointer-events: auto;
}

.service-card.coming-soon-card--locked:hover {
    opacity: 0.90;
    filter: grayscale(20%);
    transform: none;
    box-shadow: var(--shadow-sm) !important;
    border-color: var(--color-neutral-200);
}

.service-card.coming-soon-card--locked:hover .coming-soon-badge {
    opacity: 0.92;
    transform: translate(-50%, -50%) rotate(-15deg);
}

[dir="rtl"] .service-card.coming-soon-card--locked:hover .coming-soon-badge {
    transform: translate(-50%, -50%) rotate(-16deg);
}

.service-card.coming-soon-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm) !important;
    border-color: var(--color-neutral-200);
}

.coming-soon-card:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.coming-soon-card:hover .coming-soon-badge {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-12deg) scale(1.05);
    transition: all 0.3s ease;
}

[dir="rtl"] .coming-soon-card:hover .coming-soon-badge {
    transform: translate(-50%, -50%) rotate(-13deg) scale(1.05);
}

/* Coming Soon Card - Disable Link */
.coming-soon-card .disabled-link {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Footer rows use <span> instead of <a>; match link styling */
.coming-soon-card span.service-card-link.disabled-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-sm);
    font-weight: 500;
    color: var(--color-primary) !important;
    margin-top: auto;
    align-self: flex-start;
}

[dir="ltr"] .coming-soon-card span.service-card-link.disabled-link {
    align-self: flex-end;
}

/* Coming Soon Card - Add subtle overlay effect */
.coming-soon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 1;
    border-radius: var(--radius-lg);
}

/* Locked cards: overlay sits above content and absorbs pointer events */
.coming-soon-card--locked::before {
    z-index: 15;
    background: rgba(255, 255, 255, 0.35);
    pointer-events: auto;
    cursor: not-allowed;
}

/* Ensure card content is above overlay (except locked cards) */
.coming-soon-card:not(.coming-soon-card--locked) .card-body {
    position: relative;
    z-index: 2;
}

.coming-soon-card--locked .card-body {
    position: relative;
    z-index: auto;
}


/* Services Page Header Section */
.services-header-section {
    text-align: center;
    padding: var(--spacing-6) 0;
}

/* Services Page Icon */
.services-page-icon {
    font-size: 2rem;
}

/* Service Search Container */
.service-search-container {
    margin-top: var(--spacing-4);
    display: flex;
    justify-content: center;
}

.service-search-container .input-group {
    max-width: 600px;
    width: 100%;
}

.service-search-container .input-group-text {
    border-color: var(--color-neutral-200);
    padding: var(--spacing-3) var(--spacing-4);
}

.service-search-container .form-control {
    border-color: var(--color-neutral-200);
    padding: var(--spacing-3) var(--spacing-4);
    font-size: var(--font-size-sm);
}

.service-search-container .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.15);
}

/* Hide service cards when filtering */
.service-card-hidden {
    display: none !important;
}

/* No Results Message */
.service-no-results {
    display: none;
    text-align: center;
    padding: var(--spacing-8) var(--spacing-6);
    margin: var(--spacing-6) auto;
    max-width: 500px;
}

.service-no-results i {
    font-size: 3rem;
    color: var(--color-neutral-400);
}

.service-no-results h5 {
    color: var(--color-neutral-700);
    font-weight: 600;
    margin-bottom: var(--spacing-2);
}

.service-no-results p {
    color: var(--color-neutral-500);
    font-size: var(--font-size-sm);
}

.service-no-results.show {
    display: block;
}

/* ============================================================================
   CLASS SCHEDULE PAGE STYLING
   ============================================================================ */

/* Class Schedule Header */
.class-schedule-header {
    padding: var(--spacing-4) 0;
}

/* Student Search Form */
.student-search-form .form-control {
    height: 45px;
    font-size: var(--font-size-base);
}

.student-search-form .btn {
    height: 45px;
}

/* ============================================================================
   DGA UTILITY CLASSES
   ============================================================================ */

/* DGA Typography Classes */
.dga-text-xs {
    font-size: var(--font-size-xs);  /* 12px */
    line-height: var(--line-height-xs);  /* 18px */
}

.dga-text-sm {
    font-size: var(--font-size-sm);  /* 14px */
    line-height: var(--line-height-sm);  /* 20px */
}

.dga-text-base {
    font-size: var(--font-size-base);  /* 16px */
    line-height: var(--line-height-base);  /* 24px */
}

.dga-text-lg {
    font-size: var(--font-size-lg);  /* 18px */
    line-height: var(--line-height-lg);  /* 28px */
}

.dga-text-xl {
    font-size: var(--font-size-xl);  /* 20px */
    line-height: var(--line-height-xl);  /* 30px */
}

/* DGA Color Classes */
.dga-text-primary { color: var(--color-neutral-700); }
.dga-text-secondary { color: var(--color-neutral-600); }
.dga-text-muted { color: var(--color-neutral-500); }
.dga-text-heading { color: var(--color-neutral-900); }
.dga-text-success { color: var(--color-success); }
.dga-text-warning { color: var(--color-warning); }
.dga-text-danger { color: var(--color-danger); }
.dga-text-info { color: var(--color-info); }
.dga-text-brand { color: var(--color-primary); }

/* DGA Background Colors */
.dga-bg-white { background-color: var(--color-white); }
.dga-bg-light { background-color: var(--color-neutral-50); }
.dga-bg-neutral { background-color: var(--color-neutral-100); }
.dga-bg-primary { background-color: var(--color-primary); }
.dga-bg-success { background-color: var(--color-success); }
.dga-bg-warning { background-color: var(--color-warning); }
.dga-bg-danger { background-color: var(--color-danger); }
.dga-bg-info { background-color: var(--color-info); }

/* DGA Spacing Utilities */
.dga-p-0 { padding: var(--spacing-0); }
.dga-p-2 { padding: var(--spacing-2); }
.dga-p-4 { padding: var(--spacing-4); }
.dga-p-6 { padding: var(--spacing-6); }
.dga-p-8 { padding: var(--spacing-8); }

.dga-m-0 { margin: var(--spacing-0); }
.dga-m-2 { margin: var(--spacing-2); }
.dga-m-4 { margin: var(--spacing-4); }
.dga-m-6 { margin: var(--spacing-6); }
.dga-m-8 { margin: var(--spacing-8); }

.dga-mb-2 { margin-bottom: var(--spacing-2); }
.dga-mb-3 { margin-bottom: var(--spacing-3); }
.dga-mb-4 { margin-bottom: var(--spacing-4); }
.dga-mb-6 { margin-bottom: var(--spacing-6); }

.dga-mt-2 { margin-top: var(--spacing-2); }
.dga-mt-4 { margin-top: var(--spacing-4); }
.dga-mt-6 { margin-top: var(--spacing-6); }
.dga-mt-8 { margin-top: var(--spacing-8); }

/* DGA Border Radius Utilities */
.dga-rounded-sm { border-radius: var(--radius-sm); }
.dga-rounded-md { border-radius: var(--radius-md); }
.dga-rounded-lg { border-radius: var(--radius-lg); }
.dga-rounded-full { border-radius: var(--radius-circular); }

/* DGA Shadow Utilities */
.dga-shadow-xs { box-shadow: var(--shadow-xs); }
.dga-shadow-sm { box-shadow: var(--shadow-sm); }
.dga-shadow-md { box-shadow: var(--shadow-md); }
.dga-shadow-lg { box-shadow: var(--shadow-lg); }
.dga-shadow-xl { box-shadow: var(--shadow-xl); }
.dga-shadow-none { box-shadow: none; }

/* DGA Border Utilities */
.dga-border { border: 1px solid var(--color-neutral-200); }
.dga-border-top { border-top: 1px solid var(--color-neutral-200); }
.dga-border-bottom { border-bottom: 1px solid var(--color-neutral-200); }
.dga-border-none { border: none; }

/* DGA Display & Layout */
.dga-flex { display: flex; }
.dga-flex-column { flex-direction: column; }
.dga-flex-center { display: flex; align-items: center; justify-content: center; }
.dga-flex-between { display: flex; justify-content: space-between; align-items: center; }
.dga-gap-2 { gap: var(--spacing-2); }
.dga-gap-4 { gap: var(--spacing-4); }
.dga-gap-6 { gap: var(--spacing-6); }

/* ========================================
   Alert Messages - Light Mode
   ======================================== */

/* Success Alert - Green */
.alert-success {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724 !important;
}

.alert-success .fas {
    color: #28a745;
}

/* Info Alert - Blue */
.alert-info {
    background-color: #d1ecf1 !important;
    border-color: #bee5eb !important;
    color: #0c5460 !important;
}

.alert-info .fas {
    color: #17a2b8;
}

/* Warning Alert - Yellow */
.alert-warning {
    background-color: #fff3cd !important;
    border-color: #ffeaa7 !important;
    color: #856404 !important;
}

.alert-warning .fas {
    color: #ffc107;
}

/* Danger/Error Alert - Red */
.alert-danger {
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
    color: #721c24 !important;
}

.alert-danger .fas {
    color: #dc3545;
}

/* Secondary Alert - Gray */
.alert-secondary {
    background-color: #e2e3e5 !important;
    border-color: #d6d8db !important;
    color: #383d41 !important;
}

.alert-secondary .fas {
    color: #6c757d;
}

/* Alert Close Button */
.alert .btn-close {
    filter: none;
    opacity: 0.5;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* Alert Icons */
.alert .fas {
    font-size: 1.1rem;
    vertical-align: middle;
}

/* Alert Border and Shadow */
.alert {
    border-radius: var(--radius-md);
    border-width: 1px;
    border-style: solid;
    box-shadow: var(--shadow-sm);
    font-size: var(--text-sm);
    padding: var(--spacing-4);
}

/* ========================================
   Student Information Display
   ======================================== */

/* Card Headers */
.card-header {
    background-color: var(--color-neutral-50) !important;
    border-bottom: 1px solid var(--color-neutral-200) !important;
}

/* Label Styling */
label.text-muted {
    color: var(--color-neutral-600) !important;
    font-weight: 500;
}

/* Progress Boxes */
.bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #e9ecef;
}

/* Progress Bar */
.progress {
    background-color: #e9ecef;
}

.progress-bar {
    background-color: var(--color-success-main) !important;
}

/* Badge Styling */
.badge {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Links in Student Info */
.card-body a {
    color: var(--color-primary-main);
}

.card-body a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline !important;
}


/* Stats Numbers */
.card-body h3 {
    font-size: 2rem;
    font-weight: 700;
}
.icon{
    background: none;
    color: #6c757d;
}

.mobile-app-icons .icon {
    color: white !important;
}

.mobile-app-icons .icon i {
    color: white !important;
}

.mobile-app-icons .icon svg {
    transform: scale(2.5);
    transform-origin: center;
}

.social-icons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.social-icons .icon {
    width: 2.0rem;
    height: 2.0rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 6px;
}

.social-icons .icon i {
    font-size: 1.2rem;
    color: white !important;
}


/* ============================================================================
   IMPERSONATION BANNER & MODAL
   ============================================================================ */

/* Impersonation Banner */
.impersonation-banner {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%) !important;
    border-bottom: 3px solid #ff9800 !important;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    animation: pulse-warning 2s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    }
    50% {
        box-shadow: 0 2px 12px rgba(255, 152, 0, 0.5);
    }
}

.impersonation-banner i {
    font-size: 1.25rem;
    animation: shake 3s ease-in-out infinite;
}

@keyframes shake {
    0%, 90%, 100% {
        transform: rotate(0deg);
    }
    92%, 96% {
        transform: rotate(-5deg);
    }
    94%, 98% {
        transform: rotate(5deg);
    }
}

/* Impersonation Modal */
#impersonateModal .modal-content {
    border: none;
}

#impersonateModal .list-group-item {
    border: 1px solid var(--color-neutral-200);
    transition: all 0.2s ease;
}

#impersonateModal .list-group-item:hover {
    background-color: var(--color-brand-50);
    border-color: var(--color-brand);
    transform: translateX(-2px);
}

[dir="rtl"] #impersonateModal .list-group-item:hover {
    transform: translateX(2px);
}

#impersonateModal .list-group-item:active {
    background-color: var(--color-brand-100);
}

/* ============================================================================
   INDEX PAGE - Dashboard Styles
   ============================================================================ */

/* Dashboard Header */
.dashboard-header-title {
    font-size: 28px;
    font-weight: 700;
    color: #161616;
}

/* Stat Card Icon Colors */
.stat-card-icon-primary {
    background: rgba(27, 131, 84, 0.1);
    color: #1b8354;
}

.stat-card-icon-success {
    background: rgba(22, 106, 69, 0.1);
    color: #166a45;
}

.stat-card-icon-warning {
    background: rgba(219, 161, 2, 0.1);
    color: #dba102;
}

.stat-card-icon-info {
    background: rgba(128, 81, 159, 0.1);
    color: #80519f;
}

.stat-card-icon-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* Filter Card */
.filter-card {
    border: 2px solid #e5e7eb;
}

.filter-card-body {
    padding: 15px;
}

/* Form Select Small */
.form-select-sm-custom {
    font-size: 13px;
    padding: 6px 10px;
}

/* Chart Header */
.chart-header-title {
    font-size: 18px;
    font-weight: 600;
    color: #161616;
}

.chart-header-icon {
    color: #1b8354;
}

/* Chart Container */
.chart-container {
    width: 100%;
    height: 400px;
}

/* Table Styles */
.table-header-bg {
    background: #f9fafb;
}

.table-header-cell {
    font-weight: 600;
    color: #4d5761;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Branch Table Cell Styles */
.branch-cell-value {
    font-weight: 500;
    color: #384250;
}

.branch-cell-total {
    font-weight: 600;
    color: #161616;
    font-size: 16px;
}

.branch-cell-male {
    font-weight: 500;
    color: #166a45;
}

.branch-cell-female {
    font-weight: 500;
    color: #dba102;
}

/* Stat Card Styles */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e5e7eb;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 10px 15px -3px rgba(16, 24, 40, 0.1), 0px 4px 6px -4px rgba(16, 24, 40, 0.1);
}

.stat-card .card-body {
    padding: 16px 20px;
}

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

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #161616;
    line-height: 1.1;
    margin-bottom: 0;
}

.stat-card-label {
    font-size: 13px;
    color: #6c727e;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Chart Card Styles */
.chart-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.chart-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.chart-body {
    padding: 24px;
}

.city-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f3fcf6;
    color: #166a45;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.snapshot-date {
    font-size: 12px;
    color: #9da4ae;
}

/* Select2 Dropdown Styling - Solid White Background */
.select2-container--bootstrap-5 .select2-dropdown {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb;
}

.select2-container--bootstrap-5 .select2-results__options {
    background-color: #ffffff !important;
}

.select2-container--bootstrap-5 .select2-results__option {
    background-color: #ffffff !important;
    color: #161616;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #f3f4f6 !important;
    color: #161616;
}

.select2-container--bootstrap-5 .select2-results__option[aria-selected=true] {
    background-color: #f3f4f6 !important;
    color: #161616;
}

.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb;
}

/* Ensure dropdown container has solid background */
.select2-container--bootstrap-5 .select2-dropdown--below {
    background-color: #ffffff !important;
}

.select2-container--bootstrap-5 .select2-dropdown--above {
    background-color: #ffffff !important;
}

/* ============================================================================
   BASE TEMPLATE - Common Styles
   ============================================================================ */

/* Header Logo */
.header-logo {
    height: 60px;
    width: auto;
}

/* Badge Styles */
.badge-beta {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
}

.text-muted-small {
    font-size: 0.85rem;
}

/* Impersonation Banner */
.impersonation-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Mobile Nav Chevron */
.mobile-nav-chevron {
    font-size: 0.75rem;
    margin-right: auto;
    margin-left: 0.5rem;
}

.nav-drawer-chevron {
    font-size: 0.75rem;
}

/* User Icon */
.user-icon-large {
    font-size: 2rem;
    color: var(--color-primary);
}

.user-email-small {
    font-size: 0.75rem;
}

/* Footer Styles */
.footer-row-margin {
    margin-left: 15%;
    margin-right: 15%;
}

/* SVG Vertical Align */
.svg-vertical-align {
    vertical-align: -0.125em;
}

/* Footer Logo Heights */
.footer-logo-seu {
    height: 40px;
}

.footer-logo-vision {
    height: 30px;
}

.footer-logo-dga {
    height: 35px;
}

/* Search Results Container */
.search-results-container {
    max-height: 300px;
    overflow-y: auto;
}

/* Page Title Styles */
.page-title-large {
    font-size: 28px;
    font-weight: 700;
    color: #161616;
}

.page-subtitle {
    font-size: 14px;
}

/* Icon Sizes */
.icon-size-2rem {
    font-size: 2rem;
}

.icon-size-3rem {
    font-size: 3rem;
}

.icon-size-5rem {
    font-size: 5rem;
}

/* Progress Bar Height */
.progress-bar-custom {
    height: 25px;
}

.progress-bar-small {
    height: 8px;
}

/* Login Page — RTL (base_auth.html uses dir="rtl" + bootstrap.rtl) */
.auth-page-wrapper {
    direction: rtl;
    text-align: start;
}
.auth-messages .alert {
    direction: rtl;
}
.auth-page-wrapper .login-card .form-label,
.auth-page-wrapper .login-card label {
    text-align: start;
    width: 100%;
}
.login-logo {
    height: 100px;
    width: auto;
}

/* Dynamic Progress Bars - Width set via JavaScript from data-progress attribute */
.progress-bar[data-progress] {
    width: 0%;
    transition: width 0.3s ease;
}

/* Hidden configuration elements */
.config-data {
    display: none;
}

/* ============================================================================
   INDEX / DASHBOARD - Graduates Portal Information Screen
   ============================================================================ */
.index-user-data-card .card-body {
    padding: var(--spacing-6);
}

.index-dl {
    font-size: var(--font-size-sm);
}
.index-dl dt {
    font-size: var(--font-size-xs);
    color: var(--color-neutral-500);
    margin-bottom: var(--spacing-1);
    font-weight: 500;
}
.index-dl dd {
    font-size: var(--font-size-base);
    color: var(--color-neutral-700);
    margin-inline-start: 0;  /* align under dt in RTL */
    text-align: start;
}

/* Index cards row - RTL */
.index-cards-row .card {
    border: 1px solid var(--color-neutral-200);
    overflow: hidden;
}

/* Card header - shared for jobs and notifications */
.index-card-header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-neutral-200);
    padding: var(--spacing-4) var(--spacing-6);
    font-weight: 600;
}

.index-card-icon {
    color: var(--color-primary);
    font-size: var(--font-size-lg);
}

.index-card-link {
    color: var(--color-primary) !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: color 0.2s ease;
}
.index-card-link:hover {
    color: var(--color-primary-hover) !important;
}

.index-jobs-card .card-body,
.index-notifications-card .card-body {
    padding: var(--spacing-6);
}

/* Jobs: search and filters */
.index-search-input {
    border-color: var(--color-neutral-200);
    font-size: var(--font-size-sm);
}
.index-search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(27, 131, 84, 0.15);
}
.index-select {
    min-width: 140px;
    border-color: var(--color-neutral-200);
    font-size: var(--font-size-sm);
}

/* Jobs: listing items */
.index-job-list .index-job-item {
    padding: var(--spacing-4) 0;
    border-bottom: 1px solid var(--color-neutral-200);
}
.index-job-list .index-job-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.index-job-list .index-job-item:first-child {
    padding-top: 0;
}

.index-job-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-1);
    line-height: var(--line-height-base);
}

.index-job-meta {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-2);
}

.index-job-actions {
    margin-top: var(--spacing-2);
}

.index-job-tag {
    font-size: var(--font-size-xs);
    font-weight: 500;
    padding: var(--spacing-1) var(--spacing-3);
    border-radius: 100px;
}
.index-job-tag-fulltime {
    background-color: var(--color-info);
    color: var(--color-white);
}
.index-job-tag-training {
    background-color: var(--color-warning);
    color: var(--color-white);
}

/* Notifications */
.index-notif-badge {
    width: 26px;
    height: 26px;
    font-size: 12px;
    line-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--radius-circular);
    font-weight: 600;
}

.index-notif-list .index-notif-item {
    padding: var(--spacing-4) 0;
    border-bottom: 1px solid var(--color-neutral-200);
}
.index-notif-list .index-notif-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.index-notif-list .index-notif-item:first-child {
    padding-top: 0;
}

.index-notif-text {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-sm);
}

.index-notif-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-circular);
    background-color: var(--color-info-light);
    color: var(--color-info);
}
.index-notif-icon.index-notif-icon-success {
    background-color: var(--color-success-light);
    color: var(--color-success);
}
.index-notif-icon i {
    font-size: 14px;
}

/* Companies table — compact logo thumbnail (fixed max size for large uploads) */
.company-table-logo-col {
    width: 1%;
}
.company-table-logo-cell {
    width: 1%;
    max-width: 36px;
    vertical-align: middle;
}
/* Fullscreen job offer modal: body scrolls, header/footer stay visible */
.job-opportunity-modal-dialog .modal-body {
    min-height: 0;
}

.company-detail-logo {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    border: 1px solid var(--color-neutral-200);
    background-color: var(--color-neutral-100);
}
.company-table-logo {
    display: block;
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius-md);
    background-color: var(--color-neutral-100);
    border: 1px solid var(--color-neutral-200);
    box-sizing: border-box;
}

/* ——— Job opportunities (فرص العمل والتدريب) ——— */
.job-opp-grid-wrap {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.25rem 1rem 1.5rem;
}
@media (min-width: 768px) {
    .job-opp-grid-wrap {
        padding: 1.5rem 1.5rem 1.75rem;
    }
}
[data-theme="dark"] .job-opp-grid-wrap {
    background: var(--bg-secondary, #1f2a37);
}
/* Job opportunities: label + input-group (no outer card) */
.job-opp-search-form {
    padding: 0.5rem 1rem 0.5rem;
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: var(--radius-lg, 8px);
    box-shadow:
        0 4px 14px rgba(15, 23, 42, 0.08),
        0 2px 4px rgba(15, 23, 42, 0.04);
}
[data-theme="dark"] .job-opp-search-form {
    background: var(--bg-secondary, #1f2a37);
    border-color: var(--border-color, #384250);
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.35),
        0 2px 6px rgba(0, 0, 0, 0.22);
}
.job-opp-search-form .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-secondary, #4d5761);
    margin-bottom: 0.5rem;
}
.job-opp-search-input-group .form-control {
    border-color: var(--border-color, #dee2e6);
    border-radius: var(--radius-md, 8px);
    text-align: start;
}
/* Placeholder and caret follow document RTL; input no longer uses dir="auto" which forced LTR when empty */
html[dir="rtl"] .job-opp-search-input-group .job-opp-search-input {
    text-align: right;
}
html[dir="rtl"] .job-opp-search-input-group .job-opp-search-input::placeholder {
    text-align: right;
    direction: rtl;
}


.job-opp-search-input-group .btn-outline-secondary {
    border-color: var(--border-color, #dee2e6);
    color: var(--text-secondary, #4d5761);
}

/* Hard copy requests: search field + submit button (input-group, full width) */
.hard-copy-requests-search-input-group {
    width: 100%;
}
.hard-copy-requests-search-input-group .hard-copy-requests-search-input {
    min-height: 2.75rem;
    border-color: var(--border-color, #e5e7eb);
    background-color: var(--bg-primary, #fff);
}
.hard-copy-requests-search-input-group .hard-copy-requests-search-input:focus {
    border-color: var(--primary-color, #1b8354);
    box-shadow: 0 0 0 0.2rem rgba(27, 131, 84, 0.15);
    z-index: 1;
}
.hard-copy-requests-search-input-group .hard-copy-requests-search-submit {
    border-color: var(--border-color, #dee2e6);
    color: var(--text-secondary, #4d5761);
    white-space: nowrap;
}
html[dir="rtl"] .hard-copy-requests-search-input-group .hard-copy-requests-search-input {
    text-align: right;
}
html[dir="rtl"] .hard-copy-requests-search-input-group .hard-copy-requests-search-input::placeholder {
    text-align: right;
    direction: rtl;
}

/* Icon-only print: DGA primary (green); keep table column compact */
.hard-copy-request-print-cert.btn-sm.btn-primary {
    min-width: 2.25rem;
    padding-inline: var(--spacing-2) !important;
}

.hard-copy-request-status-select {
    min-width: 9rem;
    max-width: 14rem;
}

/* Success stories (graduate submissions) */
.success-story-card {
    border-radius: var(--radius-lg, 12px);
    border-color: var(--border-color, #e5e7eb) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.success-story-card-title {
    color: var(--text-primary, #161616);
    font-weight: 600;
    line-height: 1.35;
}
.success-story-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: var(--color-primary, #1b8354);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}
.success-story-meta {
    font-size: 0.875rem;
}
.success-story-excerpt {
    font-size: 0.9rem;
    line-height: 1.55;
}
.success-story-read-more {
    color: var(--color-primary, #1b8354) !important;
}
.success-story-read-more:hover,
.success-story-read-more:focus {
    color: var(--color-primary-hover, #166a45) !important;
}
.success-story-read-more:focus-visible {
    outline: 2px solid var(--color-primary, #1b8354);
    outline-offset: 2px;
}
.success-story-read-more i {
    color: inherit;
}

/* Job listing grid: calm page tone like reference mocks */
.job-opp-grid {
    --job-opp-card-title: #1e293b;
    --job-opp-card-meta: #64748b;
    --job-opp-card-excerpt: #475569;
    --job-opp-card-time: #94a3b8;
    --job-opp-card-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    --job-opp-card-shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.1);
}
.job-opp-grid .job-opp-card {
    border-radius: 14px;
    background: var(--bg-primary, #fff);
    box-shadow: var(--job-opp-card-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.job-opp-grid .job-opp-card:hover {
    box-shadow: var(--job-opp-card-shadow-hover);
    transform: translateY(-1px);
}
.job-opp-card-body {
    padding: 1rem 1.15rem 0.9rem;
}
.job-opp-card-header {
    min-height: 0;
}
.job-opp-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--job-opp-card-title);
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.job-opp-card-meta {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--job-opp-card-meta);
    line-height: 1.4;
    margin-bottom: 0;
}
.job-opp-card-excerpt {
    font-size: 0.8125rem;
    color: var(--job-opp-card-excerpt);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.job-opp-card-time {
    font-size: 0.8125rem;
    color: var(--job-opp-card-time);
    line-height: 1.4;
}
.job-opp-card-apply-btn {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.3rem 0.95rem;
    border-radius: 999px;
    background: var(--color-primary, #1b8354);
    border-color: var(--color-primary, #1b8354);
    color: #fff;
}
.job-opp-card-apply-btn:hover {
    background: var(--color-primary-hover, #166a45);
    border-color: var(--color-primary-hover, #166a45);
    color: #fff;
}
.job-opp-card-status-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--bg-tertiary, #f1f5f9);
    color: var(--text-secondary, #64748b);
    border: 1px solid var(--border-color, #e2e8f0);
}
.job-opp-card-muted-msg {
    color: var(--job-opp-card-meta);
    max-width: 12rem;
}
.job-opp-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.25;
}
/* Reference: full-time blue, internship yellow, part-time purple */
.job-opp-badge--full-time {
    background: #eff6ff;
    color: #2563eb;
}
.job-opp-badge--part-time {
    background: #f5f3ff;
    color: #7c3aed;
}
.job-opp-badge--internship {
    background: #fef9c3;
    color: #ca8a04;
}
[data-theme="dark"] .job-opp-grid {
    --job-opp-card-title: #f1f5f9;
    --job-opp-card-meta: #94a3b8;
    --job-opp-card-excerpt: #cbd5e1;
    --job-opp-card-time: #64748b;
    --job-opp-card-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    --job-opp-card-shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .job-opp-grid .job-opp-card {
    background: var(--bg-secondary, #1f2a37);
}
[data-theme="dark"] .job-opp-card-status-pill {
    background: var(--bg-tertiary, #384250);
    border-color: var(--border-color, #384250);
    color: var(--text-secondary, #d2d6db);
}
[data-theme="dark"] .job-opp-badge--full-time {
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
}
[data-theme="dark"] .job-opp-badge--part-time {
    background: rgba(124, 58, 237, 0.2);
    color: #c4b5fd;
}
[data-theme="dark"] .job-opp-badge--internship {
    background: rgba(202, 138, 4, 0.2);
    color: #fde047;
}
.job-opp-apply-modal-content {
    border-radius: var(--radius-lg, 12px);
}
.job-opp-detail-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.job-opp-detail-row {
    display: grid;
    grid-template-columns: minmax(7rem, 28%) 1fr;
    gap: 0.75rem 1rem;
    align-items: start;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.job-opp-detail-row:first-child {
    padding-top: 0;
}
.job-opp-detail-row:last-child {
    border-bottom: none;
}
.job-opp-detail-row--stack {
    grid-template-columns: 1fr;
}
.job-opp-detail-row--stack .job-opp-detail-label {
    margin-bottom: 0.25rem;
}
.job-opp-detail-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary, #4d5761);
}
.job-opp-detail-value {
    font-size: 0.9375rem;
    color: var(--text-primary, #161616);
}
.job-opp-detail-prose {
    line-height: 1.6;
}
.job-opp-salary {
    font-weight: 700;
    color: var(--color-primary, #1b8354);
    font-size: 1.05rem;
}
@media (max-width: 576px) {
    .job-opp-detail-row:not(.job-opp-detail-row--stack) {
        grid-template-columns: 1fr;
    }
}

/* Success stories moderation — full story preview modal */
.story-preview-modal-body {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
    color: var(--text-primary, #161616);
}

