/* assets/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #004ea2;
    --primary-dark: #003370;
    --secondary: #64748b;
    --accent: #2ecc71;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    margin: 0;
}

/* Navbar Enhancements */
.navbar-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    box-shadow: var(--shadow-md);
    padding: 0.5rem 2rem !important;
    height: 80px;
}

.header-tabs .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    border: none !important;
    padding: 1.5rem 1.2rem !important;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.header-tabs .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.header-tabs .nav-link.active {
    color: #fff !important;
    background: transparent !important;
    border-bottom: 4px solid var(--accent) !important;
}

/* Modern Card Style */
.modern-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 2rem; /* Increased from 1.5rem */
    height: 100%;
    transition: box-shadow 0.3s ease;
}

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

/* Dashboard Sidebar/Filter Section */
.filter-panel {
    background: #fff;
    border-right: 1px solid var(--border-color);
    padding: 2.5rem; /* Increased from 2rem */
}

/* Buttons */
.btn-primary-modern {
    background-color: var(--primary);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.75rem; /* Slightly larger */
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary-modern:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* KPI Card Interactivity */
.kpi-card-interactive {
    position: relative;
    overflow: hidden;
}

.kpi-card-interactive:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1) !important;
    background-color: #f8fafc !important;
}

.kpi-card-interactive::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(0,0,0,0.02);
    transition: height 0.3s ease;
}

.kpi-card-interactive:hover::after {
    height: 100%;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #007bff 100%);
    border: none;
    color: white;
    border-radius: 30px;
    padding: 1rem 2.5rem; /* Increased */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Typography */
h1 { font-size: 2.5rem; margin-bottom: 2rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.75rem; margin-bottom: 1.25rem; }
h4 { font-size: 1.5rem; margin-bottom: 1rem; }
h5 { font-size: 1.25rem; margin-bottom: 0.75rem; }

h1, h2, h3, h4, h5 {
    font-weight: 700;
    color: var(--text-main);
}

.section-title {
    border-left: 6px solid var(--primary);
    padding-left: 20px;
    margin-bottom: 40px;
}

.section-title h3 {
    font-size: 2.25rem; /* Large section headers */
    margin: 0;
    letter-spacing: -0.5px;
}

/* One Section Per Page Layout */
.dashboard-section {
    min-height: calc(100vh - 80px); /* Full height minus navbar */
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-section:last-child {
    border-bottom: none;
}

/* Customizing Dash Components */
.Select-control {
    border-radius: 8px !important;
    border-color: var(--border-color) !important;
}

.markdown-content {
    line-height: 1.8;
    color: #475569;
    font-size: 1.1rem;
}

.markdown-content p {
    margin-bottom: 1.5rem;
}

.markdown-content ul, .markdown-content ol {
    margin-bottom: 1.5rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content b, .markdown-content strong {
    color: var(--primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Footer */
.site-footer {
    background: #1e293b !important;
    color: #94a3b8 !important;
    font-size: 0.9rem;
}
