body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}

.dashboard-section {
    margin-bottom: 30px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 500;
    border-radius: 10px 10px 0 0 !important;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

canvas {
    max-width: 100%;
}

table {
    width: 100%;
}

th {
    background-color: #f8f9fa;
}

.positive-change {
    color: #28a745;
}

.negative-change {
    color: #dc3545;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }

    .col-md-6,
    .col-md-3,
    .col-md-4,
    .col-md-8,
    .col-md-12 {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Metric Cards */
.dashboard-section .card .card-body {
    padding: 1.5rem;
}

.dashboard-section .display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Tables */
.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

/* Date Range Inputs */
#startDate,
#endDate {
    min-width: 150px;
}

/* Info Icons and Buttons */
.info-icon {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 0.5rem;
    cursor: pointer;
}

.info-icon:hover {
    color: white;
}

.card-header .info-icon {
    color: rgba(0, 0, 0, 0.6);
}

.card-header .info-icon:hover {
    color: rgba(0, 0, 0, 0.9);
}

.info-btn {
    font-size: 0.85rem;
}

/* Info Modal */
#infoModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h4 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

.info-section .metric-name {
    font-weight: 500;
    color: #495057;
}

.info-section .formula {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    font-family: monospace;
}

.info-section .calculation-steps {
    list-style-type: decimal;
    padding-left: 1.5rem;
}

.info-section .data-source {
    font-style: italic;
    color: #6c757d;
    margin-top: 0.5rem;
}