



/* ==================== BASE STYLES ==================== */
:root {
    --navy: #1A2C3E;
    --teal: #008080;
    --warm-grey: #F5F5F5;
    --orange: #E67E22;
    --coral: #E74C3C;
    --slate: #2C3E50;
    --forest: #2E7D32;
    --steel: #4682B4;
    --dark-grey: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-grey);
    background-color: var(--warm-grey);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ==================== BUTTON STYLES ==================== */
.btn-primary {
    background-color: var(--teal);
    border-color: var(--teal);
}

.btn-primary:hover {
    background-color: #006666;
    border-color: #006666;
}

.btn-warning {
    background-color: var(--orange);
    border-color: var(--orange);
    color: white;
}

.btn-warning:hover {
    color: white;
}

.btn-danger {
    background-color: var(--coral);
    border-color: var(--coral);
}

/* ==================== BADGE STYLES ==================== */
.badge-available {
    background-color: #28a745;
    color: white;
}

.badge-limited {
    background-color: var(--orange);
    color: white;
}

.badge-full {
    background-color: var(--coral);
    color: white;
}

/* ==================== CARD STYLES ==================== */
.card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ==================== STAT CARD STYLES ==================== */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

/* ==================== TABLE STYLES ==================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 1rem;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.table-responsive table {
    min-width: 650px;
}

.table thead th {
    background-color: var(--navy);
    color: white;
    border: none;
    white-space: nowrap;
}

/* ==================== TABLE SWIPE INDICATOR ==================== */
.table-swipe-indicator {
    text-align: center;
    padding: 5px;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 10px;
    display: none;
}

@media (max-width: 768px) {
    .table-swipe-indicator {
        display: block;
    }
}

/* ==================== PAYMENT STATUS BADGES ==================== */
.payment-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-unpaid {
    background: #e2e3e5;
    color: #383d41;
}

/* ==================== ALERT STYLES - NO AUTO-DISMISS ==================== */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    z-index: 9999;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Prevent any fade-out animations */
.alert.fade {
    transition: none !important;
}

.alert.fade.show {
    opacity: 1 !important;
}

/* Ensure close button is visible and clickable */
.alert-dismissible .btn-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    padding: 0.75rem;
    background: transparent;
    opacity: 0.7;
    cursor: pointer;
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
}

/* Alert types */
.alert-success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

/* Alert animation */
@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert {
    animation: slideInDown 0.3s ease-out;
}

/* ==================== MODAL STYLES ==================== */
.modal-content {
    border-radius: 12px;
}

.modal.fade .modal-dialog {
    transition: transform 0.2s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

.modal-backdrop.fade {
    opacity: 0;
    transition: opacity 0.2s linear;
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* ==================== IMPERSONATION BANNER ==================== */
.impersonation-banner {
    background-color: var(--orange);
    color: white;
    padding: 10px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.impersonation-banner a {
    color: white;
    text-decoration: underline;
}

/* ==================== FORM STYLES ==================== */
.form-control:focus, .form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 128, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
}

/* ==================== FILTER SECTION ==================== */
.filter-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* ==================== PAGINATION ==================== */
.pagination .page-link {
    color: var(--teal);
}

.pagination .active .page-link {
    background-color: var(--teal);
    border-color: var(--teal);
    color: white;
}

/* ==================== MOBILE RESPONSIVE ==================== */
@media (max-width: 768px) {
    .stat-card h3 {
        font-size: 1.4rem;
    }
    
    .btn-group {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .btn-group .btn {
        flex: 1;
        margin: 0 !important;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .filter-section .row > div {
        margin-bottom: 10px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .table-responsive table {
        min-width: 600px;
        font-size: 0.85rem;
    }
    
    .table-responsive table th,
    .table-responsive table td {
        padding: 8px 10px;
        white-space: nowrap;
    }
    
    /* Touch-friendly buttons */
    .btn, .nav-link, .dropdown-item {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-group-sm .btn {
        min-height: 36px;
    }
    
    input, select, textarea, button {
        font-size: 16px !important;
    }
}

/* ==================== TABLET OPTIMIZATION ==================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .stat-card h3 {
        font-size: 1.6rem;
    }
    
    .table-responsive table {
        min-width: 700px;
    }
}

/* ==================== NAVBAR LOGO ==================== */
.navbar-brand {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
    object-fit: contain;
}

.navbar-brand .fs-4 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 40px;
    }
    
    .navbar-brand .fs-4 {
        font-size: 1.25rem;
    }
}

/* ==================== DROPDOWN MENU ==================== */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 8px;
}

.dropdown-item {
    padding: 8px 20px;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    padding-left: 24px;
}

.dropdown-item i {
    width: 20px;
    margin-right: 8px;
    color: var(--teal);
}

/* ==================== NAVBAR LINKS ==================== */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s;
}

.navbar-nav .nav-link:hover {
    color: var(--teal) !important;
    transform: translateY(-1px);
}

/* ==================== SECTION CARDS ==================== */
.section-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.section-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.section-header {
    background: #f8f9fa;
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header i {
    font-size: 1.2rem;
    color: var(--navy);
}

.section-body {
    padding: 20px;
}

/* ==================== CAPACITY OPTION CARDS ==================== */
.capacity-option {
    cursor: pointer;
}

.capacity-option.selected div {
    background-color: #e8f4f8;
    border-color: var(--teal) !important;
    border-width: 2px !important;
}

/* ==================== PASSWORD STRENGTH METER ==================== */
.password-strength {
    height: 4px;
    border-radius: 2px;
    transition: all 0.3s;
}

.password-strength.weak {
    background: #dc3545;
    width: 25%;
}

.password-strength.medium {
    background: #ffc107;
    width: 50%;
}

.password-strength.strong {
    background: #28a745;
    width: 75%;
}

.password-strength.very-strong {
    background: #28a745;
    width: 100%;
}

/* ==================== PAYMENT METHOD CARDS ==================== */
.payment-card {
    transition: all 0.2s ease;
    cursor: pointer;
}

.payment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.payment-card.border-primary {
    border-width: 2px !important;
}

/* ==================== OPERATOR CARDS ==================== */
.operator-card {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.operator-card:hover {
    border-left-color: var(--teal);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.operator-avatar {
    background-color: #e8f4f8;
}

/* ==================== TOAST NOTIFICATION ==================== */
.custom-toast {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    margin-top: auto;
}

/* ==================== UTILITY CLASSES ==================== */
.text-nowrap {
    white-space: nowrap;
}

.cursor-pointer {
    cursor: pointer;
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .navbar, .footer, .btn, .no-print, .impersonation-banner, .btn-toolbar {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    body {
        background: white !important;
        margin: 0;
        padding: 0;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}


/* Force all alerts to stay visible - override Bootstrap */
.alert {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
}

.alert.fade {
    transition: none !important;
}

.alert.fade.show {
    opacity: 1 !important;
}

/* Prevent any animation that hides alerts */
.alert-dismissible {
    pointer-events: auto !important;
}

/* Ensure close button is visible */
.alert-dismissible .btn-close {
    display: inline-block !important;
    opacity: 0.7 !important;
}