@font-face {
    font-family: 'BebasNeue';
    src: url('/_content/GRappHybrid.Shared/fonts/Bebas_Neue/BebasNeue-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/_content/GRappHybrid.Shared/fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --light-blue: #5F85BF;
    --light-red: #DE594A;
    --light-grey: #E2E2E2;
    --light-green: #72BF4B;
    --dark-blue: #0B1633;
    --dark-red: #691E1A;
    --dark-grey: #383838;
    --dark-green: #163319;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--light-red);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border-color: black;
    border-width: 0px;
    transition: background 0.3s ease;
    user-select: none !important;
    font-family: 'BebasNeue', sans-serif;
    letter-spacing: 1px;
    font-size: 1.25rem;
}

    .btn-primary:disabled, .btn-primary.disabled {
        display: inline-block;
        padding: 0.5rem 1rem;
        background: var(--light-red);
        color: white;
        text-decoration: none;
        border-radius: 4px;
        border-color: black;
        border-width: 0px;
        transition: background 0.3s ease;
    }

    .btn-primary:active, .btn-primary:focus, .btn-primary:hover {
        background: #d62828 !important;
        border-color: black !important;
        border-width: 0px;
        box-shadow: none !important; /* remove Bootstrap's blue glow */
    }

.spinner-border {
    background: var(--light-red);
}

.btn-link {
    padding: 0;
}



    .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;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'BebasNeue', sans-serif;
    letter-spacing: 1px;
}

h1{
    font-size: 3rem;
}

h2{
    font-size: 2rem;
}

h3{
    font-size: 1.5rem;
}

h4{
    font-size: 1.25rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: .75rem;
}

p, li, label, input, select, textarea, button, a, .form-control-plaintext {
    font-family: 'Poppins', sans-serif;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    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;
}

.form-control {
    border: 1px solid rgba(0,0,0,0.2);
}

/* Hide on small screens (e.g., less than 768px) */
@media (max-width: 767px) {
    .hide-on-small {
        display: none !important;
    }
}

/* Show only on small screens */
@media (min-width: 768px) {
    .show-on-small {
        display: none !important;
    }
}

/* Hide on large screens (e.g., greater than or equal to 768px) */
@media (min-width: 768px) {
    .hide-on-large {
        display: none !important;
    }
}

/* Show only on large screens */
@media (max-width: 767px) {
    .show-on-large {
        display: none !important;
    }
}

/* overlay */
.popup-overlay {
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    display: flex;
    align-items: center; /* center vertically on larger screens */
    justify-content: center;
    padding: 10px; /* ensures space on small screens */
    background-color: rgba(0,0,0,0.6);
    z-index: 1000;
    box-sizing: border-box;
}

.popup-header {
    display: flex;
    justify-content: space-between; /* Pushes first item to left, last to right */
    align-items: start; /* Vertically centers items */
    width: 100%;
}

/* popup box */
.popup-container {
    width: min(600px, 100%);
    max-width: 600px;
    /* prefer modern small-viewport-aware unit, fallback to 100vh */
    max-height: calc(100svh - 2rem);
    max-height: calc(100vh - 2rem); /* fallback for older browsers (kept after svh for compatibility) */
    overflow-y: auto; /* make the content scrollable if it's tall */
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    box-sizing: border-box;
    margin-top: auto;
    margin-bottom: auto;
}

    /* make inner elements obey the box model */
    .popup-container * {
        box-sizing: border-box;
    }

/* mobile full-screen tweak */
@media (max-width: 480px) {
    .popup-container {
        width: 100%;
        max-width: none;
        height: 100svh;
        max-height: 100svh;
        max-height: 100vh; /* fallback */
        border-radius: 0;
        padding: calc(env(safe-area-inset-top) + 1rem) 1rem calc(env(safe-area-inset-bottom) + 1rem);
    }
}

.skeleton-text {
    display: inline-block;
    height: 1em; /* same height as text */
    width: 100%;
    max-width: 18rem; /* control line length */
    background-color: lightgray;
    border-radius: 4px;
}

.skeleton-image {
    background-color: lightgray;
}


.calendar-buttons-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: 20px !important;
    margin-right: 20px;
    margin-left: 20px;
}

.calendar-filter-buttons {
    display: flex;
    align-self: center;
}

.calendar-view-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    align-self: center;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

    .calendar-view-tabs button {
        min-width: max-content;
        white-space: nowrap;
        background-color: inherit;
        float: left;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 5px;
        transition: 0.3s;
    }

        /* Change background color of buttons on hover */
        .calendar-view-tabs button:hover {
            background-color: #ddd;
        }

        /* Create an active/current tablink class */
        .calendar-view-tabs button.active {
            background-color: #ccc;
        }