/* XCO Website Report Styles */
:root {
    --xco-primary: #081844;
    --xco-secondary: #fa4b05;
    --xco-white: #ffffff;
    --xco-light-gray: #f5f5f5;
    --xco-gray: #666666;
    --xco-border: #e0e0e0;
    --xco-success: #4caf50;
}

* {
    box-sizing: border-box;
}

.xco-report-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.xco-report-wrapper {
    background: var(--xco-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(8, 24, 68, 0.1);
    overflow: hidden;
}

/* Page Content */
.xco-report-page {
    min-height: 600px;
    padding: 60px;
    background: var(--xco-white);
    position: relative;
}

/* Header */
.xco-report-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--xco-secondary);
}

.xco-logo {
    width: 180px;
    margin-bottom: 20px;
}

.xco-report-header h1 {
    color: var(--xco-primary);
    font-size: 42px;
    font-weight: 700;
    margin: 20px 0 10px;
    line-height: 1.2;
}

.xco-report-header .subtitle {
    color: var(--xco-gray);
    font-size: 18px;
    font-weight: 400;
}

.xco-report-header .year-badge {
    display: inline-block;
    background: var(--xco-secondary);
    color: var(--xco-white);
    padding: 8px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--xco-primary) 0%, #0a1f5c 100%);
    color: var(--xco-white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(250, 75, 5, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin: 10px 0;
}

.stat-growth {
    display: inline-flex;
    align-items: center;
    background: var(--xco-success);
    color: var(--xco-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

.stat-growth::before {
    content: '↑';
    margin-right: 4px;
    font-size: 16px;
}

/* Content Section */
.content-section {
    margin: 50px 0;
}

.section-title {
    color: var(--xco-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 4px solid var(--xco-secondary);
}

.section-intro {
    color: var(--xco-gray);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Chart Container */
.chart-container {
    background: var(--xco-light-gray);
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    position: relative;
}

.chart-wrapper {
    position: relative;
    height: 350px;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    background: var(--xco-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.data-table thead {
    background: var(--xco-primary);
    color: var(--xco-white);
}

.data-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr {
    border-bottom: 1px solid var(--xco-border);
    transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
    background: var(--xco-light-gray);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table td {
    padding: 18px 20px;
    color: var(--xco-gray);
}

.data-table td:first-child {
    color: var(--xco-primary);
    font-weight: 600;
}

.data-table .number {
    font-weight: 600;
    color: var(--xco-primary);
}

/* Progress Bar */
.progress-item {
    margin: 20px 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--xco-primary);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--xco-light-gray);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--xco-secondary) 0%, #ff6b35 100%);
    border-radius: 6px;
    transition: width 1s ease;
}

/* Highlights */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.highlight-card {
    background: var(--xco-light-gray);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--xco-secondary);
    transition: transform 0.3s ease;
}

.highlight-card:hover {
    transform: translateX(5px);
}

.highlight-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.highlight-title {
    color: var(--xco-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.highlight-value {
    color: var(--xco-secondary);
    font-size: 32px;
    font-weight: 700;
    margin: 10px 0;
}

.highlight-description {
    color: var(--xco-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* Navigation */
.xco-report-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 60px;
    background: var(--xco-primary);
    border-top: 3px solid var(--xco-secondary);
}

.page-indicator {
    color: var(--xco-white);
    font-size: 14px;
    font-weight: 500;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.nav-button {
    background: var(--xco-white);
    color: var(--xco-primary);
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-button:hover:not(:disabled) {
    background: var(--xco-secondary);
    color: var(--xco-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 75, 5, 0.3);
}

.nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-button.active {
    background: var(--xco-secondary);
    color: var(--xco-white);
}

/* Page Dots */
.page-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-dot.active {
    background: var(--xco-secondary);
    width: 30px;
    border-radius: 5px;
}

.page-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

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

.xco-report-page {
    animation: fadeIn 0.6s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .xco-report-page {
        padding: 30px 20px;
    }
    
    .xco-report-header h1 {
        font-size: 32px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .xco-report-navigation {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-wrapper {
        height: 250px;
    }
}

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--xco-light-gray);
    border-top-color: var(--xco-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* Print Styles */
@media print {
    .xco-report-navigation {
        display: none;
    }
    
    .xco-report-page {
        page-break-after: always;
    }
}
