/* admin.css - All CSS styles for Admin Panel */

/* ===== VENUE CONFIG CARDS ===== */
.venue-config-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}

.venue-config-header {
    background: linear-gradient(135deg, #800000, #b30000);
    color: white;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.venue-config-body {
    background: white;
    padding: 24px;
}

.venue-timeslot-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px 20px;
    border: 1px solid #e8e8e8;
}

.timeslot-config-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 14px;
}

.new-venue-card {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: white;
}

.new-venue-card:hover {
    border-color: #ff6600;
    background: #fffaf6;
}

/* ===== DASHBOARD STAT CARDS ===== */
.dashboard-stat-card {
    border: 1px solid;
    border-radius: 12px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.dashboard-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.82rem;
    color: #666;
    margin-top: 4px;
    font-weight: 500;
}

.stat-link {
    font-size: 0.8rem;
    color: #0d6efd;
    text-decoration: none;
}



body { 
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.card { 
    border-radius: 15px; 
    border: none; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: none;
}

.admin-header { 
    background: linear-gradient(135deg, #ff6600 0%, #ff9933 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.2);
}

.btn-admin { 
    background: linear-gradient(135deg, #800000 0%, #b30000 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-admin:hover { 
    background: linear-gradient(135deg, #660000 0%, #990000 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.3);
}

.login-card { 
    max-width: 400px; 
    margin: 100px auto;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.item-card { 
    border: 2px solid #e0e0e0; 
    border-radius: 10px; 
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    transition: all 0.3s ease;
}

.item-card:hover { 
    border-color: #ff9933;
    box-shadow: 0 5px 15px rgba(255, 153, 51, 0.1);
}

.badge-checkbox { background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%); color: white; }
.badge-number { background: linear-gradient(135deg, #198754 0%, #146c43 100%); color: white; }

.hall-config-card { 
    border: 3px solid #ffd700;
    position: relative;
    overflow: hidden;
}

.hall-config-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6600, #ff9933, #ffd700);
}

.price-input { 
    font-size: 1.5rem; 
    font-weight: bold;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 15px;
}

.price-input:focus {
    border-color: #ff9933;
    box-shadow: 0 0 0 0.25rem rgba(255, 153, 51, 0.25);
}

.venue-name-input { 
    font-size: 1.2rem; 
    font-weight: bold;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 15px;
}

.venue-name-input:focus {
    border-color: #800000;
    box-shadow: 0 0 0 0.25rem rgba(128, 0, 0, 0.25);
}

.tab-btn { 
    min-width: 180px; 
    margin-right: 10px; 
    margin-bottom: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.section-title { 
    color: #800000; 
    border-bottom: 3px solid #ff9933; 
    padding-bottom: 15px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: #800000;
}

.info-badge { 
    background: linear-gradient(135deg, #ff9933 0%, #ff6600 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.venue-badge { 
    background: linear-gradient(135deg, #800000 0%, #b30000 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.status-badge-pending { 
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.status-badge-confirmed { 
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.status-badge-cancelled { 
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.booking-row:hover { 
    background-color: rgba(255, 153, 51, 0.05);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.status-dropdown { 
    min-width: 140px;
    border-radius: 6px;
    border: 2px solid #dee2e6;
    font-weight: 600;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Event Type Styling */
.event-type-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    transition: all 0.3s ease;
    height: 100%;
}

.event-type-card:hover {
    border-color: #ff9933;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 153, 51, 0.15);
}

.event-type-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff9933, #ff6600);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.event-type-desc {
    font-size: 0.9rem;
    color: #666;
    min-height: 40px;
    line-height: 1.5;
}

.event-type-badge {
    background: linear-gradient(135deg, #800000 0%, #b30000 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.event-type-emoji {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* New venue card styling */
.new-venue-card {
    border: 3px dashed #adb5bd;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.new-venue-card:hover {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #e7f1ff 0%, #d0e2ff 100%);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

.new-venue-icon {
    font-size: 5rem;
    color: #6c757d;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.new-venue-card:hover .new-venue-icon {
    color: #0d6efd;
    transform: scale(1.1);
}

.new-venue-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #6c757d;
}

.new-venue-card:hover .new-venue-text {
    color: #0d6efd;
}

.venue-card {
    position: relative;
    overflow: hidden;
}

.venue-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.venue-id-badge {
    background: linear-gradient(135deg, #800000 0%, #b30000 100%);
    color: white;
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: 600;
}

.delete-venue-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    color: white;
    border: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 10;
}

.delete-venue-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.delete-venue-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Loading spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
}

.custom-toast {
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-left: 5px solid;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-success {
    border-left-color: #198754;
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-warning {
    border-left-color: #ffc107;
}

.toast-info {
    border-left-color: #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tab-btn {
        min-width: 140px;
        font-size: 0.9rem;
        padding: 8px 15px;
    }
    
    .price-input {
        font-size: 1.2rem;
    }
    
    .venue-name-input {
        font-size: 1rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff9933, #ff6600);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff6600, #ff9933);
}

/* Form controls */
.form-control:focus, .form-select:focus {
    border-color: #ff9933;
    box-shadow: 0 0 0 0.25rem rgba(255, 153, 51, 0.25);
}

/* Switch toggle */
.form-check-input:checked {
    background-color: #ff9933;
    border-color: #ff9933;
}

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 153, 51, 0.25);
}


/* All Bookings Dashboard Styles */
.all-bookings-dashboard {
    padding: 0;
}

.stat-card {
    border-radius: 10px;
    padding: 15px;
    color: white;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
    margin-right: 15px;
    opacity: 0.9;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 5px;
}

/* Booking Cards */
.booking-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.booking-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.booking-card-header {
    padding: 12px 15px;
    color: white;
    font-weight: bold;
}

.booking-card-body {
    padding: 15px;
}

.booking-card-footer {
    padding: 10px 15px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.booking-venue {
    font-size: 1.1rem;
}

.booking-status {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
}

/* Monthly Chart */
.monthly-chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 200px;
    padding: 20px 0;
}

.chart-bar-container {
    text-align: center;
    flex: 1;
    margin: 0 5px;
}

.chart-bar {
    width: 30px;
    margin: 0 auto;
    background: linear-gradient(to top, #4e54c8, #8f94fb);
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

.chart-label {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #666;
}

.chart-value {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

/* Table improvements */
.booking-row:hover {
    background-color: #f8f9fa;
}

.table-warning {
    background-color: #fff3cd !important;
}

/* Venue summary */
.venue-summary-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.venue-summary-item:last-child {
    border-bottom: none;
}

/* Bulk actions panel */
#bulkActions {
    background: #f8f9fa;
    border: 2px solid #0d6efd;
}

/* Calendar View Styles */
.calendar-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
}

.calendar-day-header {
    background: #f8f9fa;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #666;
    border-bottom: 2px solid #dee2e6;
}

.calendar-day {
    background: white;
    min-height: 120px;
    padding: 8px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.2s;
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.today {
    background: #e7f1ff;
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.day-number {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #666;
}

.calendar-day.today .day-number {
    background: #0d6efd;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-event {
    background: #e7f1ff;
    border-left: 3px solid #0d6efd;
    padding: 4px 6px;
    margin: 2px 0;
    border-radius: 3px;
    font-size: 0.75rem;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: transform 0.2s;
}

.booking-event:hover {
    transform: translateX(2px);
    background: #d0e1ff;
}

.booking-event.confirmed {
    background: #d1e7dd;
    border-left-color: #198754;
}

.booking-event.pending {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.booking-event.cancelled {
    background: #f8d7da;
    border-left-color: #dc3545;
    opacity: 0.7;
}

.event-time {
    font-size: 0.7rem;
    color: #666;
    margin-right: 4px;
}

.event-venue {
    font-weight: bold;
    font-size: 0.7rem;
}

.event-customer {
    font-size: 0.7rem;
    color: #444;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Calendar View Toggle */
.calendar-view-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.view-option-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-option-btn.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.view-option-btn:hover:not(.active) {
    background: #f8f9fa;
}

/* Month View */
.month-view {
    display: block;
}

/* Week View */
.week-view {
    display: none;
}

.week-day {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

.week-day-header {
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 2px solid #dee2e6;
    font-weight: bold;
    text-align: center;
}

.week-day.today {
    background: #e7f1ff;
}

/* Day View */
.day-view {
    display: none;
}

.time-slots {
    border-right: 1px solid #dee2e6;
}

.time-slot {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: right;
    color: #666;
    font-size: 0.9rem;
}

.day-schedule {
    flex: 1;
    position: relative;
}

.schedule-event {
    position: absolute;
    left: 0;
    right: 0;
    padding: 8px;
    border-radius: 5px;
    margin: 1px;
    overflow: hidden;
}

/* Legend */
.calendar-legend {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.legend-color.confirmed {
    background: #d1e7dd;
    border-left: 3px solid #198754;
}

.legend-color.pending {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

.legend-color.cancelled {
    background: #f8d7da;
    border-left: 3px solid #dc3545;
}

/* Calendar Sidebar */
.calendar-sidebar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
}

.upcoming-events {
    max-height: 380px;
    overflow-y: auto;
    padding-right: 2px;
}

/* Calendar today highlight */
.calendar-day.today {
    background-color: #fff8e6;
    border: 2px solid #ffc107;
    border-radius: 4px;
}

.calendar-day.today .day-number {
    font-weight: bold;
    color: #ff6b00;
}

.calendar-day.today:hover {
    background-color: #fff2cc;
}

/* Today badge */
.badge.bg-warning.text-dark {
    background-color: #ffc107 !important;
    color: #000 !important;
}

/* Add to admin.css */
.booking-event.mandir-event {
    background-color: #4a148c;
    border-left: 3px solid #7b1fa2;
    color: white;
}

.booking-event.mandir-event:hover {
    background-color: #6a1b9a;
}

.booking-event.mandir-event .event-venue {
    font-weight: bold;
    color: #ffcc80;
}

.calendar-legend .mandir-event {
    background-color: #4a148c;
}

/* Calendar Dashboard Styles */
.all-bookings-dashboard {
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.calendar-title {
    color: #2c3e50;
}

.calendar-view-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.view-option-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 6px;
    transition: all 0.3s;
}

.view-option-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.calendar-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 15px;
}

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    color: #495057;
}

.calendar-day {
    min-height: 120px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 8px;
    background: white;
    position: relative;
    transition: all 0.3s;
}

.calendar-day:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.calendar-day.today {
    background: #fff8e6;
    border: 2px solid #ffc107;
}

.calendar-day.today .day-number {
    color: #ff6b00;
    font-weight: bold;
}

.calendar-day.other-month {
    background: #f8f9fa;
    opacity: 0.5;
}

.day-number {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

.day-events {
    max-height: 85px;
    overflow-y: auto;
}

.booking-event {
    padding: 3px 6px;
    margin: 2px 0;
    border-radius: 3px;
    font-size: 0.8em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.booking-event:hover {
    transform: scale(1.02);
}

.booking-event.confirmed {
    background: #d4edda;
    border-left: 3px solid #28a745;
    color: #155724;
}

.booking-event.pending {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    color: #856404;
}

.booking-event.cancelled {
    background: #f8d7da;
    border-left: 3px solid #dc3545;
    color: #721c24;
    opacity: 0.7;
}

.booking-event.mandir {
    background: #e8e2f3;
    border-left: 3px solid #6f42c1;
    color: #4a148c;
    font-weight: bold;
}

.booking-event.mandir .event-venue {
    color: #4a148c;
    font-weight: bold;
}

.event-time {
    font-weight: bold;
    font-size: 0.75em;
}

.event-venue {
    flex: 1;
    margin: 0 3px;
    font-size: 0.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-customer {
    font-size: 0.75em;
    color: #666;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.legend-color.confirmed {
    background: #28a745;
}

.legend-color.pending {
    background: #ffc107;
}

.legend-color.cancelled {
    background: #dc3545;
}

.legend-color.mandir {
    background: #6f42c1;
}

.calendar-sidebar {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* duplicate removed — see canonical rules below */

/* Purple badge for religious events */
.bg-purple {
    background-color: #6f42c1 !important;
    color: white !important;
}

.btn-outline-purple {
    border-color: #6f42c1;
    color: #6f42c1;
}

.btn-outline-purple:hover {
    background-color: #6f42c1;
    color: white;
}

.table-purple {
    background-color: #f9f7ff;
}

/* Week and Day view styles */
.week-view .week-day {
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    min-height: 200px;
}

.week-view .week-day.today {
    background: #fff8e6;
}

.week-day-header {
    text-align: center;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 10px;
}

.day-view .time-slots {
    border-right: 1px solid #dee2e6;
}

.day-view .time-slot {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
    height: 60px;
}

.day-view .schedule-event {
    position: absolute;
    left: 10px;
    right: 10px;
    padding: 5px;
    border-radius: 4px;
    border-left: 4px solid;
}

/* New day view grid */
.day-view-grid {
    display: flex;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.day-time-col {
    width: 70px;
    flex-shrink: 0;
    border-right: 1px solid #dee2e6;
    background: #f8f9fa;
}

.day-time-col .time-slot {
    height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 4px 8px 0 0;
    font-size: 0.72rem;
    color: #888;
    font-weight: 500;
    border-bottom: 1px solid #e9ecef;
    box-sizing: border-box;
}

.day-events-col {
    flex: 1;
    position: relative;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 59px,
        #e9ecef 59px,
        #e9ecef 60px
    );
}

.day-schedule-event {
    position: absolute;
    left: 8px;
    right: 8px;
    border-left: 4px solid;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.82rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}

.day-schedule-event:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .calendar-view-options {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .calendar-grid {
        gap: 2px;
    }
    
    .calendar-day {
        min-height: 80px;
        padding: 4px;
    }
    
    .day-events {
        max-height: 60px;
    }
    
    .booking-event {
        flex-direction: column;
        align-items: flex-start;
        padding: 2px;
    }
    
    .event-time, .event-venue, .event-customer {
        font-size: 0.7em;
    }
}

/* Enhanced Tab Styles */
.admin-tabs-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tabs-header {
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.tabs-nav {
    padding: 10px 0;
}

.tabs-group {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.tabs-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tabs-group-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-left: 5px;
    border-left: 3px solid #007bff;
}

.tabs-group-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    flex: 1;
    min-width: 180px;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    color: #495057;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    text-align: left;
    cursor: pointer;
}

.tab-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.tab-btn.active .tab-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tab-btn.btn-system {
    border-color: #ffc107;
}

.tab-btn.btn-system.active {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border-color: #ffc107;
}

.tab-text {
    flex-grow: 1;
    margin: 0 8px;
}

.tab-badge {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.85rem;
    min-width: 30px;
    text-align: center;
}

/* Mobile Tabs */
.mobile-tabs {
    background: white;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-tabs-toggle {
    padding: 15px 20px;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 8px;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s;
}

.mobile-tabs-toggle:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.mobile-tabs-toggle:active,
.mobile-tabs-toggle:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.mobile-tabs-dropdown {
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
}

.mobile-tabs-dropdown .dropdown-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    border-bottom: 1px solid #f8f9fa;
}

.mobile-tabs-dropdown .dropdown-item:hover {
    background: #007bff;
    color: white;
}

.mobile-tabs-dropdown .dropdown-item:hover i,
.mobile-tabs-dropdown .dropdown-item:hover span {
    color: white !important;
}

.mobile-tabs-dropdown .dropdown-section {
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    margin-top: 5px;
}

/* Active Tab Indicator */
.active-tab-indicator {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#activeTabName {
    font-weight: 600;
    color: #007bff;
}

/* Pending Booking Count Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.tab-badge:contains("0") {
    display: none;
}

.tab-badge:not(:contains("0")) {
    animation: pulse 2s infinite;
    background: #dc3545;
    color: white;
    font-weight: bold;
}

/* ===== MOBILE OPTIMIZED VENUE CARDS ===== */
@media (max-width: 768px) {
    /* Fix the grid layout */
    .dashboard-container .row,
    #hallSelectionContainer .row,
    .hall-config-card .row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Make cards more compact */
    .hall-config-card,
    .venue-card {
        height: auto !important;
        min-height: auto !important;
        padding: 15px !important;
        margin-bottom: 10px !important;
        position: relative;
    }
    
    /* Adjust header */
    .hall-config-card .venue-card-header,
    .venue-card .venue-card-header {
        margin-bottom: 10px !important;
    }
    
    .hall-config-card .venue-badge,
    .venue-card .venue-badge {
        font-size: 0.7rem !important;
        padding: 4px 10px !important;
    }
    
    .hall-config-card .venue-id-badge,
    .venue-card .venue-id-badge {
        font-size: 0.65rem !important;
        padding: 4px 8px !important;
    }
    
    /* Venue name input - smaller */
    .hall-config-card .venue-name-input,
    .venue-card .venue-name-input {
        font-size: 1rem !important;
        padding: 8px !important;
    }
    
    /* Price section - more compact */
    .hall-config-card .input-group,
    .venue-card .input-group {
        max-width: 150px !important;
        margin: 0 auto 10px !important;
    }
    
    .hall-config-card .price-input,
    .venue-card .price-input {
        font-size: 1rem !important;
        padding: 6px 8px !important;
    }
    
    .hall-config-card .input-group-text,
    .venue-card .input-group-text {
        padding: 6px 10px !important;
        font-size: 0.9rem !important;
    }
    
    /* Form fields */
    .hall-config-card .form-label,
    .venue-card .form-label {
        font-size: 0.8rem !important;
        margin-bottom: 3px !important;
    }
    
    .hall-config-card .form-control,
    .venue-card .form-control {
        font-size: 0.85rem !important;
        padding: 6px 8px !important;
        height: auto !important;
    }
    
    .hall-config-card textarea.form-control,
    .venue-card textarea.form-control {
        min-height: 50px !important;
        font-size: 0.8rem !important;
    }
    
    /* Time slot pricing section */
    .hall-config-card .time-slots-container,
    .venue-card .time-slots-container {
        overflow-x: auto !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        padding: 5px 0 !important;
        margin: 10px -5px !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .hall-config-card .time-slot-card,
    .venue-card .time-slot-card {
        flex: 0 0 160px !important;
        min-width: 150px !important;
        margin: 0 !important;
        padding: 12px !important;
    }
    
    .hall-config-card .time-slot-title,
    .venue-card .time-slot-title {
        font-size: 0.85rem !important;
    }
    
    .hall-config-card .time-slot-badge,
    .venue-card .time-slot-badge {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }
    
    .hall-config-card .time-slot-input,
    .venue-card .time-slot-input {
        max-width: 100px !important;
        margin: 5px auto !important;
    }
    
    .hall-config-card .time-slot-input .form-control,
    .venue-card .time-slot-input .form-control {
        font-size: 0.8rem !important;
        padding: 4px 6px !important;
    }
    
    /* Switch toggle */
    .hall-config-card .form-switch,
    .venue-card .form-switch {
        padding-left: 2.5em !important;
        margin-top: 8px !important;
    }
    
    .hall-config-card .form-check-input,
    .venue-card .form-check-input {
        width: 2.5em !important;
        height: 1.25em !important;
        margin-left: -2.5em !important;
    }
    
    .hall-config-card .form-check-label,
    .venue-card .form-check-label {
        font-size: 0.8rem !important;
    }
    
    /* Delete button */
    .hall-config-card .delete-venue-btn,
    .venue-card .delete-venue-btn {
        width: 30px !important;
        height: 30px !important;
        top: 10px !important;
        right: 10px !important;
        font-size: 0.7rem !important;
    }
    
    /* Description text */
    .hall-config-card .text-muted,
    .venue-card .text-muted {
        font-size: 0.7rem !important;
        margin-top: 3px !important;
    }
}

/* Extra small devices (phones under 480px) */
@media (max-width: 480px) {
    .hall-config-card,
    .venue-card {
        padding: 12px !important;
    }
    
    .hall-config-card .time-slot-card,
    .venue-card .time-slot-card {
        flex: 0 0 140px !important;
        min-width: 130px !important;
        padding: 10px !important;
    }
    
    .hall-config-card .input-group,
    .venue-card .input-group {
        max-width: 130px !important;
    }
    
    .hall-config-card .price-input,
    .venue-card .price-input {
        font-size: 0.9rem !important;
    }
    
    .hall-config-card .form-control,
    .venue-card .form-control {
        font-size: 0.8rem !important;
    }
    
    .hall-config-card textarea.form-control,
    .venue-card textarea.form-control {
        min-height: 40px !important;
    }
    
    /* Quick actions buttons */
    .btn-group .btn,
    .d-flex.gap-3 .btn {
        padding: 5px 8px !important;
        font-size: 0.75rem !important;
    }
}

/* Fix for the Add New Venue card */
@media (max-width: 768px) {
    .new-venue-card {
        min-height: 200px !important;
        padding: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .new-venue-icon {
        font-size: 2.5rem !important;
    }
    
    .new-venue-text {
        font-size: 1rem !important;
    }
    
    .new-venue-card p {
        font-size: 0.8rem !important;
    }
}

/* Fix for the time slot pricing enable/disable section */
@media (max-width: 768px) {
    .card.mb-4 .card-body .row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .card.mb-4 .card-body .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 !important;
    }
    
    .card.mb-4 .card-body .time-slot-card {
        margin-bottom: 0 !important;
    }
    
    .alert.mt-3 {
        font-size: 0.8rem !important;
        padding: 10px !important;
    }
}

/* Force single column layout */
@media (max-width: 768px) {
    .row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .col-md-4,
    .col-md-6,
    .col-lg-4 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0 !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .admin-tabs-container {
        padding: 15px;
    }
    
    .tab-btn {
        min-width: 100%;
        margin-bottom: 8px;
    }
    
    .tabs-group {
        padding: 12px;
    }
}

@media (min-width: 992px) {
    .tabs-group-buttons {
        gap: 15px;
    }
    
    .tab-btn {
        min-width: 200px;
    }
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 70px);
    background: #f8f9fa;
}

/* Mobile Navigation Header */
.mobile-nav-header {
    background: white;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-header-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

/* Sidebar Styles */
.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
    color: white;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h5 {
    color: white;
    font-weight: 600;
}

/* Navigation Groups */
.nav-groups {
    flex: 1;
    padding: 20px 15px;
    overflow-y: auto;
}

.nav-group {
    margin-bottom: 25px;
}

.nav-group-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
    padding: 0 10px 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

/* Navigation Items */
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.nav-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.nav-item.active .nav-icon {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.nav-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nav-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.nav-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.nav-badge {
    background: #e74c3c;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.quick-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.stat-item i {
    width: 20px;
    text-align: center;
}

.stat-item strong {
    color: white;
    margin-left: 3px;
}

/* Main Content Area */
.admin-main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    position: relative;
}

.tab-content-wrapper {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    min-height: calc(100vh - 140px);
}

/* Quick Actions */
.quick-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.quick-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Mobile Offcanvas */
.mobile-nav-groups {
    padding: 10px 0;
}

.mobile-nav-section {
    margin-bottom: 20px;
}

.mobile-nav-section h6 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading Animation */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.loading-spinner .spinner-border {
    width: 60px;
    height: 60px;
}

.loading-text {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .admin-sidebar {
        display: none;
    }
    
    .tab-content-wrapper {
        padding: 20px;
        min-height: auto;
    }
    
    .quick-actions {
        bottom: 20px;
        right: 20px;
    }
    
    .quick-action-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Animation for active state */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content-wrapper > * {
    animation: slideIn 0.3s ease-out;
}

/* Card hover effects */
.hall-config-card, .item-card, .event-type-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hall-config-card:hover, .item-card:hover, .event-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Status indicators */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.status-online { background: #2ecc71; }
.status-offline { background: #e74c3c; }
.status-warning { background: #f39c12; }

/* Time Slot Cards */
.time-slot-card {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.time-slot-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.1);
}

.time-slot-card .form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

.time-slot-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.time-slot-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
}

/* Time Slot Input Groups */
.time-slot-input-group {
    max-width: 200px;
}

/* Responsive adjustments for time slots */
@media (max-width: 768px) {
    .time-slot-card {
        padding: 12px;
    }
    
    .time-slot-header {
        flex-direction: column;
        gap: 5px;
    }
}

/* admin.css - Mandir Admin Panel Styles */

/* ============================================
   GLOBAL STYLES
   ============================================ */
:root {
    --primary-color: #800000;
    --primary-light: #9a0000;
    --secondary-color: #2c3e50;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    --gray-light: #e9ecef;
    --border-radius: 10px;
    --box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
    color: var(--secondary-color);
}

/* ============================================
   LOGIN SCREEN
   ============================================ */
#loginScreen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: white;
    border-radius: var(--border-radius);
    max-width: 450px;
    width: 100%;
    border: none;
}

.login-card h3 {
    color: var(--primary-color);
    font-weight: 700;
}

.btn-admin {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
    border: none;
    transition: var(--transition);
}

.btn-admin:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   ADMIN HEADER
   ============================================ */
.admin-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a0000 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand h4 {
    color: white;
    font-weight: 700;
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 76px);
}

/* Mobile Navigation Header */
.mobile-nav-header {
    display: none;
    background: white;
    padding: 10px 15px;
    border-bottom: 1px solid #dee2e6;
    align-items: center;
}

.mobile-header-title {
    flex-grow: 1;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */
.admin-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}

.sidebar-header {
    padding: 25px 20px 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h5 {
    color: var(--primary-color);
    font-weight: 700;
}

/* Navigation Groups */
.nav-groups {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px 0;
}

.nav-group {
    margin-bottom: 25px;
}

.nav-group-header {
    padding: 8px 20px;
    font-size: 0.8rem;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 3px solid transparent;
}

.nav-group-items {
    padding-top: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--secondary-color);
    border-left: 3px solid transparent;
    transition: var(--transition);
    position: relative;
}

.nav-item:hover {
    background: rgba(128, 0, 0, 0.05);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.nav-item.active {
    background: rgba(128, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-icon {
    width: 40px;
    height: 40px;
    background: rgba(128, 0, 0, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.nav-text {
    flex-grow: 1;
}

.nav-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-top: 2px;
}

.nav-badge {
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Quick Stats */
.quick-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

.stat-item {
    text-align: center;
    font-size: 0.85rem;
}

.stat-item i {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.admin-main-content {
    flex-grow: 1;
    padding: 25px;
    background: #f8f9fa;
    overflow-y: auto;
}

.tab-content-wrapper {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    min-height: 600px;
}

/* Section Titles */
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(128, 0, 0, 0.1);
}

/* ============================================
   QUICK ACTION BUTTONS (FLOATING)
   ============================================ */
.quick-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.quick-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.quick-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ============================================
   VENUE CARDS
   ============================================ */
.venue-card {
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.venue-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(128, 0, 0, 0.1);
}

.venue-card-header {
    position: relative;
    margin-bottom: 20px;
}

.delete-venue-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.venue-badge {
    background: var(--primary-color);
    color: white;
    font-size: 0.8rem;
}

.venue-id-badge {
    background: var(--gray-light);
    color: var(--gray-color);
    font-size: 0.7rem;
    font-family: monospace;
}

.new-venue-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #adb5bd;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-venue-card:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #f1f3f4 0%, #dee2e6 100%);
    transform: translateY(-2px);
}

.new-venue-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.new-venue-text {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.custom-toast {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-left: 4px solid var(--primary-color);
    animation: toastSlideIn 0.3s ease-out;
}

.custom-toast.toast-success {
    border-left-color: var(--success-color);
}

.custom-toast.toast-error {
    border-left-color: var(--danger-color);
}

.custom-toast.toast-warning {
    border-left-color: var(--warning-color);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   CALENDAR VIEW
   ============================================ */
.all-bookings-dashboard {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.calendar-view-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.view-option-btn {
    padding: 8px 16px;
    border: 2px solid #dee2e6;
    background: white;
    border-radius: 6px;
    color: var(--gray-color);
    transition: var(--transition);
}

.view-option-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.view-option-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #dee2e6;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day-header {
    background: var(--secondary-color);
    color: white;
    padding: 12px 5px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-day {
    background: white;
    min-height: 120px;
    padding: 8px;
    position: relative;
    transition: var(--transition);
}

.calendar-day:hover {
    background: #f8f9fa;
}

.calendar-day.today {
    background: #fff8e1;
}

.calendar-day.other-month {
    background: #f8f9fa;
    color: #adb5bd;
}

.day-number {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.booking-event {
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.booking-event:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.booking-event.pending {
    background: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.booking-event.confirmed {
    background: #d4edda;
    color: #155724;
    border-left: 3px solid #28a745;
}

.booking-event.cancelled {
    background: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.booking-event.mandir {
    background: #e8d8ff;
    color: #4b0082;
    border-left: 3px solid #9370db;
}

.event-time {
    font-weight: 600;
    display: block;
    font-size: 0.7rem;
}

.event-venue, .event-customer {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.legend-color.confirmed {
    background: #28a745;
}

.legend-color.pending {
    background: #ffc107;
}

.legend-color.cancelled {
    background: #dc3545;
}

.legend-color.mandir {
    background: #9370db;
}

/* Calendar Sidebar */
.calendar-sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

/* ============================================
   TODAY'S EVENTS — CANONICAL STYLES
   ============================================ */
.upcoming-events {
    max-height: 380px;
    overflow-y: auto;
    padding-right: 2px;
}

.upcoming-event-item {
    padding: 14px 12px;
    margin-bottom: 10px;
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    border: 1px solid #e8ecf0;
    border-left: 4px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.upcoming-event-item:hover {
    background: #f7f9fc;
    border-left-color: var(--primary-dark, #5a0000);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transform: translateX(3px);
}

.upcoming-event-item .event-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.upcoming-event-item .event-name {
    font-weight: 600;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    color: #1a1a2e;
}

.upcoming-event-item .event-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.upcoming-event-item .event-venue {
    font-size: 0.78rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.upcoming-event-item .event-amount {
    font-size: 0.82rem;
    font-weight: 700;
    color: #198754;
    white-space: nowrap;
}

.upcoming-event-item.mandir-event {
    border-left-color: #9370db;
    background: #fbf9ff;
}

.upcoming-event-item.mandir-event:hover {
    border-left-color: #6f42c1;
    background: #f3eeff;
}

.today-events-empty {
    text-align: center;
    padding: 24px 12px;
    color: #adb5bd;
}

.today-events-empty i {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
    opacity: 0.5;
}

/* ============================================
   ADDITIONAL CHARGES (PER VENUE)
   ============================================ */
.venue-selector {
    margin-bottom: 25px;
}

.venue-selector .nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.venue-selector .nav-link {
    border: none;
    color: var(--gray-color);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px 6px 0 0;
    margin-right: 5px;
    transition: var(--transition);
}

.venue-selector .nav-link:hover {
    color: var(--primary-color);
    background: rgba(128, 0, 0, 0.05);
}

.venue-selector .nav-link.active {
    color: var(--primary-color);
    background: white;
    border-bottom: 3px solid var(--primary-color);
    font-weight: 600;
}

.item-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: var(--transition);
}

.item-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(128, 0, 0, 0.1);
}

.badge-checkbox {
    background: #e8f4ff;
    color: #0066cc;
}

.badge-number {
    background: #fff0e6;
    color: #ff6600;
}

/* ============================================
   EVENT TYPES
   ============================================ */
.event-type-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 20px;
    height: 100%;
    transition: var(--transition);
}

.event-type-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.event-type-icon {
    font-size: 2rem;
    line-height: 1;
}

.event-type-badge {
    background: #f8f9fa;
    color: var(--gray-color);
    font-family: monospace;
    font-size: 0.75rem;
}

.status-badge-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-badge-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-badge-pending {
    background: #fff3cd;
    color: #856404;
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .mobile-nav-header {
        display: flex;
    }
    
    .admin-sidebar {
        display: none;
    }
    
    .admin-main-content {
        padding: 15px;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        font-size: 0.8rem;
    }
    
    .calendar-day {
        min-height: 80px;
    }
}

@media (max-width: 768px) {
    .quick-actions {
        bottom: 20px;
        right: 20px;
    }
    
    .quick-action-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .calendar-day-header,
    .calendar-day {
        padding: 5px 3px;
        font-size: 0.7rem;
    }
    
    .booking-event {
        font-size: 0.65rem;
        padding: 2px 4px;
    }
}

@media (max-width: 576px) {
    .modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .calendar-view-options {
        flex-direction: column;
    }
    
    .calendar-legend {
        flex-direction: column;
        gap: 10px;
    }
}

/* Print Styles */
@media print {
    .quick-actions,
    .admin-header,
    .admin-sidebar,
    .mobile-nav-header,
    .calendar-view-options {
        display: none !important;
    }
    
    .admin-main-content {
        padding: 0;
    }
    
    .tab-content-wrapper {
        box-shadow: none;
        padding: 0;
    }
}

/* ============================================
   VENUE SELECTOR TABS (For Additional Charges)
   ============================================ */
.venue-selector-tabs {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.venue-tabs-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.venue-tabs-header h5 {
    color: #800000;
    font-weight: 700;
}

.venue-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.venue-tab {
    padding: 12px 25px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 30px;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.venue-tab:hover {
    border-color: #800000;
    color: #800000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.1);
}

.venue-tab.active {
    background: linear-gradient(135deg, #800000 0%, #b30000 100%);
    color: white;
    border-color: #800000;
    box-shadow: 0 4px 15px rgba(128, 0, 0, 0.2);
}

.venue-tab i {
    font-size: 1.1rem;
}

.venue-tab-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

/* Venue Tab Content */
.venue-tab-content {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.venue-services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.venue-services-header h6 {
    color: #333;
    font-weight: 700;
    margin: 0;
}

.venue-services-count {
    background: #800000;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Service Item Card for venue-specific */
.venue-service-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.venue-service-card:hover {
    border-color: #ff9933;
    box-shadow: 0 5px 20px rgba(255, 153, 51, 0.15);
    transform: translateY(-3px);
}

.venue-service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.venue-service-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.venue-service-price {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.2);
}

.venue-service-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.venue-service-type.checkbox {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
}

.venue-service-type.number {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #000;
}

.venue-service-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.venue-service-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.venue-service-actions .btn {
    padding: 6px 15px;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* Add Service Form (Venue Specific) */
.add-service-form {
    background: #f0fdf4;
    border-radius: 10px;
    padding: 20px;
    margin: 16px 0;
    border: 1px solid #bbf7d0;
}

.add-service-form h6 {
    color: #166534;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Copy Services Panel */
.copy-services-panel {
    background: linear-gradient(135deg, #e8f4ff 0%, #d0e2ff 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    border: 2px dashed #0d6efd;
}

.copy-services-panel h6 {
    color: #0a58ca;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-services-panel .form-select {
    border: 2px solid #0d6efd;
    border-radius: 8px;
    font-weight: 500;
}

.copy-services-panel .btn-info {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    font-weight: 600;
    padding: 10px 25px;
}

.copy-services-panel .btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Services Summary */
.services-summary {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    border: 2px solid #198754;
}

.services-summary h6 {
    color: #155724;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.venue-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.venue-summary-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.venue-summary-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.venue-summary-venue {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.venue-summary-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: #198754;
    line-height: 1;
}

.venue-summary-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

/* No Services Message */
.no-services-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-services-message i {
    font-size: 4rem;
    color: #adb5bd;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-services-message h5 {
    color: #666;
    font-weight: 600;
    margin-bottom: 10px;
}

.no-services-message p {
    color: #888;
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #adb5bd;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    margin: 20px 0;
}

.empty-state i {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 15px;
}

.empty-state h6 {
    color: #666;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-state p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .venue-tabs {
        flex-direction: column;
    }
    
    .venue-tab {
        justify-content: center;
    }
    
    .venue-service-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .venue-service-actions {
        flex-wrap: wrap;
    }
    
    .venue-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .venue-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .venue-service-actions {
        flex-direction: column;
    }
    
    .venue-service-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Animation for tab switching */
@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.venue-tab-content {
    animation: tabFadeIn 0.3s ease-out;
}

/* Highlight active form */
.add-service-form.active-form {
    border-color: #800000;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    box-shadow: 0 5px 20px rgba(128, 0, 0, 0.1);
}

/* Success message */
.success-message {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    color: #155724;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Time Slot Pricing Styles */
.time-slot-card {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 15px;
    background: white;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.time-slot-card:hover {
    border-color: #800000;
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.1);
    transform: translateY(-2px);
}

.time-slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.time-slot-title {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-slot-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.time-slot-badge.morning {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.time-slot-badge.afternoon {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #000;
}

.time-slot-badge.night {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
}

.time-slot-badge.fullday {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.time-slot-switch {
    transform: scale(1.2);
}

.time-slot-input {
    max-width: 200px;
    margin: 0 auto;
}

.time-slot-input .input-group-text {
    background: #f8f9fa;
    font-weight: 600;
}

.time-slot-info {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

/* Time Slots Container */
.time-slots-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
}

.time-slots-container.hidden {
    display: none;
}

.time-slots-alert {
    background: linear-gradient(135deg, #e7f1ff 0%, #d0e2ff 100%);
    border: 1px solid #b6d4fe;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    color: #0a58ca;
}

/* Preview for time slots */
.time-slot-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.time-slot-preview-badge {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.time-slot-preview-badge.morning {
    background: #17a2b8;
    color: white;
}

.time-slot-preview-badge.afternoon {
    background: #ffc107;
    color: #000;
}

.time-slot-preview-badge.night {
    background: #6c757d;
    color: white;
}

.time-slot-preview-badge.fullday {
    background: #28a745;
    color: white;
}


/* ===== SIMPLE MOBILE FIX - JUST STACK CARDS ===== */
@media (max-width: 768px) {
    /* Make each venue card take full width */
    .hall-config-card,
    .venue-card,
    [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Keep original styling but just stack them */
    .row {
        display: block !important;
    }
}



/* ===== IMPROVED CALENDAR EVENT STYLES ===== */
.calendar-grid {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #800000;
}

.calendar-day-name {
    padding: 10px 5px;
    text-align: center;
    font-weight: 600;
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calendar-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
}

.calendar-day {
    background: white;
    min-height: 130px;
    padding: 8px 6px;
    position: relative;
    transition: background 0.15s;
}

.calendar-day:hover {
    background: #fffaf6;
    z-index: 1;
}

.calendar-day.today {
    background: #fff8e1;
}

.calendar-day.empty {
    background: #f5f5f5;
}

.day-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.calendar-day.today .day-number {
    background: #800000;
    color: white;
    font-weight: 700;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 100px;
    overflow-y: auto;
}

/* Calendar Event Cards */
.calendar-event {
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.calendar-event:hover {
    transform: scale(1.02) translateX(2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Event content layout - Name first, then venue */
.calendar-event .event-name {
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

.calendar-event .event-name i {
    font-size: 0.7rem;
}

.calendar-event .event-venue {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.calendar-event .event-venue i {
    font-size: 0.65rem;
    opacity: 0.7;
}

.calendar-event .event-time {
    font-size: 0.65rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.calendar-event .event-amount {
    font-size: 0.7rem;
    font-weight: 600;
    color: #28a745;
    margin-top: 2px;
}

/* Status colors for regular bookings */
.calendar-event.pending {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.calendar-event.confirmed {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.calendar-event.cancelled {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
    opacity: 0.7;
}

/* Religious events */
.calendar-event.religious {
    background: #e8e2f3;
    border-left-color: #6f42c1;
    color: #4a148c;
    border-left-width: 4px;
}

.calendar-event.religious .event-name {
    color: #4a148c;
}

.calendar-event.religious .event-name i {
    color: #6f42c1;
}

/* Custom scrollbar for events */
.day-events::-webkit-scrollbar {
    width: 3px;
}

.day-events::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.day-events::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.day-events::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 100px;
        padding: 4px;
    }
    
    .calendar-day-name {
        padding: 8px 2px;
        font-size: 0.75rem;
    }
    
    .day-number {
        font-size: 0.85rem;
        padding: 1px 4px;
    }
    
    .calendar-event {
        padding: 4px;
    }
    
    .calendar-event .event-name,
    .calendar-event .event-venue,
    .calendar-event .event-time,
    .calendar-event .event-amount {
        font-size: 0.65rem;
    }
}

/* Tooltip for full details */
.calendar-event[title] {
    position: relative;
}

/* Animation for new events */
@keyframes eventPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.calendar-event.new {
    animation: eventPulse 1s ease;
}

/* ============================================
   WEEK VIEW — VERTICAL CASCADE
   ============================================ */
.week-cascade {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.week-cascade-day {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e8ecf0;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

.week-cascade-day:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.week-cascade-day.today {
    border-color: #800000;
    box-shadow: 0 0 0 2px rgba(128,0,0,0.15);
}

.week-cascade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e8ecf0;
    cursor: default;
}

.week-cascade-day.today .week-cascade-header {
    background: #fff8f8;
    border-bottom-color: #f0d0d0;
}

.wch-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wch-dayname {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a1a2e;
}

.week-cascade-day.today .wch-dayname {
    color: #800000;
}

.wch-date {
    font-size: 0.78rem;
    color: #6c757d;
}

.wch-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.week-cascade-body {
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.week-cascade-empty {
    color: #adb5bd;
    font-size: 0.85rem;
    padding: 6px 0;
    font-style: italic;
}

.week-cascade-event {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 8px;
    border-left: 4px solid #800000;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.week-cascade-event:hover {
    background: #f3f4f6;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.week-cascade-event.confirmed {
    border-left-color: #198754;
    background: #f6fbf8;
}

.week-cascade-event.pending {
    border-left-color: #ffc107;
    background: #fffdf2;
}

.week-cascade-event.cancelled {
    border-left-color: #6c757d;
    background: #f8f8f8;
    opacity: 0.7;
}

.week-cascade-event.mandir {
    border-left-color: #6f42c1;
    background: #fbf9ff;
}

.week-cascade-event.mandir:hover {
    background: #f3eeff;
}

.wce-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wce-slot {
    font-size: 0.75rem;
    color: #6c757d;
}

.wce-name {
    font-weight: 600;
    font-size: 0.92rem;
    color: #1a1a2e;
}

.wce-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #6c757d;
}

.wce-amount {
    font-weight: 700;
    color: #198754;
    font-size: 0.82rem;
}