/* Custom styles for San Carlos Flight Center Scheduling System */

/* Bootstrap Primary Color Override - SCFC Navy */
:root {
    --bs-primary: #15135F;
    --bs-primary-rgb: 21, 19, 95;
    --bs-link-color: #15135F;
    --bs-link-hover-color: #100e4a;
}

.bg-primary {
    background-color: #15135F !important;
}

.btn-primary {
    background-color: #15135F;
    border-color: #15135F;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #100e4a;
    border-color: #100e4a;
}

.btn-outline-primary {
    color: #15135F;
    border-color: #15135F;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: #15135F;
    border-color: #15135F;
    color: white;
}

.text-primary {
    color: #15135F !important;
}

.border-primary {
    border-color: #15135F !important;
}

a {
    color: #15135F;
}

a:hover {
    color: #100e4a;
}

/* Navbar Dropdown - Dark Theme */
.navbar-dark .dropdown-menu {
    background-color: #15135F;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar-dark .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .dropdown-menu .dropdown-item:hover,
.navbar-dark .dropdown-menu .dropdown-item:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

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

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #15135F 0%, #100e4a 100%);
}

.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

/* General */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar customization */
.navbar-brand {
    font-weight: 600;
}

/* Card improvements */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    font-weight: 500;
}

/* Table improvements */
.table th {
    font-weight: 600;
    white-space: nowrap;
}

/* Badge improvements */
.badge {
    font-weight: 500;
}

/* Form controls */
.form-label {
    font-weight: 500;
}

/* Calendar styles */
.fc-event {
    border-radius: 3px;
    padding: 2px 4px;
}

.fc-toolbar-title {
    font-size: 1.25rem !important;
}

/* Status colors */
.status-scheduled { background-color: #0d6efd; }
.status-checked-out { background-color: #ffc107; }
.status-completed { background-color: #198754; }
.status-cancelled { background-color: #6c757d; }
.status-no-show { background-color: #dc3545; }

/* Currency status */
.currency-current { color: #198754; }
.currency-expiring { color: #ffc107; }
.currency-expired { color: #dc3545; }

/* Balance colors */
.balance-positive { color: #198754; }
.balance-negative { color: #dc3545; }
.balance-zero { color: #6c757d; }

/* Quick action buttons */
.btn-action {
    min-width: 100px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .table-responsive .table {
        font-size: 0.875rem;
    }

    .card-body {
        padding: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Print styles */
@media print {
    .navbar, .btn, .no-print {
        display: none !important;
    }

    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* Loading spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* HTMX loading indicator */
.htmx-request .htmx-indicator {
    opacity: 1;
}

.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms ease-in;
}

/* Squawk severity */
.squawk-grounding {
    border-left: 4px solid #dc3545;
}

.squawk-normal {
    border-left: 4px solid #ffc107;
}

/* Stripe Elements */
#card-element {
    min-height: 40px;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* List group enhancements */
.list-group-item-action:hover {
    background-color: #f8f9fa;
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 0.5rem;
}

/* Alert dismissible button fix */
.alert-dismissible .btn-close {
    padding: 1rem;
}
