/* Reports Section Styles */

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.loading-state .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.stat-card-properties {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card-users {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card-agencies {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card-revenue {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stat-icon {
    font-size: 32px;
    opacity: 0.9;
}

.stat-details h3 {
    font-size: 28px;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.stat-details p {
    margin: 0 0 10px 0;
    font-size: 14px;
    opacity: 0.9;
}

.stat-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stat-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.2);
}

.stat-badge.success {
    background: rgba(76, 175, 80, 0.3);
}

.stat-badge.danger {
    background: rgba(244, 67, 54, 0.3);
}

.stat-badge.warning {
    background: rgba(255, 152, 0, 0.3);
}

.stat-badge.info {
    background: rgba(33, 150, 243, 0.3);
}

/* Growth Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.growth-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.growth-card h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.growth-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.growth-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.growth-item:last-child {
    border-bottom: none;
}

.growth-item span {
    color: #666;
    font-size: 14px;
}

.growth-item strong {
    color: #667eea;
    font-size: 18px;
    font-weight: 700;
}

/* Charts */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-container h3 i {
    color: #667eea;
}

.chart-container canvas {
    max-height: 300px;
}

/* Report Lists */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.report-list-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.report-list-card h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-list-card h3 i {
    color: #667eea;
}

.list-content {
    max-height: 400px;
    overflow-y: auto;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.list-item:last-child {
    border-bottom: none;
}

.list-rank {
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.list-info {
    flex: 1;
}

.list-info strong {
    display: block;
    color: #333;
    font-size: 14px;
    margin-bottom: 4px;
}

.list-info small {
    display: block;
    color: #666;
    font-size: 12px;
}

.list-value {
    font-weight: 700;
    color: #667eea;
    font-size: 14px;
    text-align: left;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 14px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        font-size: 28px;
    }
}
