.badge.bg-danger,
.badge.bg-danger.text-white,
.badge.bg-danger.text-white *,
.badge.bg-danger.text-white i {
    color: #fff !important;
}
/* Custom styles for Rehlati application - Enhanced Al Sumri Theme */

/* ==========================================================================
   Navigation Enhancements for Dropdown Submenus
   ========================================================================== */

/* Dropdown submenu styling */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

.dropdown-submenu > .dropdown-item:after {
    display: block;
    content: "›";
    float: right;
    width: auto;
    color: var(--text-light);
}

/* Custom styles for Rehlati application - Enhanced Al Sumri Theme */

:root {
    /* Bootstrap CSS Variables (required for Bootstrap classes to work) */
    --bs-white-rgb: 255, 255, 255;
    --bs-danger-rgb: 220, 53, 69;
    --bs-text-opacity: 1;
    
    /* Primary colors mapped to Green Brand (was Al Sumri Blue) */
    --al-sumri-blue: #1F7A4D;  /* Emerald 700 */
    --al-sumri-blue-light: #35A86B; /* Emerald 500 */
    --al-sumri-blue-dark: #0F5F3A; /* Emerald 900 */
    
    /* Accent & secondary colors */
    --accent-color: #f9bd5f;
    --accent-light: #F3E5F5;
    --accent-dark: #f8ac3c;
    --secondary-color: #db202b;
    
    /* Text colors */
    --text-on-primary: #FFFFFF;
    --text-color: #333333;
    --text-light: #757575;
    --text-accent: #1F7A4D;
    
    /* Shadows and effects */
    --card-shadow: 0 6px 15px rgba(27, 105, 171, 0.1);
    --hover-shadow: 0 8px 20px rgba(27, 105, 171, 0.2);
    --button-shadow: 0 4px 8px rgba(27, 105, 171, 0.2);
    --hover-effect: rgba(219, 32, 43, 0.08);
    
    /* Success, warning, error colors */
    --success-color: #43A047;
    --warning-color: #FB8C00;
    --danger-color: #E53935;
    --info-color: #039BE5;
    
    /* Animation speeds */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    
    /* Border radius */
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-circle: 50%;
}

/* Global styles */
body {
    padding-bottom: 70px;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: var(--al-sumri-text-primary);
    background: transparent;
    transition: all var(--transition-normal) ease;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Navbar styling */
.navbar-dark.bg-primary {
    background: var(--al-sumri-primary) !important;
    box-shadow: 0 2px 12px rgba(15, 31, 70, 0.18);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.4rem;
    position: relative;
    overflow: hidden;
}

.navbar-brand:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-normal) ease;
}

.navbar-brand:hover:after {
    width: 100%;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    position: relative;
    transition: color var(--transition-fast) ease, transform var(--transition-fast) ease;
    border-radius: var(--border-radius-sm);
}

.nav-link:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.nav-link i {
    margin-right: 6px;
    font-size: 0.9em;
    transition: transform var(--transition-fast) ease;
}

.nav-link:hover i {
    transform: translateY(-1px);
}

.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 0.5rem;
    margin-top: 0.5rem;
    animation: fadeInDown var(--transition-normal) forwards;
}

.dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast) ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--hover-effect);
    transform: translateX(3px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: var(--al-sumri-blue);
}

.dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.1;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

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

/* Enhanced Navbar Styles */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all var(--transition-fast) ease;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    margin: 0 0.1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Dark Dropdown Menus */
.dropdown-menu-dark {
    background-color: #152621 !important; /* Green Slate 800 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    min-width: 280px;
}

.dropdown-menu-dark .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.6rem 1.2rem;
    transition: all var(--transition-fast) ease;
    border-radius: 0;
    display: flex;
    align-items: center;
}

.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transform: translateX(4px);
}

.dropdown-menu-dark .dropdown-item:active {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.dropdown-menu-dark .dropdown-header {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.2rem 0.3rem;
    margin-bottom: 0.2rem;
}

.dropdown-menu-dark .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.15);
    margin: 0.3rem 0;
}

/* Navbar Brand Enhancement */
.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    transition: all var(--transition-fast) ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: #ffffff !important;
}

.navbar-brand i {
    font-size: 1.6rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* User Dropdown Enhancement */
#userDropdown {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast) ease;
}

#userDropdown:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   User Dropdown Specific Styling
   ========================================================================== */

.user-dropdown {
    min-width: 280px !important;
    max-width: 350px;
}

