/* ========================================
   KOBEY - PAGE INDEX CSS
   Fixed styling for proper display
   ======================================== */

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
    /* Colors */
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8A65;
    --primary-gradient: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    
    --secondary-color: #2D3436;
    --accent-color: #00CEC9;
    --success-color: #00B894;
    --warning-color: #FDCB6E;
    --danger-color: #E17055;
    --info-color: #74B9FF;
    
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --light-gray: #E9ECEF;
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --text-muted: #868E96;
    --dark-bg: #1A1A1A;
    
    /* Spacing */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ========================================
   GLOBAL RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--white);
    overflow-x: hidden;
}

/* ========================================
   NAVIGATION - LIGHT THEME FIX
   ======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    min-height: 70px;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

/* Fix for navbar-dark class override */
.navbar-dark .navbar-brand,
.navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

/* CRITICAL: Override inline width/height and force proper sizing */
.navbar-brand .logo,
.navbar-brand img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    border-radius: 6px;
    object-fit: cover;
    transition: var(--transition);
}

.navbar-brand:hover .logo,
.navbar-brand:hover img {
    transform: scale(1.1);
}

/* Fix navbar-dark text colors */
.navbar-dark .navbar-nav .nav-link,
.navbar .navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-size: 0.9rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-1px);
}

.navbar-dark .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(255, 107, 53, 0.15);
    font-weight: 600;
}

/* Fix navbar toggler for light theme */
.navbar-dark .navbar-toggler,
.navbar .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    background: transparent;
}

.navbar-dark .navbar-toggler-icon,
.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ========================================
   STATE SELECTOR - COMPACT SIZE
   ======================================== */
.state-selector select {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 0.375rem 0.5rem;
    font-size: 0.85rem;
    width: 70px;
    transition: var(--transition);
    color: var(--text-primary);
}

.state-selector select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
    outline: none;
}

/* ========================================
   BUTTONS - PROPERLY SIZED
   ======================================== */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white) !important;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--white) !important;
    background: var(--primary-gradient);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline-light:hover {
    background: var(--primary-color) !important;
    border-color: var(--primary-color);
    color: var(--white) !important;
    transform: translateY(-1px);
}

.btn-light {
    background: var(--white) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--light-gray);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-outline-dark {
    background: var(--white);
    border: 1px solid var(--light-gray);
    color: var(--text-primary);
}

.btn-outline-dark:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

/* ========================================
   MODALS - COMPACT AND CLEAN
   ======================================== */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 420px;
    margin: 0 auto;
}

.modal-header {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    width: 20px;
    height: 20px;
}

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

.modal-body {
    padding: 1.5rem;
}

/* ========================================
   AUTH MODAL BUTTONS - PROPER SIZE
   ======================================== */
.auth-options .btn {
    background: var(--white);
    border: 1px solid var(--light-gray);
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    width: 100%;
    justify-content: flex-start;
    font-size: 0.9rem;
    text-align: left;
}

.auth-options .btn:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
    transform: translateY(-1px);
}

.auth-options .btn i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.back-btn {
    color: var(--primary-color) !important;
    font-weight: 500;
    text-decoration: none;
}

.back-btn:hover {
    color: var(--primary-dark) !important;
}

/* ========================================
   FORM ELEMENTS - COMPACT
   ======================================== */
.form-control {
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* ========================================
   ALERTS - COMPACT
   ======================================== */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid;
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(0, 184, 148, 0.1);
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.alert-warning {
    background: rgba(253, 203, 110, 0.1);
    color: #D68910;
    border-left-color: var(--warning-color);
}

.alert-danger, .alert-error {
    background: rgba(225, 112, 85, 0.1);
    color: #C0392B;
    border-left-color: var(--danger-color);
}

.alert-info {
    background: rgba(116, 185, 255, 0.1);
    color: #2E86C1;
    border-left-color: var(--info-color);
}

.alert-container {
    max-width: 350px;
    z-index: 1055;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    opacity: 0.5;
    transition: var(--transition);
}

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

/* ========================================
   DROPDOWN MENUS - COMPACT
   ======================================== */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.375rem;
    margin-top: 0.5rem;
    min-width: 180px;
}

.dropdown-item {
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    transition: var(--transition);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.dropdown-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 16px;
    font-size: 0.875rem;
}

/* ========================================
   FOOTER - COMPACT
   ======================================== */
footer {
    background: var(--dark-bg) !important;
    color: var(--white);
    font-size: 0.9rem;
}

footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

footer h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--white);
}

footer .text-muted {
    color: #A0A0A0 !important;
    font-size: 0.85rem;
}

footer a.text-muted:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

/* Social Links - Proper Size */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--white);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    color: var(--white);
}

/* App Badges - Force proper size */
.app-badge {
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
    transition: var(--transition);
    border-radius: 4px;
}

.app-badge:hover {
    transform: scale(1.05);
}

