.coco-table-reports {
    max-width: 1400px;
}

.coco-table-reports h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.coco-reports-container {
    background: white;
    padding: 30px;
    margin-top: 20px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
}

.report-controls {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f1f3f5;
}

.report-controls h2 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.report-controls > p {
    color: #6c757d;
    margin-bottom: 20px;
}

.event-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.event-selector:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.event-selector label {
    margin-bottom: 0;
    min-width: 120px;
    font-weight: 600;
    color: #495057;
}

.event-selector select {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    padding: 10px 15px;
    font-size: 14px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.event-selector select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.event-selector .button {
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
}

.event-selector .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.event-selector .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.event-selector .button-primary:disabled {
    background: #adb5bd;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
    opacity: 0.6;
}

.event-selector .button:not(.button-primary) {
    background: white;
    border: 2px solid #dee2e6;
    color: #495057;
}

.event-selector .button:not(.button-primary):hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

.event-selector .button:not(.button-primary):disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
}

.loading-spinner .spinner {
    float: none;
    margin: 0 auto;
}

/* Summary Statistics */
#summary-stats {
    margin-bottom: 35px;
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#summary-stats h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

#summary-stats h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 26px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.stat-card.males {
    background: linear-gradient(135deg, #4fc3f7 0%, #2196f3 100%);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.stat-card.males:hover {
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.4);
}

.stat-card.females {
    background: linear-gradient(135deg, #f48fb1 0%, #e91e63 100%);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

.stat-card.females:hover {
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.4);
}

.stat-card.revenue {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.3);
}

.stat-card.revenue:hover {
    box-shadow: 0 10px 30px rgba(67, 160, 71, 0.4);
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
    margin-bottom: 12px;
    font-weight: 600;
    position: relative;
}

.stat-value {
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    position: relative;
}

/* Bookings Table */
#bookings-table-container {
    margin-top: 35px;
    animation: fadeIn 0.6s ease-in 0.2s backwards;
}

#bookings-table-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

#bookings-table-container h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

#bookings-table {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-collapse: separate;
    border-spacing: 0;
}

#bookings-table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 16px 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

#bookings-table tbody td {
    padding: 14px;
    border-bottom: 1px solid #f1f3f5;
    font-size: 14px;
    color: #495057;
}

#bookings-table tbody tr {
    transition: all 0.2s ease;
}

#bookings-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: scale(1.01);
}

#bookings-table tbody tr:last-child td {
    border-bottom: none;
}

#bookings-table tfoot .total-row {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 700;
}

#bookings-table tfoot .total-row td {
    border-top: 3px solid #667eea;
    padding: 18px 14px;
    font-size: 15px;
    color: #2c3e50;
}

.gender-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
    transition: all 0.2s ease;
}

.gender-badge:hover {
    transform: scale(1.05);
}

.gender-badge.male {
    background: linear-gradient(135deg, #4fc3f7 0%, #2196f3 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.gender-badge.female {
    background: linear-gradient(135deg, #f48fb1 0%, #e91e63 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

/* No bookings message */
#no-bookings-message {
    margin-top: 30px;
    text-align: center;
    padding: 60px 40px;
    animation: fadeIn 0.6s ease-in;
}

#no-bookings-message .notice {
    display: inline-block;
    text-align: center;
    max-width: 600px;
    padding: 30px;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

#no-bookings-message .notice::before {
    content: '📭';
    display: block;
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

#no-bookings-message .notice p {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 782px) {
    .coco-reports-container {
        padding: 20px;
    }
    
    .event-selector {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }
    
    .event-selector label {
        min-width: auto;
    }
    
    .event-selector select {
        max-width: 100%;
        min-width: 100%;
    }
    
    .event-selector .button {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 32px;
    }
    
    #bookings-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
    }
    
    #bookings-table thead th,
    #bookings-table tbody td,
    #bookings-table tfoot td {
        padding: 10px 8px;
    }
    
    .gender-badge {
        padding: 4px 10px;
        font-size: 11px;
        min-width: 40px;
    }
    
    #no-bookings-message {
        padding: 40px 20px;
    }
}

@media (max-width: 600px) {
    .coco-table-reports h1 {
        font-size: 24px;
    }
    
    #summary-stats h3,
    #bookings-table-container h3 {
        font-size: 18px;
    }
    
    .stat-value {
        font-size: 28px;
    }
}

