/* General Styling */
body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: rgba(30, 41, 59, 0.95) !important;
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link {
    font-weight: 500;
    color: #fff;
}

.sidebar .nav-link:hover {
    color: #38bdf8;
}

/* Accordion Styling */
.accordion-button:not(.collapsed) {
    background-color: rgba(56, 189, 248, 0.1) !important;
    color: #38bdf8 !important;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.1);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.25) !important;
    color: #fff !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Metric Cards */
.metric-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.border-left-primary {
    border-left: 0.25rem solid #38bdf8 !important;
}

.border-left-success {
    border-left: 0.25rem solid #4ade80 !important;
}

.border-left-info {
    border-left: 0.25rem solid #818cf8 !important;
}

.border-left-warning {
    border-left: 0.25rem solid #fbbf24 !important;
}

/* Main Content */
main {
    margin-left: 0;
}

@media (min-width: 768px) {
    main {
        margin-left: 240px;
    }
}

/* Card Styling */
.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Table Styling */
.table-dark {
    background-color: rgba(0, 0, 0, 0.2);
}

.table-dark td, .table-dark th {
    border-color: rgba(255, 255, 255, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.total-row {
    background-color: rgba(56, 189, 248, 0.1) !important;
    font-weight: bold;
}

/* Tabs */
.nav-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-tabs .nav-link {
    color: #94a3b8;
    border: 1px solid transparent;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.nav-tabs .nav-link:hover {
    color: #38bdf8;
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-tabs .nav-link.active {
    color: #38bdf8;
    background-color: rgba(56, 189, 248, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Value Colors */
.value-positive {
    color: #4ade80 !important;
}

.value-negative {
    color: #f87171 !important;
}

/* Navbar */
.navbar-dark {
    background-color: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Chart Canvas */
canvas {
    max-height: 300px;
}

/* Tooltip info icons */
.bi-info-circle {
    color: #64748b;
    cursor: help;
    font-size: 0.9em;
    transition: color 0.2s ease;
}

.bi-info-circle:hover {
    color: #38bdf8;
}