.user-dropdown .dropdown-header {
    background: linear-gradient(135deg, #1b69ab, #db202b);
    color: #ffffff !important;
    border-radius: 8px;
    margin: 0.5rem;
    padding: 1rem;
    border: none !important;
}

.user-dropdown .dropdown-header.text-center {
    text-align: center;
}

.user-avatar-large {
    margin-bottom: 0.5rem;
}

.user-dropdown .dropdown-item.text-danger {
    color: #ff6b6b !important;
}

.user-dropdown .dropdown-item.text-danger:hover {
    background: linear-gradient(135deg, #ff6b6b, #ff5252) !important;
    color: #ffffff !important;
}

/* Fix dropdown text visibility in dark theme only - ENHANCED */
[data-bs-theme="dark"] .dropdown-menu {
    background: #2d2d2d !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

[data-bs-theme="dark"] .dropdown-menu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

[data-bs-theme="dark"] .dropdown-menu .dropdown-item {
    color: #ffffff !important;
    text-decoration: none;
    background: transparent !important;
    border: none !important;
    display: block !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
}

[data-bs-theme="dark"] .dropdown-menu .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-menu .dropdown-item:focus,
[data-bs-theme="dark"] .dropdown-menu .dropdown-item:active {
    background-color: rgba(27, 105, 171, 0.35) !important;
    background-image: none !important;
    color: #ffffff !important;
    transform: translateX(3px);
    transition: all 0.2s ease;
}

[data-bs-theme="dark"] .dropdown-menu .dropdown-header {
    color: #1b69ab !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
    padding: 0.6rem 1rem 0.4rem !important;
}

[data-bs-theme="dark"] .dropdown-menu .dropdown-divider {
    border-color: rgba(255,255,255,0.1) !important;
    margin: 0.5rem 0 !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
}

/* Colored icons for dropdown items */
.dropdown-item .text-success { color: #4CAF50 !important; }
.dropdown-item .text-info { color: #2196F3 !important; }
.dropdown-item .text-warning { color: #FF9800 !important; }
.dropdown-item .text-danger { color: #f44336 !important; }
.dropdown-item .text-primary { color: #1b69ab !important; }
.dropdown-item .text-al-sumri-blue { color: var(--al-sumri-blue, #1b69ab) !important; }

/* Dark theme form controls - ensure visibility across all pages */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #152621 !important; /* Green Slate 800 */
    border-color: rgba(53, 168, 107, 0.24) !important;
    color: #e8f2f0 !important; /* Light Green Slate */
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #243933 !important; /* Green Slate 700 */
    border-color: #35A86B !important;
    color: #e8f2f0 !important;
    box-shadow: 0 0 0 0.25rem rgba(53, 168, 107, 0.25) !important;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: rgba(178, 203, 199, 0.5) !important; /* Green Slate 300 with opacity */
}

/* Force Windows Chrome to use light dropdown options for visibility */
/* Windows doesn't support dark option styling, so we use color-scheme */
[data-bs-theme="dark"] .form-select {
    color-scheme: dark;
}

/* Fallback: force option text to be visible on all platforms */
[data-bs-theme="dark"] .form-select option {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

[data-bs-theme="dark"] .input-group-text {
    background-color: #243933 !important; /* Green Slate 700 */
    border-color: rgba(53, 168, 107, 0.24) !important;
    color: #b2cbc7 !important; /* Green Slate 300 */
}

/* Dark theme modal fixes (global) */
[data-bs-theme="dark"] .modal-content {
    background-color: #152621 !important; /* Green Slate 800 */
    color: #e8f2f0 !important;
    border-color: rgba(53, 168, 107, 0.24) !important;
}

[data-bs-theme="dark"] .modal-header:not([class*="bg-"]) {
    background-color: #243933 !important; /* Green Slate 700 */
    color: #e8f2f0 !important;
    border-bottom-color: rgba(53, 168, 107, 0.24) !important;
}

[data-bs-theme="dark"] .modal-footer {
    border-top-color: rgba(53, 168, 107, 0.24) !important;
}

[data-bs-theme="dark"] .modal .text-dark {
    color: #e8f2f0 !important;
}

[data-bs-theme="dark"] .modal .text-muted {
    color: #b2cbc7 !important;
}

/* Dark theme live banner fixes */
[data-bs-theme="dark"] #live-update-banner {
    background-color: #243933 !important; /* Green Slate 700 */
    color: #e8f2f0 !important;
    border-color: rgba(53, 168, 107, 0.24) !important;
}

[data-bs-theme="dark"] #live-update-banner .text-muted {
    color: #b2cbc7 !important;
}

[data-bs-theme="dark"] #live-update-banner .btn-link {
    color: #b2cbc7 !important;
}

/* Tom Select dark theme support - used on many pages */
[data-bs-theme="dark"] .ts-control,
[data-bs-theme="dark"] .ts-wrapper.single .ts-control {
    background-color: #152621 !important; /* Green Slate 800 */
    border-color: rgba(53, 168, 107, 0.24) !important;
    color: #e8f2f0 !important;
}

[data-bs-theme="dark"] .ts-control input,
[data-bs-theme="dark"] .ts-control input::placeholder {
    color: #e8f2f0 !important;
}

[data-bs-theme="dark"] .ts-dropdown {
    background-color: #243933 !important; /* Green Slate 700 */
    border-color: rgba(53, 168, 107, 0.24) !important;
    color: #e8f2f0 !important;
}

[data-bs-theme="dark"] .ts-dropdown .option {
    background-color: #243933 !important;
    color: #e8f2f0 !important;
}

[data-bs-theme="dark"] .ts-dropdown .option:hover,
[data-bs-theme="dark"] .ts-dropdown .option.active {
    background-color: rgba(53, 168, 107, 0.25) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .ts-dropdown .optgroup-header {
    background-color: #152621 !important;
    color: #7ea199 !important; /* Green Slate 400 */
}

[data-bs-theme="dark"] .ts-wrapper .item {
    background-color: rgba(127, 160, 245, 0.2) !important;
    color: #f1f5ff !important;
    border-color: rgba(127, 160, 245, 0.3) !important;
}

/* ==========================================================================
   End User Dropdown Styling
   ========================================================================== */

/* Mobile Responsive Enhancements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: var(--border-radius);
        margin-top: 1rem;
        padding: 1rem;
        backdrop-filter: blur(10px);
    }
    
    .dropdown-menu-dark {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        border: none;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
        background-color: rgba(255, 255, 255, 0.05) !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.1rem 0;
    }
    
    .dropdown-item {
        padding-left: 2rem !important;
    }
    
    .dropdown-header {
        padding-left: 2rem !important;
    }
}

/* Dropdown Icon Animation */
.dropdown-toggle::after {
    transition: transform var(--transition-fast) ease;
}

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

/* Badge Notifications (for future use) */
.nav-link .badge {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    font-size: 0.6rem;
    min-width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Navbar Sticky Enhancement */
.sticky-top {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Dropdown Menu Icons */
.dropdown-item i {
    width: 1.2rem;
    text-align: center;
    opacity: 0.8;
}

.dropdown-item:hover i {
    opacity: 1;
}

/* Enhanced Focus States for Accessibility */
.navbar-nav .nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Smooth Dropdown Animation */
.dropdown-menu {
    transition: all var(--transition-fast) ease;
    transform: translateY(-10px);
    opacity: 0;
}

.dropdown-menu.show {
    transform: translateY(0);
    opacity: 1;
}

/* Loading State for Navigation Links */
.nav-link.loading {
    position: relative;
    overflow: hidden;
}

.nav-link.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Card styling */
.card {
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: var(--space-lg);
    transition: transform var(--transition-normal) ease, 
                box-shadow var(--transition-normal) ease,
                opacity var(--transition-normal) ease;
    overflow: hidden;
    position: relative;
    background: transparent;
}

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

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--al-sumri-blue-light), var(--al-sumri-blue-dark));
    transition: height var(--transition-normal) ease;
}

.card:hover::before {
    height: 100%;
}

.card .card-header {
    font-weight: 600;
    background: linear-gradient(135deg, var(--al-sumri-blue) 0%, var(--al-sumri-blue-dark) 100%);
    color: var(--text-on-primary);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1rem 1.25rem;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h1, .card-header h2, .card-header h3, 
.card-header h4, .card-header h5, .card-header h6 {
    margin-bottom: 0;
    font-weight: 600;
}

.card-header i {
    margin-right: 8px;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
}

/* Special card styles */
.card.card-hover-reveal {
    overflow: hidden;
}

.card.card-hover-reveal .card-body {
    transform: translateY(40px);
    transition: transform var(--transition-normal) ease;
}

.card.card-hover-reveal:hover .card-body {
    transform: translateY(0);
}

.card.bg-primary, .card.bg-success, .card.bg-info, 
.card.bg-warning, .card.bg-danger {
    color: white;
}

.card.card-stat {
    text-align: center;
    padding: 1.5rem;
}

.card.card-stat i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.card.card-stat .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card.card-stat .stat-label {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Dashboard card grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero banner styling */
.hero-banner {
    background: linear-gradient(135deg, var(--al-sumri-blue) 0%, var(--al-sumri-blue-dark) 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.hero-banner h1 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.hero-banner h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--accent-color);
}

.hero-banner p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
}

/* Form styling */
.form-label {
    font-weight: 600;
    color: var(--al-sumri-blue-dark);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all var(--transition-normal) ease;
    background-color: transparent;
}

.form-control:focus, .form-select:focus {
    border-color: var(--al-sumri-blue-light);
    box-shadow: 0 0 0 0.25rem rgba(27, 105, 171, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: #B0B0B0;
    font-size: 0.9rem;
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus, .form-select.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-floating > .form-control, 
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    color: var(--al-sumri-blue);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-floating > label {
    padding: 1rem 0.75rem;
    font-size: 1rem;
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
    transition: background-color 0.2s ease-in-out, background-position 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.form-check-input:checked {
    background-color: var(--al-sumri-blue);
    border-color: var(--al-sumri-blue);
}

.form-check-input:focus {
    border-color: var(--al-sumri-blue-light);
    box-shadow: 0 0 0 0.25rem rgba(27, 105, 171, 0.15);
}

.form-switch .form-check-input {
    width: 2.5em;
}

.input-group .btn {
    border-top-right-radius: var(--border-radius) !important;
    border-bottom-right-radius: var(--border-radius) !important;
}

.text-danger {
    color: var(--danger-color) !important;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Button styling */
.btn {
    border-radius: var(--border-radius);
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all var(--transition-fast) ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn i {
    margin-right: 6px;
    font-size: 0.9em;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
}

.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transition: left 0.8s ease;
}

.btn:hover::after {
    left: 100%;
}

.bg-primary, .btn-primary {
    background: linear-gradient(135deg, var(--al-sumri-blue) 0%, var(--al-sumri-blue-dark) 100%) !important;
    border-color: var(--al-sumri-blue) !important;
    color: var(--text-on-primary);
    box-shadow: var(--button-shadow);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: linear-gradient(135deg, var(--al-sumri-blue-dark) 0%, var(--al-sumri-blue) 100%) !important;
    border-color: var(--al-sumri-blue-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(27, 105, 171, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #757575 0%, #616161 100%) !important;
    border-color: #757575 !important;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
    background: linear-gradient(135deg, #616161 0%, #424242 100%) !important;
    border-color: #616161 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #2E7D32 100%) !important;
    border-color: var(--success-color) !important;
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #C62828 100%) !important;
    border-color: var(--danger-color) !important;
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #EF6C00 100%) !important;
    border-color: var(--warning-color) !important;
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0277BD 100%) !important;
    border-color: var(--info-color) !important;
    color: white;
}

.btn-outline-primary {
    color: var(--al-sumri-blue);
    border-color: var(--al-sumri-blue);
}

.btn-outline-primary:hover {
    background-color: var(--al-sumri-blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--button-shadow);
}

.btn-link {
    color: var(--al-sumri-blue);
    text-decoration: none;
    padding: 0;
    font-weight: 500;
}

.btn-link:hover {
    color: var(--al-sumri-blue-dark);
    text-decoration: underline;
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-circle);
}

.btn-icon i {
    margin: 0;
}

.btn-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
}

.btn-float i {
    margin: 0;
    font-size: 1.5rem;
}

.btn-group .btn {
    margin: 0;
}

/* Card actions */
.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Button animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(27, 105, 171, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(27, 105, 171, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(27, 105, 171, 0);
    }
}

.btn-pulse {
    animation: pulse 1.5s infinite;
}

/* Table styling */
.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: var(--space-lg);
}

.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    background-color: transparent;
    font-size: 0.95rem;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.card-body .table-responsive {
    margin: 0;
}

.container-fluid {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.table th {
    background: linear-gradient(135deg, var(--al-sumri-blue) 0%, var(--al-sumri-blue-dark) 100%);
    color: #ffffff !important;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: none;
    border-top: none;
    vertical-align: middle;
}

.table thead th {
    color: #ffffff !important;
}

.table thead th button,
.table thead th a {
    color: #ffffff !important;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
}

.table thead th button:hover,
.table thead th a:hover {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
}

.table-dark th,
.table-dark thead th {
    background-color: #212529 !important;
    color: #ffffff !important;
}

.table-dark th button,
.table-dark th a {
    color: #ffffff !important;
}

.table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-color: rgba(0, 0, 0, 0.05);
    transition: background-color var(--transition-fast) ease;
}

.table tr {
    transition: background-color var(--transition-fast) ease;
}

.table tr:nth-child(even) {
    background-color: rgba(225, 190, 231, 0.05);
}

.table tr:hover td {
    background-color: rgba(27, 105, 171, 0.04);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-hover tbody tr:hover {
    background-color: rgba(27, 105, 171, 0.04);
}

.table .action-column {
    text-align: right;
    white-space: nowrap;
}

.table .btn-icon {
    width: 2rem;
    height: 2rem;
    padding: 0;
    font-size: 0.85rem;
}

.table-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.table .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 10rem;
}

.table .status-indicator {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: var(--border-radius-circle);
    display: inline-block;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.table .avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--border-radius-circle);
    margin-right: 0.75rem;
    object-fit: cover;
}

/* Custom table states */
.status-active, .status-published, .status-approved {
    background-color: var(--success-color);
}

.status-pending, .status-draft {
    background-color: var(--warning-color);
}

.status-inactive, .status-rejected, .status-cancelled {
    background-color: var(--danger-color);
}

.status-reviewing {
    background-color: var(--info-color);
}

/* Table sorting */
.sortable {
    cursor: pointer;
    position: relative;
}

.sortable::after {
    content: '\f0dc';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 0.5rem;
    opacity: 0.5;
}

.sortable.asc::after {
    content: '\f0de';
    opacity: 1;
}

.sortable.desc::after {
    content: '\f0dd';
    opacity: 1;
}

/* Table responsive */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    .table-responsive thead {
        display: none;
    }
    
    .table-responsive tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: var(--border-radius);
        box-shadow: var(--card-shadow);
    }
    
    .table-responsive tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 0.75rem 1rem;
        text-align: right;
    }
    
    .table-responsive tbody td:last-child {
        border-bottom: none;
    }
    
    .table-responsive tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--al-sumri-blue-dark);
        text-align: left;
        padding-right: 1rem;
    }
}

/* Footer styling */
footer {
    background: linear-gradient(135deg, var(--al-sumri-blue-dark) 0%, var(--al-sumri-blue) 100%) !important;
    color: var(--text-on-primary);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

footer::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--accent-light);
}

footer a {
    color: var(--accent-light);
    transition: all var(--transition-fast) ease;
}

footer a:hover {
    color: white;
    transform: translateX(5px);
}

footer .list-unstyled li {
    margin-bottom: 0.5rem;
    transition: all var(--transition-fast) ease;
}

footer .list-unstyled li:hover {
    transform: translateX(5px);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

footer .text-white {
    color: white !important;
}

/* Alert styling */
/* Alert styling */
.alert {
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    animation: slideInDown var(--transition-normal) forwards;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.alert-dismissible {
    padding-right: 3rem;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1.25rem;
    opacity: 0.5;
    transition: opacity var(--transition-fast) ease;
}

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

.alert i {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* Light Theme Alerts - Semi-transparent White */
.alert-success {
    background-color: rgba(255, 255, 255, 0.9);
    color: #155724;
    border-color: rgba(40, 167, 69, 0.3);
    border-left: 4px solid #28A745;
}

.alert-danger {
    background-color: rgba(255, 255, 255, 0.9);
    color: #721c24;
    border-color: rgba(220, 53, 69, 0.3);
    border-left: 4px solid #DC3545;
}

.alert-warning {
    background-color: rgba(255, 255, 255, 0.9);
    color: #856404;
    border-color: rgba(255, 193, 7, 0.3);
    border-left: 4px solid #FFC107;
}

.alert-info {
    background-color: rgba(255, 255, 255, 0.9);
    color: #0c5460;
    border-color: rgba(23, 162, 184, 0.3);
    border-left: 4px solid #17A2B8;
}

/* Dark Theme Alerts - Semi-transparent Black */
[data-bs-theme="dark"] .alert-success {
    background-color: rgba(20, 20, 20, 0.9);
    color: #75b798;
    border-color: rgba(40, 167, 69, 0.5);
    border-left: 4px solid #28A745;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: rgba(20, 20, 20, 0.9);
    color: #ea868f;
    border-color: rgba(220, 53, 69, 0.5);
    border-left: 4px solid #DC3545;
}

[data-bs-theme="dark"] .alert-warning {
    background-color: rgba(20, 20, 20, 0.9);
    color: #ffda6a;
    border-color: rgba(255, 193, 7, 0.5);
    border-left: 4px solid #FFC107;
}

[data-bs-theme="dark"] .alert-info {
    background-color: rgba(20, 20, 20, 0.9);
    color: #6edff6;
    border-color: rgba(23, 162, 184, 0.5);
    border-left: 4px solid #17A2B8;
}

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

/* Badge styling */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 10rem;
    font-size: 0.75em;
}

.badge.bg-primary {
    background-color: var(--al-sumri-blue) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
    color: #fff !important;
}

.badge.bg-info {
    background-color: var(--info-color) !important;
}

/* Text colors */
.text-primary {
    color: var(--al-sumri-blue) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

/* Utility classes */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.shadow-al-sumri {
    box-shadow: var(--card-shadow) !important;
}

.hover-lift {
    transition: transform var(--transition-normal) ease, box-shadow var(--transition-normal) ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.border-al-sumri {
    border-color: var(--al-sumri-blue) !important;
}

.rounded-custom {
    border-radius: var(--border-radius) !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.w-auto {
    width: auto !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.transition {
    transition: all var(--transition-normal) ease !important;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn var(--transition-normal) forwards;
}

.animate-slide-up {
    animation: slideUp var(--transition-normal) forwards;
}

.animate-slide-down {
    animation: slideDown var(--transition-normal) forwards;
}

.animate-slide-left {
    animation: slideLeft var(--transition-normal) forwards;
}

.animate-slide-right {
    animation: slideRight var(--transition-normal) forwards;
}

/* ======================================================================
   Accessibility: Ensure strong contrast for all green buttons (btn-success)
   Applies in both light and dark modes and across interaction states
   ====================================================================== */
.btn-success,
.btn-success:link,
.btn-success:visited {
    color: #fff !important;
}
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success:active:focus {
    color: #fff !important;
}
.btn-success.disabled,
.btn-success:disabled,
fieldset:disabled .btn-success {
    color: #fff !important;
}
[data-bs-theme="dark"] .btn-success,
[data-bs-theme="dark"] .btn-success:hover,
[data-bs-theme="dark"] .btn-success:focus,
[data-bs-theme="dark"] .btn-success:active {
    color: #fff !important;
}

/* Success badges and background utilities should also have white text for contrast */
.badge.bg-success,
.text-bg-success,
.bg-success { color: #fff !important; }

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

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

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

@keyframes slideLeft {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==========================================================================
   Dashboard Navigation Widget Styles
   ========================================================================== */

.dashboard-navigation-widget {
    border: none;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.dashboard-navigation-widget .card-header {
    background: linear-gradient(135deg, var(--al-sumri-blue) 0%, var(--al-sumri-blue-light) 100%);
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.dashboard-navigation-widget .card-header h5 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.dashboard-navigation-widget .card-header small {
    opacity: 0.9;
    font-size: 0.875rem;
}

.dashboard-nav-item {
    height: 100%;
}

.nav-card {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--card-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--al-sumri-blue), var(--al-sumri-blue-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 105, 171, 0.15);
    border-color: var(--al-sumri-blue-light);
}

.nav-card:hover::before {
    transform: scaleX(1);
}

.nav-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.nav-content {
    flex: 1;
}

.nav-content h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.nav-content p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.4;
}

.nav-arrow {
    color: var(--al-sumri-blue);
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.nav-card:hover .nav-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Individual card color themes */
.transportation-card .nav-icon {
    background: linear-gradient(135deg, #2196F3, #21CBF3);
    color: white;
}

.administrative-card .nav-icon {
    background: linear-gradient(135deg, var(--al-sumri-blue), var(--al-sumri-blue-light));
    color: white;
}

.support-card .nav-icon {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
}

.knowledge-card .nav-icon {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    color: white;
}

.financial-card .nav-icon {
    background: linear-gradient(135deg, #1b69ab, #db202b);
    color: white;
}

.operational-card .nav-icon {
    background: linear-gradient(135deg, #607D8B, #78909C);
    color: white;
}

/* Responsive adjustments for dashboard navigation */
@media (max-width: 768px) {
    .dashboard-navigation-widget .card-body {
        padding: 1rem;
    }
    
    .nav-card {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .nav-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        margin-right: 0.75rem;
    }
    
    .nav-content h6 {
        font-size: 0.9rem;
    }
    
    .nav-content p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .nav-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .nav-icon {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
    
    .nav-arrow {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
}

/* ==========================================================================
   Enhanced Dashboard Support Activity & Quick Actions Cards
   ========================================================================== */

/* Quick Actions Card Styling */
.quick-actions-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(76, 20, 140, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
}

.quick-actions-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(76, 20, 140, 0.25);
}

.quick-actions-card .card-header {
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.quick-actions-card .card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Support Activity Card Styling */
.support-activity-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
}

.support-activity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(33, 150, 243, 0.25);
}

.support-activity-card .card-header {
    border-bottom: none;
    position: relative;
}

/* Enhanced Recent Activity Timeline */
.recent-activity-enhanced {
    position: relative;
    padding: 1rem 0;
}

.activity-item-enhanced {
    display: flex;
    margin-bottom: 1.5rem;
    position: relative;
}

.activity-item-enhanced:last-child {
    margin-bottom: 0;
}

.activity-timeline {
    position: relative;
    margin-right: 1rem;
    flex-shrink: 0;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 12px;
    bottom: -12px;
    width: 2px;
    background: linear-gradient(to bottom, #e0e0e0, transparent);
    transform: translateX(-50%);
    z-index: 1;
}

.activity-content-enhanced {
    flex: 1;
    background: rgba(27, 105, 171, 0.05);
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid var(--al-sumri-blue);
    transition: all 0.3s ease;
}

.activity-content-enhanced:hover {
    background: rgba(27, 105, 171, 0.1);
    transform: translateX(5px);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ticket-id {
    font-family: 'Courier New', monospace;
    background: var(--al-sumri-blue);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.activity-date {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.activity-title {
    margin: 0.5rem 0;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

.activity-meta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.badge-sm {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

.priority-indicator {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-low {
    background: rgba(76, 175, 80, 0.2);
    color: #2E7D32;
}

.priority-medium {
    background: rgba(255, 193, 7, 0.2);
    color: #F57C00;
}

.priority-high {
    background: rgba(255, 152, 0, 0.2);
    color: #E65100;
}

.priority-critical {
    background: rgba(244, 67, 54, 0.2);
    color: #C62828;
}

/* Help Center Styling */
.help-center {
    text-align: center;
    padding: 2rem 1rem;
}

.help-illustration {
    margin-bottom: 1.5rem;
}

.help-title {
    color: var(--al-sumri-blue);
    font-weight: 700;
    margin-bottom: 1rem;
}

.help-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.help-options {
    margin-bottom: 2rem;
}

.help-option {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.help-option i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.help-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Enhanced Quick Action Buttons */
.quick-action-btn {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.quick-action-btn:hover {
    text-decoration: none;
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.quick-action-btn.primary:hover {
    border-color: var(--al-sumri-blue);
    background: rgba(27, 105, 171, 0.05);
}

.quick-action-btn.info:hover {
    border-color: #17a2b8;
    background: rgba(23, 162, 184, 0.05);
}

.quick-action-btn.secondary:hover {
    border-color: #6c757d;
    background: rgba(108, 117, 125, 0.05);
}

.quick-action-btn.success:hover {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.quick-action-btn .action-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--al-sumri-blue);
    transition: all 0.3s ease;
}

.quick-action-btn.info .action-icon {
    color: #17a2b8;
}

.quick-action-btn.secondary .action-icon {
    color: #6c757d;
}

.quick-action-btn.success .action-icon {
    color: #28a745;
}

.action-content {
    flex: 1;
}

.action-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}

.action-content small {
    color: var(--text-light);
    font-size: 0.85rem;
}

.action-arrow {
    color: var(--text-light);
    transition: all 0.3s ease;
}

.quick-action-btn:hover .action-arrow {
    color: var(--al-sumri-blue);
    transform: translateX(5px);
}

/* Help Quick Links Grid */
.help-quick-links {
    border-top: 1px solid rgba(27, 105, 171, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

.quick-links-header {
    text-align: center;
    margin-bottom: 1rem;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    background: rgba(27, 105, 171, 0.05);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-link:hover {
    text-decoration: none;
    color: var(--al-sumri-blue);
    background: rgba(27, 105, 171, 0.1);
    border-color: var(--al-sumri-blue);
    transform: translateY(-3px);
}

.quick-link i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--al-sumri-blue);
}

.quick-link span {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

/* Decorative Elements */
.help-decorative,
.activity-decorative {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .activity-content-enhanced:hover {
        transform: none;
    }
    
    .quick-action-btn {
        padding: 0.75rem;
    }
    
    .quick-action-btn .action-icon {
        font-size: 1.25rem;
    }
    
    .help-center {
        padding: 1.5rem 0.5rem;
    }
    
    .help-actions {
        flex-direction: column;
    }
    
    .help-actions .btn {
        margin-bottom: 0.5rem;
    }
}

/* ==========================================================================
   Modern Compact Navbar for Rehlati
   ========================================================================== */

/* Modern Navbar Base */
.modern-navbar {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-bottom: 2px solid #1b69ab;
}

/* Force navbar to show on desktop */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .navbar-nav {
        display: flex !important;
        flex-direction: row;
    }
}

/* Emergency visibility fix - force navbar to show always */
.navbar-collapse {
    display: flex !important;
}

.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
}

/* Mobile behavior */
@media (max-width: 991.98px) {
    .navbar-collapse:not(.show) {
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: block !important;
    }
    
    .navbar-nav {
        flex-direction: column !important;
    }
}

/* Enhanced Brand with Full Visibility */
.brand-modern {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.brand-modern:hover {
    transform: scale(1.02);
    text-decoration: none !important;
}

.brand-logo-circle {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FFC107, #FF9800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.4);
    animation: glow 2s infinite alternate;
}

.brand-logo-circle i {
    font-size: 1.5rem;
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.brand-text-group {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.brand-tagline {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    margin-top: -2px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.live-indicator {
    animation: glow-pulse 2s infinite alternate;
    font-size: 0.6rem;
    text-shadow: 0 0 8px currentColor;
}

@keyframes glow-pulse {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.live-indicator {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    animation: pulse 2s infinite;
    background: linear-gradient(45deg, #4CAF50, #2E7D32) !important;
}

@keyframes glow {
    0% { box-shadow: 0 3px 10px rgba(255, 193, 7, 0.4); }
    100% { box-shadow: 0 5px 20px rgba(255, 193, 7, 0.6); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Compact Navigation Links */
.compact-nav-link {
    padding: 0.6rem 1rem !important;
    margin: 0 2px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.compact-nav-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
    text-decoration: none !important;
}

.compact-nav-link i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Colored Icons for Main Nav Items */
.compact-nav-link i.fa-home { color: #28a745; }
.compact-nav-link i.fa-route { color: #007bff; }
.compact-nav-link i.fa-chart-line { color: #ffc107; }
.compact-nav-link i.fa-cogs { color: #dc3545; }
.compact-nav-link i.fa-life-ring { color: #17a2b8; }
.compact-nav-link i.fa-bolt { color: #1b69ab; }
.compact-nav-link i.fa-user-circle { color: #6c757d; }
.compact-nav-link i.fa-sign-in-alt { color: #28a745; }
.compact-nav-link i.fa-user-plus { color: #007bff; }

.nav-text {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Modern Dropdown Styling */
.modern-dropdown {
    min-width: 260px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 0.5rem;
    background: #2d2d2d !important;
    padding: 0.5rem 0;
    z-index: 1050 !important;
}

.modern-dropdown .dropdown-header {
    color: #1b69ab !important;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.6rem 1rem 0.4rem;
    border-bottom: 1px solid rgba(219, 32, 43, 0.2);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-header-small {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.7rem;
    padding: 0 1rem 0.5rem;
    font-style: italic;
}

.modern-dropdown .dropdown-item {
    padding: 0.6rem 1rem;
    margin: 0 0.5rem;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff !important;
    font-size: 0.85rem;
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.modern-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, #1b69ab, #db202b) !important;
    transform: translateX(3px);
    color: #ffffff !important;
}

.modern-dropdown .dropdown-item:focus,
.modern-dropdown .dropdown-item:active {
    background: linear-gradient(135deg, #1b69ab, #db202b) !important;
    color: #ffffff !important;
}

.modern-dropdown .dropdown-item i {
    width: 18px;
    text-align: center;
    color: inherit !important;
}

/* Colored Icons for Dropdown Items */
.modern-dropdown .dropdown-item i.text-info { color: #17a2b8 !important; }
.modern-dropdown .dropdown-item i.text-success { color: #28a745 !important; }
.modern-dropdown .dropdown-item i.text-warning { color: #ffc107 !important; }
.modern-dropdown .dropdown-item i.text-danger { color: #dc3545 !important; }
.modern-dropdown .dropdown-item i.text-primary { color: #007bff !important; }
.modern-dropdown .dropdown-item i.text-al-sumri-blue { color: var(--al-sumri-blue, #1b69ab) !important; }

/* Ensure icons maintain color on hover */
.modern-dropdown .dropdown-item:hover i.text-info { color: #17a2b8 !important; }
.modern-dropdown .dropdown-item:hover i.text-success { color: #28a745 !important; }
.modern-dropdown .dropdown-item:hover i.text-warning { color: #ffc107 !important; }
.modern-dropdown .dropdown-item:hover i.text-danger { color: #dc3545 !important; }
.modern-dropdown .dropdown-item:hover i.text-primary { color: #007bff !important; }
.modern-dropdown .dropdown-item:hover i.text-al-sumri-blue { color: var(--al-sumri-blue, #1b69ab) !important; }

.modern-dropdown .dropdown-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 0.5rem 0;
}

/* Synchronized dropdown item transitions for modern dropdowns */
.modern-dropdown .dropdown-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

.modern-dropdown:not(.show) .dropdown-item {
    opacity: 0;
    transform: translateY(-3px);
}

.modern-dropdown.show .dropdown-item {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Enhanced Tooltips for Modern Navbar
   ========================================================================== */

/* Enhanced Bootstrap Tooltips */
.tooltip .tooltip-inner {
    background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
    color: #ffffff !important;
    border: 1px solid rgba(219, 32, 43, 0.3);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 200px;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: rgba(219, 32, 43, 0.3) !important;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: rgba(219, 32, 43, 0.3) !important;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: rgba(219, 32, 43, 0.3) !important;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: rgba(219, 32, 43, 0.3) !important;
}

/* ==========================================================================
   User Menu Compact Styling Enhancement
   ========================================================================== */

/* Ensure user menu dropdown aligns nicely */
.navbar-nav.ms-auto .dropdown-menu {
    right: 0 !important;
    left: auto !important;
}

/* User info styling in dropdown */
.dropdown-header-small {
    display: block;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.7rem;
    padding: 0 1rem 0.5rem;
    font-style: italic;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
}

/* Live indicator animation */
.live-indicator {
    animation: pulse-live 2s infinite;
    font-size: 0.6rem;
    border-radius: 50%;
    padding: 0.2rem 0.4rem;
}

@keyframes pulse-live {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Final Navbar & Dropdown Enhancements
   ========================================================================== */

/* Enhanced dropdown transition */
.dropdown-menu {
    transform: translateY(-8px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    visibility: hidden;
}

.dropdown-menu.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* Navbar toggler enhancement for mobile */
.navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(219, 32, 43, 0.3);
}

/* Ensure brand visibility on all screen sizes */
@media (max-width: 576px) {
    .brand-name {
        font-size: 1.2rem;
    }
    
    .brand-tagline {
        font-size: 0.65rem;
    }
    
    .brand-logo-circle {
        width: 35px;
        height: 35px;
    }
    
    .brand-logo-circle i {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   EMERGENCY OVERRIDE: Force white text on danger badges
   ========================================================================== */
.badge.bg-danger,
.badge.bg-danger.text-white,
span.badge.bg-danger,
span.badge.bg-danger.text-white {
    --al-sumri-danger: #ffffff;
    color: #ffffff !important;
    background-color: var(--danger-color) !important;
}