/* Results section styles */
.results-section {
    display: none;
    animation: fadeIn 0.8s ease;
}

.results-section.show {
    display: block;
}

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

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease forwards;
    opacity: 0;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.stat-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

.positive {
    color: #10b981;
}

.negative {
    color: #ef4444;
}

.neutral {
    color: #6366f1;
}

/* Chart Container */
.chart-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideIn 0.6s ease forwards;
    opacity: 0;
}

.chart-title {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

canvas {
    max-height: 400px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab:hover {
    background: #f0f2ff;
}

.tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Month Table */
.month-table {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow-x: auto;
    animation: slideIn 0.7s ease forwards;
    opacity: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: right;
    font-weight: 600;
    position: sticky;
    top: 0;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
    text-align: right;
}

tr {
    transition: background 0.3s ease;
}

tr:hover {
    background: #f9fafb;
}

/* Insights */
.insights {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideIn 0.8s ease forwards;
    opacity: 0;
}

.insight-item {
    padding: 15px;
    margin: 15px 0;
    border-right: 5px solid;
    background: #f8f9ff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.insight-item:hover {
    transform: translateX(-10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.insight-good {
    border-color: #10b981;
}

.insight-warning {
    border-color: #f59e0b;
}

.insight-info {
    border-color: #6366f1;
}

.insight-danger {
    border-color: #ef4444;
}
