/* Bootstrap Custom Styles for CharterBus */

:root {
    --bs-primary: #0d6efd;
    --bs-primary-rgb: 13, 110, 253;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
}

/* Custom gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
}

/* Company name link hover effect */
h1 a.text-primary:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
    transition: all 0.3s ease;
}

/* Utility sizes for circular icon containers */
.circle-80 { width: 80px; height: 80px; }
.circle-60 { width: 60px; height: 60px; }
.circle-50 { width: 50px; height: 50px; }
.circle-40 { width: 40px; height: 40px; }

/* Hero image utilities */
.hero-img-500 { max-height: 500px; width: 100%; object-fit: cover; }

/* Card image fixed height */
.card-img-200 { height: 200px; object-fit: cover; }

.text-gradient {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card enhancements */
.card {
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Button enhancements */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Form enhancements */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Input group enhancements */
.input-group-text {
    border-radius: 0.5rem 0 0 0.5rem;
    background-color: var(--bs-light);
    border-color: #dee2e6;
}

/* Badge enhancements */
.badge {
    font-size: 0.75em;
    padding: 0.5em 0.75em;
    border-radius: 0.375rem;
}

/* Table enhancements */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Alert enhancements */
.alert {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Modal enhancements */
.modal-content {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: 0.75rem 0.75rem 0 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 0.75rem 0.75rem;
}

/* Navbar enhancements */
.navbar {
    border-radius: 0.5rem;
}

.nav-link {
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

.nav-link.active {
    background-color: var(--bs-primary);
    color: white !important;
}

/* Statistics cards */
.card-body.text-center .bg-primary {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.card-body.text-center .bg-success {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.card-body.text-center .bg-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.card-body.text-center .bg-info {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Print styles */
@media print {
    .navbar, .btn, .modal {
        display: none !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }
}