/* VTC Slot Booking System Styles */

:root {
    --primary-color: var(--vtc-primary, #2c3e50);
    --secondary-color: var(--vtc-secondary, #3498db);
    --success-color: var(--vtc-accent, #28a745);
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.15s ease-in-out;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #18191a !important;
    color: #f5f6fa !important;
    line-height: 1.6;
}

/* Custom Bootstrap overrides */
.btn {
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* --- Modern visual polish (layout-preserving) --- */
.btn {
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}
.btn:active {
    transform: translateY(0) scale(.99);
    box-shadow: 0 6px 16px rgba(0,0,0,0.10);
}

.navbar .nav-link,
.navbar a { font-weight: 600; }
.navbar { backdrop-filter: saturate(140%) blur(4px); -webkit-backdrop-filter: saturate(140%) blur(4px); }

.list-group-item { border-radius: 10px; }

.table thead th { font-weight: 700; }
.table-hover tbody tr:hover { background: rgba(99, 179, 237, 0.12) !important; }
.table-striped > tbody > tr:nth-of-type(odd) { background-color: rgba(0, 0, 0, 0.04) !important; }
.table td, .table th { vertical-align: middle; }

.form-control, .form-select {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) inset;
}
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 .2rem rgba(99,179,237,.25), 0 2px 8px rgba(0,0,0,0.08) inset !important;
}

.alert { border-radius: 12px; border-width: 1px; box-shadow: 0 8px 22px rgba(0,0,0,0.08); }

.badge, .btn .badge { border-radius: 999px; padding: .4rem .65rem; font-weight: 600; }

.pagination .page-link { border-radius: 10px; }

small, .small, .form-text { letter-spacing: .15px; }

.table-warning {
    --bs-table-hover-bg: #e9dbac01 !important;
}

/* Status badges */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background-color: #d4edda;
    color: #155724;
}

.status-denied {
    background-color: #f8d7da;
    color: #721c24;
}

.status-cancelled {
    background-color: #d6d8db;
    color: #383d41;
}

/* Event cards */
.event-card {
    transition: var(--transition);
    height: 100%;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
}

.event-image {
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Slot booking grid */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.slot-item {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    background-color: white;
}

.slot-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.slot-item.available {
    border-color: var(--success-color);
    background-color: rgba(40, 167, 69, 0.1);
}

.slot-item.booked {
    border-color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.1);
    cursor: not-allowed;
}

.slot-item.selected {
    border-color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.2);
}

.slot-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.slot-status {
    font-size: 0.875rem;
    text-transform: uppercase;
    font-weight: 600;
}

/* Admin interface */
.admin-panel {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.admin-header {
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Booking table */
.booking-table {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.booking-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.booking-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

.booking-table tr:hover {
    background-color: var(--light-color);
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    padding: 0.75rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal styles */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .slot-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .booking-table {
        font-size: 0.875rem;
    }
    
    .booking-table th,
    .booking-table td {
        padding: 0.5rem;
    }
}

/* Utility classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }

.shadow-sm { box-shadow: var(--box-shadow) !important; }
.rounded { border-radius: var(--border-radius) !important; }

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #4a5568;
        --dark-color: #e2e8f0;
        --primary-color: #63b3ed;
        --secondary-color: #4299e1;
    }
    
    body {
        background-color: #1a202c !important;
        color: #e2e8f0 !important;
    }
    
    .table-success {
        --bs-table-hover-bg: rgba(72, 187, 120, 0.1) !important; 
    }
    
    .table-danger {
        --bs-table-active-bg: rgba(245, 101, 101, 0.1);
        --bs-table-hover-bg: rgba(245, 101, 101, 0.1);
    }
    
    .card {
        background-color: #2d3748 !important;
        color: #e2e8f0 !important;
        border-color: #495057 !important;
    }
    
    .form-control {
        background-color: #1a202c !important;
        border-color: #495057 !important;
        color: #e2e8f0 !important;
    }
    
    .form-control:focus {
        background-color: #1a202c !important;
        border-color: #63b3ed !important;
        color: #e2e8f0 !important;
        box-shadow: 0 0 0 0.2rem rgba(99, 179, 237, 0.25) !important;
    }
    
    .booking-table {
        background-color: #2d3748 !important;
        color: #e2e8f0 !important;
    }
    
    .booking-table td {
        border-bottom-color: #495057 !important;
        background-color: #2d3748 !important;
        color: #e2e8f0 !important;
    }
    
    .booking-table tr:hover {
        background-color: #4a5568 !important;
        color: #e2e8f0 !important;
    }
    
    .slot-item {
        background-color: #2d3748 !important;
        color: #e2e8f0 !important;
        border-color: #495057 !important;
    }
    
    .slot-item:hover {
        border-color: #63b3ed !important;
        background-color: #4a5568 !important;
    }
    
    .slot-item.available {
        border-color: #48bb78 !important;
        background-color: rgba(72, 187, 120, 0.1) !important;
    }
    
    .slot-item.booked {
        border-color: #f56565 !important;
        background-color: rgba(245, 101, 101, 0.1) !important;
    }
    
    .slot-item.selected {
        border-color: #63b3ed !important;
        background-color: rgba(99, 179, 237, 0.2) !important;
    }
    
    .admin-panel {
        background-color: #2d3748 !important;
        color: #e2e8f0 !important;
        border-color: #495057 !important;
    }
    
    .stat-card {
        background: linear-gradient(135deg, #63b3ed, #4299e1) !important;
        color: #1a202c !important;
    }
    
    .form-label {
        color: #e2e8f0 !important;
    }

    /*.navbar {
        background-color: #1e1e1e !important;
        color: #fff !important;
    }
    .navbar .nav-link, .navbar a, .navbar-text {
        color: #fff !important;
    }*/
}
.navbar-toggler .navbar-toggler-icon::before {
    content: '';
    display: block;
    width: 2rem;
    height: 2rem;
    mask: url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 30 30\'><path stroke=\'%2323272a\' stroke-width=\'2.5\' stroke-linecap=\'round\' d=\'M5 8h20M5 15h20M5 22h20\'/></svg>') center/contain no-repeat;
    background-color: var(--navbar-text, #23272a);
    transition: background-color 0.2s;
  }
  [data-theme="dark"] .navbar-toggler {
    background: #23272a !important;
    border-color: #444 !important;
  }
  [data-theme="dark"] .navbar-toggler .navbar-toggler-icon::before {
    background-color: #fff;
    mask: url('data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 30 30\'><path stroke=\'%23fff\' stroke-width=\'2.5\' stroke-linecap=\'round\' d=\'M5 8h20M5 15h20M5 22h20\'/></svg>') center/contain no-repeat;
  }
@media (max-width: 991.98px) {
    #show-tutorial-btn,
    #show-admin-tutorial-btn,
    #show-bookings-tutorial-btn,
    #show-create-tutorial-btn,
    #show-events-tutorial-btn {
      display: none !important;
    }
  }
/* Print styles */
@media print {
    .navbar,
    .btn,
    .admin-panel .btn {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .booking-table {
        box-shadow: none !important;
    }
} 