@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

html, body {
    font-family: 'Roboto', Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevents body-level scrollbars unless absolutely necessary */

    /* Set general app text defaults using Bootstrap variables for consistency */
    font-size: var(--bs-body-font-size, 1rem);      /* Standard body font size (e.g., 1rem) */
    font-weight: var(--bs-body-font-weight, 400);   /* Standard body font weight (e.g., 400 for Regular) */
    line-height: var(--bs-body-line-height, 1.5);   /* Standard body line height (e.g., 1.5) */
    color: var(--bs-body-color, #212529);          /* Standard body text color (dark) */
    /* Removed: text-align: var(--bs-body-text-align); as it causes error */
}

/* Ensure these elements inherit the base font-family from html, body */
h1, h2, h3, h4, h5, h6,
.navbar-brand,
.nav-link {
    font-family: inherit; /* This makes them use 'Roboto' from html, body */
}

/* --- Specific Styles for NavMenu elements (already largely defined by you) --- */

/* Target the top-row inside NavMenu specifically */
.sidebar .top-row {
    background-color: rgba(0, 0, 0, 0.4); /* Darker background for sidebar header */
    height: 3.5rem; /* Standard height */
    display: flex;
    align-items: center;
    justify-content: space-between; /* To space out navbar-brand and toggler */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Assuming a subtle light border */
}

/* Your custom navbar-brand styling within the sidebar */
.sidebar .navbar-brand {
    font-size: 1.2rem; /* Using your explicit 1.2rem as defined here */
    color: white; /* Your explicit white color */
    /* Font-weight will likely come from Bootstrap's default for navbar-brand
       or you can set it here if you confirm it in dev tools for navbar-brand.
       Commonly 500 (Medium) or 700 (Bold) for brands. */
    font-weight: 700; /* <-- IMPORTANT: CONFIRM THIS VALUE from your navbar-brand's computed style! */
    letter-spacing: normal; /* Standard letter spacing */
}

/* Your custom nav-item/nav-link styling within the sidebar */
.sidebar .navbar-toggler {
    background-color: transparent;
    border: none;
    color: white;
}

.nav-scrollable {
    overflow-y: auto;
    flex-grow: 1;
}

.sidebar .nav-item {
    font-size: 0.9rem; /* Your explicit 0.9rem */
    padding-bottom: 0.5rem;
}

.sidebar .nav-item:first-of-type {
    padding-top: 1rem;
}

.sidebar .nav-item:last-of-type {
    padding-bottom: 1rem;
}

.sidebar .nav-item a {
    color: #d7d7d7; /* Your explicit #d7d7d7 */
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
    font-weight: 400; /* Assuming regular weight for nav links */
}

.sidebar .nav-item a.active {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

.sidebar .nav-item a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.sidebar .nav-item .material-symbols-rounded {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* --- Styles for your custom page header text --- */
.sqn-page-header-text {
    /* Font size should EXACTLY match your `.sidebar .navbar-brand`'s font-size */
    font-size: 1.2rem; /* Matches your explicit .sidebar .navbar-brand font-size */

    /* Font weight should EXACTLY match your `.sidebar .navbar-brand`'s computed font-weight */
    font-weight: 700; /* <-- IMPORTANT: Re-confirm this value from your sidebar .navbar-brand's COMPUTED styles! */

    letter-spacing: normal; /* Standard letter spacing, common for both */
    line-height: 1.2; /* A good default for headings */

    /* Color should be dark to be visible on your white page background */
    color: var(--bs-body-color); /* Uses #212529 from the body, which is dark */

    margin: 0; /* Remove any default margins */
    margin-top: 5px; /* Keep your existing margin-top (will work if element is block/inline-block) */
    padding: 0; /* Remove any default paddings */
}

/* --- Existing layout and other general styles (keep as is) --- */
#app {
    height: 100%;
}

.page {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    flex-grow: 1;
}

.sidebar {
    width: 200px;
    min-width: 200px;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #333;
    color: white;
}

@media (max-width: 640px) {
    .sidebar {
        display: none;
    }
}

@media (min-width: 641px) {
    /* Add responsive width changes here if desired */
}

.main {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    min-width: 0;
}

.top-row {
    flex-shrink: 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.content {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4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    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}