﻿/*
   ANALYTICS DASHBOARD
 */

/* LAYOUT & CONTAINERS */
.analytics-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f5e6c8;
}

/* HEADER SECTION */
.analytics-header {
    background: linear-gradient(135deg, #a8bdaa 0%, #8ca88e 100%);
    padding: 50px 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .analytics-header h1 {
        color: #2c2c2c;
        font-size: 2.5rem;
        margin: 0;
        font-weight: 600;
    }

.analytics-subtitle {
    color: #4a4a4a;
    font-size: 1.1rem;
    margin-top: 8px;
}

/* STATISTICS CARDS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

.stat-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #315a35, #4a7a4f);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

    .stat-icon i {
        color: white;
        font-size: 26px;
    }

.stat-title {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    color: #315a35;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1;
}

.stat-change {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

    .stat-change.positive {
        color: #4a7a4f;
    }

/* CONTENT CARDS - Match Your Event Cards */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: 30px;
}

.content-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

    .content-card h2 {
        color: #2c2c2c;
        font-size: 1.6rem;
        margin: 0 0 25px 0;
        font-weight: 600;
        padding-bottom: 15px;
        border-bottom: 2px solid #f0f0f0;
    }

/* RECENT BOOKINGS LIST */
.booking-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    border-left: 4px solid #315a35;
    transition: all 0.25s ease;
}

    .booking-item:hover {
        background: #f5e6c8;
        transform: translateX(5px);
    }

.booking-info {
    flex: 1;
}

.booking-name {
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 6px 0;
    font-size: 1.05rem;
}

.booking-event {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.booking-details {
    display: flex;
    align-items: center;
    gap: 16px;
}

.booking-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Status Badges */
.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

    .status-badge.confirmed {
        background-color: #e8f5e9;
        color: #2e7d32;
    }

    .status-badge.pending {
        background-color: #fff3e0;
        color: #ef6c00;
    }

/* POPULAR EVENTS CHART */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.event-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .event-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.event-name {
    font-weight: 600;
    color: #2c2c2c;
    font-size: 1.05rem;
}

.event-count {
    color: #315a35;
    font-weight: 700;
    font-size: 1rem;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #315a35, #4a7a4f);
    border-radius: 10px;
    transition: width 0.8s ease;
    animation: fillAnimation 1s ease-out;
}

@keyframes fillAnimation {
    from {
        width: 0;
    }
}

/* NO DATA STATES */
.no-data {
    text-align: center;
    color: #999;
    padding: 50px 20px;
    font-style: italic;
    font-size: 1.05rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .analytics-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 35px 25px;
    }

        .analytics-header h1 {
            font-size: 2rem;
        }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .booking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .booking-details {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .analytics-page {
        padding: 25px 15px;
    }

    .stat-card,
    .content-card {
        padding: 24px;
    }

    .analytics-header {
        padding: 25px 20px;
    }
}

/* UTILITY CLASSES */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 32px;
}

.mb-4 {
    margin-bottom: 32px;
}
