﻿/* ===== Site.css ===== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

html, body {
    font-family: 'Segoe UI','Roboto', sans-serif;
    color: #828e9d !important;
}

/* Design tokens for the sidebar look */
:root {
    --sidebar-logo-h: 96px; /* height of the white logo bar; tweak as needed */
    --sidebar-peach: #FFDAB9; /* peach */
    --sidebar-red: #bf1b2c; /* menu item red */
    --sidebar-hover: #a8e3fa; /* light-sky blue (Sail) */
}

/* Headings */
h1, h2, h4, h5, h6,
.h1, .h2, .h4, .h5, .h6 {
    color: #535d6a !important;
    padding-top: 25px !important;
}

h3, .h3 {
    color: #ffffff !important;
    padding-top: 25px !important;
}

/* Navbar refinements */
.top-row .dropdown-toggle {
    vertical-align: middle;
}

.navbar .nav-link {
    color: #FFFFFF !important;
}

.navbar .navbar-brand {
    background-color: #BF4E30 !important;
}

.navbar-toggler,
.navbar-toggler:checked {
    background-color: #BF4E30 !important;
}

/* ===== LEFT SIDEBAR =====
   IMPORTANT: Removed any `.sidebar[b-xxxxx]` rules so app-wide overrides are predictable.
   This gradient gives you:
   - White band at the top (behind the logo)
   - Peach below for the navigation area
*/
.sidebar {
    background: linear-gradient(#ffffff 0 var(--sidebar-logo-h), var(--sidebar-peach) var(--sidebar-logo-h) 100%) !important;
    background-image: none !important;
}

    /* Menu item colors inside the sidebar */
    .sidebar a,
    .sidebar .nav-link {
        color: var(--sidebar-red) !important; /* red items */
        text-decoration: none;
    }

        .sidebar a:hover,
        .sidebar .nav-link:hover {
            color: var(--sidebar-hover) !important; /* light-sky blue on hover */
        }

/* Cards */
.b-card.mainmenu-card {
    background-color: #4A2C3A !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 1rem !important;
    color: blue !important;
}

.b-card-header {
    background-color: transparent !important;
    color: blue !important;
    border-bottom: none !important;
    padding: 1rem;
}

    .b-card-header h4 {
        margin-bottom: 0;
    }

/* Lists inside cards */
.b-list-group-item {
    background-color: transparent !important;
    border: none !important;
    padding: 0.5rem 1rem;
}

    .b-list-group-item a {
        color: blue !important;
        text-decoration: none;
    }

        .b-list-group-item a:hover {
            text-decoration: underline;
        }

/* Quick Menu link colors */
.mainmenu-card .b-list-group-item a {
    color: #fff !important;
}

    .mainmenu-card .b-list-group-item a:hover {
        color: #a8e3fa !important;
        text-decoration: underline;
    }

/* Buttons & links */
.btn-slate {
    background-color: #708090;
    color: #fff;
    border: none;
}

    .btn-slate:hover {
        background-color: #a8e3fa;
    }

.link-slate {
    color: #708090;
    text-decoration: none;
}

    .link-slate:hover {
        color: #a8e3fa;
        text-decoration: underline;
    }

/* Export button */
.btn-export {
    background-color: #28a745 !important;
    color: #ffffff !important;
    border: none !important;
    font-size: .875rem !important;
    padding: .25rem .5rem !important;
    line-height: 1.5 !important;
    border-radius: .2rem !important;
    display: inline-flex;
    align-items: center;
    gap: .375rem;
}

    .btn-export:hover, .btn-export:focus {
        background-color: #a8e3fa !important;
        color: #ffffff !important;
        text-decoration: none !important;
        box-shadow: none !important;
    }

    .btn-export:active {
        filter: brightness(.98);
    }

/* Forms */
.form-floating .form-control.custom-gray {
    background-color: #f2f2f2 !important;
    border: 1px solid #ccc !important;
    color: #333 !important;
}

    .form-floating .form-control.custom-gray:focus {
        background-color: #f2f2f2 !important;
        box-shadow: none !important;
        border-color: #999 !important;
    }

/* Custom checkbox */
.chkb-form-check-input {
    position: relative;
    width: 1.2em;
    height: 1.2em;
    appearance: none;
    border: 2px solid #ccc;
    border-radius: .25em;
    outline: none;
    cursor: pointer;
}

    .chkb-form-check-input:checked {
        background-color: #708090;
        border-color: #708090;
    }

    .chkb-form-check-input::after {
        content: '';
        position: absolute;
        top: .1em;
        left: .35em;
        width: .3em;
        height: .6em;
        border: solid white;
        border-width: 0 .2em .2em 0;
        transform: rotate(45deg);
        opacity: 0;
    }

    .chkb-form-check-input:checked::after {
        opacity: 1;
    }

/* Dropdowns */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active {
    background-color: #708090 !important;
    color: #fff !important;
}

/* Layout helpers */
.fixed-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 10px;
}

.scroll-container {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #ccc;
    background-color: #ffffff;
}

.form-section {
    padding: 10px;
    background-color: #f9f9f9;
    border-top: 2px solid #ddd;
}

/* Grid box */
.grid-box {
    border: 1px solid #000;
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: .5rem;
    min-height: 240px;
}

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}

/* Imagery */
.home-faint-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: .08;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    z-index: 0;
}

/* Containers on very large screens */
@media (min-width: 1400px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
        max-width: 1750px;
    }
}
