/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1a237e, #283593);
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Section Styles */
section {
    padding: 1rem 0;
    margin-bottom: 2rem;
}

section h2 {
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: #1a237e;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

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

.card-header {
    font-weight: 600;
    border-bottom: none;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}

.card-body {
    padding: 1.5rem;
}

/* Chart Containers */
.chart-container {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

/* Form Controls */
.form-range::-webkit-slider-thumb {
    background: #1a237e;
}

.form-range::-moz-range-thumb {
    background: #1a237e;
}

.form-range::-ms-thumb {
    background: #1a237e;
}

/* Button Styles */
.btn-primary {
    background-color: #1a237e;
    border-color: #1a237e;
}

.btn-primary:hover {
    background-color: #0d1b69;
    border-color: #0d1b69;
}

.btn-outline-primary {
    color: #1a237e;
    border-color: #1a237e;
}

.btn-outline-primary:hover {
    background-color: #1a237e;
    border-color: #1a237e;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a237e, #283593);
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .chart-container {
        height: 300px !important;
    }
}

/* Print Styles */
@media print {
    header, nav, footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .chart-container {
        break-inside: avoid;
        height: 400px !important;
    }
}

/* Accessibility Improvements */
:focus {
    outline: 3px solid #c7d2fe;
    outline-offset: 2px;
}

.btn:focus, .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(26, 35, 126, 0.25);
}