/* Base Styles */
:root {
    --primary-color: #0052CC;
    --secondary-color: #172B4D;
    --accent-color: #36B37E;
    --light-gray: #F4F5F7;
    --medium-gray: #DFE1E6;
    --dark-gray: #505F79;
    --text-color: #172B4D;
    --border-radius: 4px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9fb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    box-shadow: var(--box-shadow);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--medium-gray);
}

h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

/* Header */
header {
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
}

/* Sections */
section {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.summary {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
}

/* Charts */
.chart-container {
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

#revenue-chart, #market-share-chart {
    width: 100%;
    height: 500px;
    margin-top: 1rem;
}

/* Insights Grid */
.insights-grid, .recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.insight-card, .recommendation-card {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    border-top: 3px solid var(--primary-color);
    transition: var(--transition);
}

.insight-card:hover, .recommendation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recommendation-card {
    border-top-color: var(--accent-color);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

th, td {
    padding: 0.75rem;
    text-align: right;
    border-bottom: 1px solid var(--medium-gray);
}

th {
    background-color: var(--light-gray);
    font-weight: 600;
    color: var(--secondary-color);
}

th:first-child, td:first-child {
    text-align: left;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Market Share Section */
.market-share-analysis {
    margin-top: 2rem;
}

.market-share-analysis ul {
    margin: 1rem 0 1rem 2rem;
}

.market-share-analysis li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    color: var(--dark-gray);
    font-size: 0.9rem;
    border-top: 1px solid var(--medium-gray);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .insights-grid, .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}