/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #f9fafb;
    color: #374151;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Typography */
.main-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 32px;
    color: #1f2937;
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #374151;
}

.chart-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 8px;
    line-height: 1.5;
}

/* Chart Containers */
.chart-container {
    background-color: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
}

.chart-wrapper {
    position: relative;
    height: 300px;
    margin-bottom: 16px;
}

#radarChart {
    height: 500px !important;
    margin-bottom: 24px !important;
}

.radar-chart-container {
    padding-bottom: 60px !important;
}

.radar-chart-container .chart-wrapper {
    height: 500px;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-chart-container .chart-wrapper canvas {
    max-width: 100% !important;
    max-height: 100% !important;
}

/* Financial Health Cards */
.financial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.financial-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background-color: white;
}

.financial-card h3 {
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    color: #374151;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.metric-item:last-child {
    margin-bottom: 0;
}

.value {
    font-weight: bold;
}

.value.samsung {
    color: #2563eb;
}

.value.lg {
    color: #ea580c;
}

.value.industry {
    color: #16a34a;
}

/* Summary Section */
.summary-container {
    background: linear-gradient(to right, #dbeafe, #dcfce7);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

.summary-card {
    background-color: white;
    padding: 16px;
    border-radius: 8px;
}

.summary-card h3 {
    font-weight: 600;
    margin-bottom: 8px;
}

.samsung-card h3 {
    color: #2563eb;
}

.lg-card h3 {
    color: #ea580c;
}

.summary-card ul {
    list-style: none;
    font-size: 0.875rem;
}

.summary-card li {
    margin-bottom: 4px;
    line-height: 1.4;
}

.strategy-box {
    background-color: #fefce8;
    padding: 12px;
    border-radius: 8px;
    margin-top: 16px;
}

.strategy-box p {
    font-size: 0.875rem;
    color: #374151;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .main-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    
    .chart-container {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .chart-wrapper {
        height: 250px;
    }
    
    .financial-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.25rem;
    }
    
    .chart-title {
        font-size: 1.1rem;
    }
    
    .chart-wrapper {
        height: 200px;
    }
}

/* Chart Specific Styles */
canvas {
    max-width: 100%;
    height: auto;
}

/* Animation */
.chart-container {
    transition: box-shadow 0.3s ease;
}

.chart-container:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.financial-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.financial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}