.app-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ========================================
   DOWNLOAD MODAL - FIXED IMAGE SIZE
   ======================================== */
.modal-body .mb-4 img {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.app-download-links .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   MAIN CONTENT SPACING
   ======================================== */
main {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* ========================================
   LOADING INDICATOR
   ======================================== */
#loading-indicator {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 0.25em;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand .logo,
    .navbar-brand img {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .alert-container {
        left: 10px !important;
        right: 10px !important;
        max-width: none !important;
    }
    
    .social-links {
        justify-content: center;
        gap: 0.75rem;
    }
    
    footer {
        text-align: center;
    }
    
    .app-links {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand .logo,
    .navbar-brand img {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
    
    .auth-options .btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.visually-hidden-focusable:not(:focus) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========================================
   FOCUS STYLES FOR ACCESSIBILITY
   ======================================== */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.slide-in {
    animation: slideIn 0.4s ease-out;
}

/* ========================================
   STATE SELECTOR - COMPACT SIZE
   ======================================== */
.state-selector select {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 0.375rem 0.5rem;
    font-size: 0.85rem;
    width: 70px;
    transition: var(--transition);
}

.state-selector select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
    outline: none;
}

/* ========================================
   BUTTONS - PROPERLY SIZED
   ======================================== */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

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

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

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

.btn-light {
    background: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--light-gray);
    box-shadow: var(--shadow-sm);
}

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

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

/* ========================================
   MODALS - COMPACT AND CLEAN
   ======================================== */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    margin: 0 auto;
}

.modal-header {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 1.25rem 1.5rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.modal-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 1.5rem;
}

/* ========================================
   AUTH MODAL BUTTONS - PROPER SIZE
   ======================================== */
.auth-options .btn {
    background: var(--white);
    border: 1px solid var(--light-gray);
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    margin-bottom: 0.75rem;
    width: 100%;
    justify-content: flex-start;
    font-size: 0.9rem;
}

.auth-options .btn:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
    transform: translateY(-1px);
}

.auth-options .btn i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* ========================================
   FORM ELEMENTS - COMPACT
   ======================================== */
.form-control {
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* ========================================
   ALERTS - COMPACT
   ======================================== */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid;
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(0, 184, 148, 0.1);
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.alert-warning {
    background: rgba(253, 203, 110, 0.1);
    color: #D68910;
    border-left-color: var(--warning-color);
}

.alert-danger, .alert-error {
    background: rgba(225, 112, 85, 0.1);
    color: #C0392B;
    border-left-color: var(--danger-color);
}

.alert-info {
    background: rgba(116, 185, 255, 0.1);
    color: #2E86C1;
    border-left-color: var(--info-color);
}

.alert-container {
    max-width: 350px;
    z-index: 1055;
}

/* ========================================
   DROPDOWN MENUS - COMPACT
   ======================================== */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.375rem;
    margin-top: 0.5rem;
    min-width: 180px;
}

.dropdown-item {
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    transition: var(--transition);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 16px;
    font-size: 0.875rem;
}

/* ========================================
   FOOTER - COMPACT
   ======================================== */
footer {
    background: var(--dark-bg);
    color: var(--white);
    font-size: 0.9rem;
}

footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

footer h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

footer .text-muted {
    color: #A0A0A0 !important;
    font-size: 0.85rem;
}

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

/* Social Links - Proper Size */
.social-links a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* App Badges - Proper Size */
.app-badge {
    height: 40px !important;
    width: auto;
    transition: var(--transition);
    border-radius: 4px;
}

.app-badge:hover {
    transform: scale(1.05);
}

/* ========================================
   MAIN CONTENT SPACING
   ======================================== */
main {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* ========================================
   LOADING INDICATOR
   ======================================== */
#loading-indicator {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 0.25em;
}

/* ========================================
   APP DOWNLOAD MODAL - PROPER SIZING
   ======================================== */
.modal-body .mb-4 img {
    width: 60px !important;
    height: 60px !important;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.app-download-links .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand .logo {
        width: 28px !important;
        height: 28px !important;
    }
    
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        padding: 0.375rem 0;
    }
    
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .alert-container {
        left: 10px !important;
        right: 10px !important;
        max-width: none !important;
    }
    
    .social-links {
        justify-content: center;
        gap: 0.75rem;
    }
    
    footer {
        text-align: center;
    }
    
    .app-links {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand .logo {
        width: 24px !important;
        height: 24px !important;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
    
    .auth-options .btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1.25rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.visually-hidden-focusable:not(:focus) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========================================
   FOCUS STYLES FOR ACCESSIBILITY
   ======================================== */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.slide-in {
    animation: slideIn 0.4s ease-out;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .navbar,
    .modal,
    #loading-indicator,
    .alert-container,
    footer,
    .btn {
        display: none !important;
    }
    
    main {
        margin-top: 0 !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
}