/* Custom CSS for Group Booking - Works alongside Bootstrap */

/* General overrides and customizations */
:root {
    --bs-primary: #0066cc;
    --bs-primary-rgb: 0, 102, 204;
    --bs-primary-darker: #004a99;
    --bs-secondary: #6c757d;
    --bs-success: #28a745;
    --bs-info: #17a2b8;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #343a40;
    --bs-body-font-family: 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --bs-body-bg: #f8f9fa;
}

body {
    font-family: var(--bs-body-font-family);
    background-color: var(--bs-body-bg);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Logo styling */
.navbar-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Custom container styling */
.container, .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* Dashboard specific styling */
.dashboard-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.dashboard-card .card-header {
    background-color: var(--bs-primary);
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    border-bottom: none;
}

.dashboard-card .card-body {
    padding: 20px;
}

.dashboard-stat {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--bs-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 30px;
}

/* Table Styling - Bootstrap Override */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    vertical-align: middle;
    border-color: #dee2e6;
}

.table th {
    background-color: var(--bs-primary);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    padding: 12px 15px;
}

.table td {
    padding: 12px 15px;
    vertical-align: middle;
}

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

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

/* Form Styling - Bootstrap Override */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--bs-primary-darker);
    border-color: var(--bs-primary-darker);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Card styling */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

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

/* Action buttons for tables */
.btn-action {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    margin: 0 0.125rem;
}

.table .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 600;
    font-size: 0.75em;
    border-radius: 50rem;
}

.badge-primary {
    background-color: var(--bs-primary);
    color: white;
}

.badge-success {
    background-color: var(--bs-success);
    color: white;
}

.badge-warning {
    background-color: var(--bs-warning);
    color: #212529;
}

.badge-danger {
    background-color: var(--bs-danger);
    color: white;
}

.badge-info {
    background-color: var(--bs-info);
    color: white;
}

/* Utilities */
.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;
}

/* Responsive Mobile Fixes */
@media (max-width: 768px) {
    .dashboard-stat {
        font-size: 1.5rem;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .card-header, .card-body, .card-footer {
        padding: 15px;
    }
    
    .table th, .table td {
        padding: 10px;
    }
    
    /* Stack form fields on mobile */
    .row.g-3 > [class*="col-"] {
        margin-bottom: 1rem;
    }
}

/* Navbar dropdown fixes for mobile */
@media (max-width: 992px) {
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .dropdown-menu {
        border: none;
        background-color: rgba(0, 0, 0, 0.05);
        margin-top: 0;
        margin-bottom: 0.5rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .dropdown-item {
        padding: 0.5rem 1.5rem;
    }
}

/* Accessibility Improvements */
.btn:focus, .form-control:focus, a:focus {
    outline: 3px solid rgba(var(--bs-primary-rgb), 0.25);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Preserve any legacy styles that might be used by existing elements */
/* These are simplified versions that work alongside Bootstrap */

.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
