@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --text-primary: rgba(0, 0, 0, 0.85);
    --text-secondary: rgba(0, 0, 0, 0.45);
    --accent: #26993c;
    --accent-hover: #1e7a30;
    --accent-light: #e6f4ea;
    --border: #f0f0f0;
    --shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
}

.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    background: #ffffff;
    margin: -24px -24px 24px -24px;
    padding: 24px 48px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-logo {
    height: 64px;
    width: auto;
    display: block;
}

.header-text h1 {
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.header-text h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin-top: 8px;
    border-radius: 2px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.tab-btn {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    box-shadow: 0 2px 0 rgba(0,0,0,0.015);
}

.tab-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.tab-btn.active {
    color: #ffffff;
    background: var(--accent);
    border-color: var(--accent);
    font-weight: 500;
    box-shadow: 0 2px 0 rgba(38, 153, 60, 0.2);
}

.tab-controls-bar {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-end;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.header-controls label {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.header-controls select {
    background: #ffffff;
    border: 1px solid #d9d9d9;
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 200px;
}

.header-controls select:hover, .header-controls select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(38, 153, 60, 0.2);
}

.tab-content {
    display: none;
    animation: fadeSlideUp 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.tab-content.active {
    display: block;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card-bg);
    min-width: 0;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    min-height: 520px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card.section-header-card {
    height: auto;
    min-height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 24px 0 8px 0;
    margin-top: 16px;
    pointer-events: none;
}

.card.section-header-card .card-header {
    margin-bottom: 0;
    border-bottom: 2px solid var(--border);
    padding-bottom: 12px;
}

.card.section-header-card .card-title {
    color: var(--accent);
    font-size: 20px;
    font-weight: 500;
}

.card-header {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.card-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.chart-container {
    flex: 1;
    position: relative;
    width: 100%;
    min-height: 450px;
}

/* Loading state */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--accent);
    font-size: 14px;
    font-weight: 500;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.info-banner {
    background-color: var(--accent-light);
    border: 1px solid rgba(38, 153, 60, 0.2);
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    font-size: 20px;
    line-height: 1;
}

.info-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.info-text strong {
    font-weight: 500;
    color: var(--accent-hover);
}