/* Admin Dashboard Styles */

.admin-nav {
    margin-top: 20px;
}

.admin-dashboard {
    background: #F2F0EF;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(3,28,38,0.08);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #031c26 0%, #247c6d 100%);
    color: #F2F0EF;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(3,28,38,0.1);
}

.stat-card h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(3,28,38,0.3);
}

/* Filters Section */
.filters-section {
    background: #e8f4f8;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #247c6d;
}

.filters-section h3 {
    margin-bottom: 15px;
    color: #031c26;
}

.filter-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: 600;
    color: #031c26;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #247c6d;
}

/* Bookings Section */
.bookings-section h3 {
    margin-bottom: 20px;
    color: #031c26;
}

.table-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(3,28,38,0.1);
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.bookings-table th {
    background: #031c26;
    color: #F2F0EF;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
}

.bookings-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e2e8f0;
}

.bookings-table tr:hover {
    background: #f7fafc;
}

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

/* Status badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: #c6f6d5;
    color: #22543d;
}

.status-badge.completed {
    background: #e2e8f0;
    color: #4a5568;
}

.status-badge.upcoming {
    background: #feebc8;
    color: #c05621;
}

/* Action buttons */
.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.action-btn.view {
    background: #4299e1;
    color: white;
}

.action-btn.delete {
    background: #f56565;
    color: white;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Delete Modal */
.btn-danger {
    background: #f56565 !important;
    color: white !important;
}

.booking-details {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #f56565;
}

.booking-details p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-dashboard {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .bookings-table {
        font-size: 0.8rem;
    }
    
    .bookings-table th,
    .bookings-table td {
        padding: 8px 5px;
    }
    
    /* Hide less important columns on mobile */
    .bookings-table th:nth-child(3),
    .bookings-table td:nth-child(3),
    .bookings-table th:nth-child(7),
    .bookings-table td:nth-child(7) {
        display: none;
    }
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: #4a5568;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    border-top-color: #247c6d;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #4a5568;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #031c26;
}

.empty-state p {
    opacity: 0.7;
} 