html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}
.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.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;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    padding-top: calc(var(--navbar-height, 4.5rem) + 1rem);
}

.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;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.625rem;
}

h3 {
    font-size: 1.375rem;
}

h4 {
    font-size: 1.375rem;
    font-family: monospace;
}

/* Base state & Unchecked (Red track, White knob) */
.custom-switch {
    cursor: pointer;
    background-color: #dc3545 !important; /* Bootstrap red */
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='rgba%28255, 255, 255, 0.75%29'/></svg>") !important;
}

.custom-switch[disabled] {
    cursor: not-allowed;
}

/* Checked state (Green track, White knob) */
.custom-switch:checked {
    background-color: #198754 !important; /* Bootstrap green */
    border-color: #198754 !important;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='rgba%28255, 255, 255, 1.0%29'/></svg>") !important;
}

/* Light theme focus ring adjustment */
.custom-switch:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}
.custom-switch:checked:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25) !important;
}

.date-range-filter input[type="date"] {
    background-color: #fff;
    color: #000;
}

.floating-buttons-container {
    position: fixed;
    inset-block-end: var(--floating-buttons-offset, 1.5rem);
    inset-inline-end: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 101000;
}

.floating-buttons-container > button {
    width: 3rem;
    height: 3rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.floating-buttons-container > button:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.white-space-nowrap {
    white-space: nowrap;
}