/*--------------------------------------------------------------
# Typography & Base
--------------------------------------------------------------*/
:root {
    --bs-body-font-family: 'Noto Sans', sans-serif;
    --brand-blue: #1f445d;
    --brand-blue-light: #1c445c;
    --brand-hover: #e9f1f6;
    --brand-white: #ffffff;
}

.font-middleburg {
    font-family: 'Noto Sans', sans-serif;
}

body,
button,
input,
select,
textarea {
    font-family: var(--bs-body-font-family);
    margin: 0;
    background-color: #f6f6f6;
    color: var(--brand-blue-light);
}

/*--------------------------------------------------------------
# Layout Containers
--------------------------------------------------------------*/
.layout-foreground {
    position: relative;
    z-index: 100;
}

.main-content {
    padding: 5px 5px;
    text-align: center;
	background-color: #ffffff;
}

.section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
header {
    background: var(--brand-white);
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1050;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area img {
    height: 50px;
}

.welcome-meta {
    margin-left: 15px;
    font-size: 14px;
    line-height: 1.3;
}

/*--------------------------------------------------------------
# Navigation Links
--------------------------------------------------------------*/
.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--brand-blue-light);
    font-weight: bold;
}

.nav-links a:hover {
    text-decoration: underline;
}

.nav-links button {
    padding: 5px 12px;
    font-size: 0.95em;
    background-color: var(--brand-blue-light);
    color: var(--brand-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.nav-links button:hover {
    background-color: #163547;
}

select {
    padding: 5px 10px;
    font-size: 0.95em;
}

/*--------------------------------------------------------------
# Chart Layout
--------------------------------------------------------------*/
.chart-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 1100px;
}

.chart-col {
    flex: 1 1 300px;
    max-width: 400px;
    min-width: 280px;
    display: flex;
    justify-content: center;
}

.chart-box {
    width: 100%;
    height: 200px;
}

.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border: 1px dashed #ccc;
    color: #777;
}

/*--------------------------------------------------------------
# Tabs Navigation
--------------------------------------------------------------*/
.middleburg-tabs-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    padding: 0;
    border-bottom: none;
}

.nav-tabs {
    margin-bottom: 0;
    border-bottom: 1px solid rgba(28, 68, 92, 0.15);
}

.nav-tabs .nav-link {
    color: var(--brand-blue-light);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 0.25rem 0.25rem 0 0;
    margin-bottom: -1px;
    background-color: transparent;
    font-family: var(--bs-body-font-family);
}

/* Active tab styling (inverse of .btn-primary:active) */
.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active:focus,
.nav-tabs .nav-link.active:hover {
    background-color: var(--brand-blue);
    color: var(--brand-white);
    border-color: var(--brand-blue) var(--brand-blue) transparent;
    box-shadow: none;
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Dropdown Items (Sub Tabs)
--------------------------------------------------------------*/
.dropdown-menu .dropdown-item {
    color: var(--brand-blue-light);
    font-family: var(--bs-body-font-family);
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background-color: var(--brand-blue);
    color: var(--brand-white);
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: var(--brand-hover);
    color: var(--brand-blue-light);
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-primary {
    background-color: var(--brand-blue) !important;
    border-color: var(--brand-blue) !important;
    color: var(--brand-white) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--brand-white) !important;
    color: var(--brand-blue) !important;
    border-color: var(--brand-blue) !important;
}

.btn-mainstreet {
    padding: 10px 20px;
    background-color: var(--brand-blue);
    color: var(--brand-white);
    border: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.btn-mainstreet:hover,
.btn-mainstreet:focus {
    background-color: var(--brand-white);
    color: var(--brand-blue);
    border: 1px solid var(--brand-blue);
}

/*--------------------------------------------------------------
# Bootstrap Font Enforcement
--------------------------------------------------------------*/
.navbar,
.btn,
select,
.form-control {
    font-family: var(--bs-body-font-family) !important;
}
