* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f141e;
    color: #edf1f7;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a3444;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    color: #cbef43;
}

.subtitle {
    color: #aab4c4;
    font-size: 14px;
    margin-top: 5px;
}

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

.metric-card {
    background: #1a2230;
    border: 1px solid #2a3444;
    border-radius: 12px;
    padding: 20px;
}

.metric-card h3 {
    font-size: 16px;
    color: #aab4c4;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 32px;
    font-weight: 700;
    color: #cbef43;
    margin-bottom: 5px;
}

.metric-plan {
    font-size: 14px;
    color: #aab4c4;
    margin-bottom: 10px;
}

.metric-completion {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #2a3444;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #cbef43;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.metric-completion span {
    font-size: 14px;
    font-weight: 600;
    color: #cbef43;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
}

.chart-card {
    background: #1a2230;
    border: 1px solid #2a3444;
    border-radius: 12px;
    padding: 20px;
}

.chart-card h3 {
    font-size: 16px;
    color: #aab4c4;
    margin-bottom: 15px;
}

canvas {
    max-height: 300px;
}

.analysis-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #2a3444;
}

.analysis-section h2 {
    font-size: 24px;
    color: #cbef43;
    margin-bottom: 20px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.analysis-card {
    background: #1a2230;
    border: 1px solid #2a3444;
    border-radius: 12px;
    padding: 20px;
}

.analysis-card h3 {
    font-size: 16px;
    color: #aab4c4;
    margin-bottom: 10px;
}

.analysis-card p {
    font-size: 14px;
    line-height: 1.6;
}

.analysis-card.critical {
    border-left: 4px solid #ff4444;
}

.analysis-card.warning {
    border-left: 4px solid #ffaa00;
}

.analysis-card.good {
    border-left: 4px solid #44ff44;
}

.analysis-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.detail-card {
    background: #1a2230;
    border: 1px solid #2a3444;
    border-radius: 12px;
    padding: 20px;
}

.detail-card h3 {
    font-size: 16px;
    color: #aab4c4;
    margin-bottom: 15px;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #2a3444;
}

.comparison-item:last-child {
    border-bottom: none;
}

.comparison-name {
    font-size: 14px;
}

.comparison-change {
    font-size: 14px;
    font-weight: 600;
}

.comparison-change.up {
    color: #44ff44;
}

.comparison-change.down {
    color: #ff4444;
}

.problem-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #2a3444;
}

.problem-item:last-child {
    border-bottom: none;
}

.problem-name {
    font-size: 14px;
}

.problem-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffaa00;
}

.attribution-table {
    background: #1a2230;
    border: 1px solid #2a3444;
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
}

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

.attribution-table th {
    text-align: left;
    padding: 12px;
    color: #aab4c4;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #2a3444;
}

.attribution-table td {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid #2a3444;
}

.attribution-table tr:hover {
    background: #2a3444;
}

.attribution-table .roi-positive {
    color: #44ff44;
    font-weight: 600;
}

.attribution-table .roi-negative {
    color: #ff4444;
    font-weight: 600;
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-details {
        grid-template-columns: 1fr;
    }
}
