.app-background::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("SMC_background.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: local;
    opacity: 1;
    z-index: -1;
}

.map-panel {
    background: rgba(255, 255, 255, 1);
    padding: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
    margin-top: -12vh;
}

.map-panel iframe {
    display: block;
    border: none;
    overflow: hidden;
}

.sidebar-panel {
    position: relative;
    display: block;
    padding: 0 !important;
    margin: 0 !important;
    margin-top: -12vh !important;
    min-height: 0;
    align-self: stretch;
}

.sidebar-card {
    position: absolute;
    top: 7vh;
    bottom: 0;
    left: 40px;
    right: 0;
    width: 100%;
    margin: 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 0 !important;
    border: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.sidebar-card .card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 1.5rem 3rem 1.5rem 1.3rem !important;
    position: relative;
    z-index: 10;
}

.app-background {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    height: 100vh;
}

.app-background .row {
    margin: 0 !important;
}

.app-background .col, .app-background .col-3, .app-background .col-9 {
    padding: 0 !important;
    margin: 0 !important;
}

.top-logo-banner {
    position: absolute;
    z-index: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    height: 14vh;
    min-height: 100px;
    padding: 3rem 1rem;
    margin: 5px;
    background: rgba(255, 255, 255, 0);
    box-sizing: border-box;
    transform: translateX(50px) translateY(100px);
}

.logo-image {
    height: 120px;
    width: auto;
    max-width: 80%;
    object-fit: contain;
}

/* .logo-image-smc {
    max-height: 90px;
}

.logo-image-tpi {
    max-height: 100px;
} */

/* Wrapper */
.tabs-parent {
    margin-top: 1.5rem;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.tabs-wrapper {
    border: none !important;
}

/* Individual tabs */
.custom-tab {
    background: #00cb7a !important;
    color: white;
    border: 1px solid #00cb7a !important;
    border-radius: 12px 12px 0 0;
    padding: 20px 4px;
    margin-right: 10px;
    margin-bottom: 10px;

    font-weight: 600;
    font-size: 15px;

    height: 20vh;
    min-width: 120px;


    transition:
        background .2s,
        transform .2s,
        box-shadow .2s;

    box-shadow: 0 3px 10px rgba(0,0,0,.10);

    position: relative;
    z-index: 1;
}

/* Selected tab */
.custom-tab--selected {
    background: #f8f8f8 !important;
    color: #222 !important;

    border: 1px solid #dddddd !important;
    border-bottom: none !important;

    box-shadow:
        0 8px 18px rgba(0,0,0,.10);

    transform: translateY(1px);

    z-index: 20;
}

/* Hover */
.custom-tab:hover {
    background: rgba(0,203,122,.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,203,122,.25);
}

.chart-card {
    border: none;
    border-radius: 12px;
    background: #ffffff;
}

.accent-heading {
    color: #004137;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding-left: 4px;
    border-left: 3px solid #00f691;
}

.chart-card-title {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.chart-card + .chart-card {
    margin-top: 1rem;
}

.info-circle {
    position: absolute;
    bottom: -5px;
    right: -5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #004137;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 6px;
    box-shadow: 0 4px 10px rgba(0, 65, 55, 0.8);
}

.info-circle-map {
    position: absolute;
    bottom: 20px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #004137;
    color: white;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 6px;
    box-shadow: 0 4px 10px rgba(0, 65, 55, 0.35);
}

.sidebar-title-header {
    background-color: #f8f9fa;   /* subtle tint, or use a brand color */
    border-bottom: 2px solid #dee2e6;
    padding: 16px 20px;
}

.sidebar-title-header h3 {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #212529;
}

.btn-download {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #004137;
    border-radius: 6px;
    background: #004137;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 65, 55, 0.16);
    transition: background-color 0.2s ease, border-color 0.2s ease,
        box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-download:hover {
    border-color: #00a86b;
    background: #00a86b;
    box-shadow: 0 5px 12px rgba(0, 168, 107, 0.22);
    transform: translateY(-1px);
}

.btn-download:focus-visible {
    outline: 3px solid rgba(0, 246, 145, 0.35);
    outline-offset: 2px;
}

.btn-download:active {
    box-shadow: 0 2px 5px rgba(0, 65, 55, 0.16);
    transform: translateY(0);
}

.app-background {
    min-width: 1000px;
    min-height: 1000px;
    height: 100vh;
}

:root {
    --accent: #00a86b;
    --accent-tint: rgba(0, 246, 145, 0.7);
}

/* Definition titles */
.accent-text {
    color: var(--accent);
}

/* Accordion: the open (selected) item */
.accordion {
    --bs-accordion-active-color: #000;
    --bs-accordion-active-bg: var(--accent-tint);
    --bs-accordion-btn-focus-border-color: var(--accent);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(0, 246, 145, 0.7);
}

/* Accordion: the arrow icon on the open item (Bootstrap hardcodes it blue) */
.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300c374'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.sidebar-card a {
    --bs-link-color-rgb: 0, 168, 107;
    --bs-link-hover-color-rgb: 0, 128, 82;
    color: #00a86b;
}

.sidebar-card a:hover {
    color: #008052;
}
