* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-wrapper {
    display: contents;
}

.panel {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stat-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.stat-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.stat-panel:first-child::after {
    background: linear-gradient(90deg, #667eea 0%, #6f7ae6 100%);
}

.stat-panel:nth-child(2)::after {
    background: linear-gradient(90deg, #7376e2 0%, #764ba2 100%);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    position: relative;
    z-index: 1;
}

.stat-panel:first-child .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #6f7ae6 100%);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.stat-panel:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #7376e2 0%, #764ba2 100%);
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.3);
}

.stat-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

.stat-panel:nth-child(2) .stat-badge {
    background: rgba(118, 75, 162, 0.1);
    color: #764ba2;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    letter-spacing: -2px;
}

.stat-panel:first-child .stat-number {
    background: linear-gradient(135deg, #667eea 0%, #6f7ae6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-panel:nth-child(2) .stat-number {
    background: linear-gradient(135deg, #7376e2 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    color: #5a67d8;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.chart-panel {
    grid-column: 1 / -1;
}

.chart-title {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    font-weight: 700;
}

.chart-container {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-line {
    fill: none;
    stroke: url(#lineGradient);
    stroke-width: 4;
    stroke-linecap: round;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.chart-area {
    fill: url(#gradient);
    opacity: 0.3;
}

.chart-grid line {
    stroke: rgba(102, 126, 234, 0.15);
    stroke-width: 1;
    stroke-dasharray: 5,5;
}

.chart-axis {
    stroke: #95a5a6;
    stroke-width: 2;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: white;
    border-bottom: none;
}

.data-table td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    color: #4a5568;
}

.data-table tr:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.data-number {
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
}

.data-description {
    color: #718096;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .chart-panel {
        grid-column: 1;
    }
}
