html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow: hidden;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

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

body {
    background-color: #3a82d4 !important;
}

.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;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI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LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.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;
}

input[placeholder*='*a*']::placeholder {
    content: '';
    display: none;
}

/* Align grid footer content to spread left and right */
.bb-grid-footer {
    display: flex !important;
    justify-content: space-between !important;
    flex-wrap: wrap;
    align-items: center;
}

/* Group page size selector and item range info on the right */
.bb-grid-page-size {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.pagination {
    --bs-pagination-color: #212529 !important;
}

.navbar-brand {
    font-size: 1.3rem !important;
    font-weight: 700;
    
}
.container-fluid {
    padding-top: 0.5rem !important
}
/* Hide filter pattern text inside dropdown items */
.bb-grid .dropdown-menu .dropdown-item {
    font-size: 0; /* Hide text */
}

    .bb-grid .dropdown-menu .dropdown-item i {
        font-size: 1rem; /* Keep icon size normal if using icons */
    }

.bb-grid .dropdown-menu .dropdown-item {
    color: transparent !important; /* Make text invisible */
    text-shadow: none !important; /* Remove shadow that may reveal text */
}

    /* Optional: maintain icon visibility if you add them */
    .bb-grid .dropdown-menu .dropdown-item i {
        color: inherit !important;
        font-size: 1rem !important;
    }

/* Base: hide original label text */
.bb-grid .dropdown-menu .dropdown-item {
    color: transparent !important;
    position: relative;
}

/* Remove border from logout button and refine look */
.logout-icon {
    background-color: transparent;
    border: none;
    color: white;
    padding: 0.3rem;
}

    .logout-icon:hover {
        color: #ffc107; /* yellow on hover, change as needed */
    }

.custom-header {
    background-color: #225c88; /* matches existing header blue */
    height: 70px;
}

button.btn.btn-light.me-1.d-flex.dropdown-toggle.bb-grid-filter {
    /*    display: none !important;*/
}

.custom-filter-icon span:nth-child(2) {
    display: none;
}

.page-size-control {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    z-index: 1;
    display: flex;
    align-items: center;
    font-size: 1rem; /* Increased font size */
    font-weight: 500;
}

.page-size-label {
    padding: 0.375rem;
}

.custom-page-size-select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    display: block;
    width: auto;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.log-file-card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .log-file-card:hover {
        transform: scale(1.02);
        background-color: #f1f1f1;
    }

.bi[b-4jzdix4uym] {
    top: -14px !important;
}
.fw-semibold {
    font-weight: 600;
}

.log-container {
    background-color: #ffffff;
    height: 600px;
    overflow-y: auto;
}

.log-sidebar {
    background-color: #f8f9fa;
    padding: 1rem;
    height: 100%;
}

.grid-wrap td,
.grid-wrap th,
.grid-wrap .table td,
.grid-wrap .table th {
    white-space: normal !important;
    word-break: break-word !important;
    max-width: 205px; /* Optional: Prevent wide columns */
    vertical-align: top;
}

/* Restrict manual typing in date inputs (allow calendar only) */
.calendar-only {
    pointer-events: none;
}

    .calendar-only::-webkit-calendar-picker-indicator {
        pointer-events: all;
    }

.modal .rounded-circle {
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.2);
}


/* Custom modal size and positioning */
.custom-delete-modal .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0 auto;
    max-width: 500px;
}

.custom-delete-modal .modal-content {
    border-radius: 12px;
    padding: 0.5rem;
}

/* Red ring around icon */
.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.4);
}

.bb-grid th input[type="datetime-local"] {
    max-width: 140px;
    width: 100%;
    font-size: 0.85rem;
}

/* Apply consistent style to all filter boxes */
.bb-grid th input,
.bb-grid th select {
    width: 100%;
    box-sizing: border-box;
}

th.grid-col-generated-on input[type="text"] {
    max-width: 140px;
    width: 100%;
    font-size: 0.85rem;
    box-sizing: border-box;
}
    th.grid-col-generated-on input[type="datetime-local"] {
        max-width: 140px;
    }
/*input.form-control {
    width: 125px;
}*/

span.bi {
    top: -14px !important;
}

.table-responsive:has(.bb-dropdown-menu-enum) {
    overflow: auto;
}

/* Navbar styles */
.custom-navbar {
    padding-left: 1rem !important;
}

/* Vertical nav container scroll and layout */
.custom-nav-container {
    margin-top: 0.5rem;
    max-height: 44rem;
    height: inherit;
}

/* Nav links */
.nav-link {
    color: white;
}

/* Logo and footer section */
.nav-footer {
    margin-top: auto;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    font-size: small;
    color: white;
}

/* Logo image styling */
.nav-logo {
    max-height: 40px;
    margin-bottom: 0.5rem;
}

@media screen and (max-width: 1760px) and (max-height: 870px) {
    /* Example: Adjust nav height */
    .custom-nav-container {
        max-height: 40rem !important;
    }

    /* Example: Resize logo for this resolution */
    .nav-logo {
        max-height: 36px;
    }

    /* Example: Reduce padding in footer */
    .nav-footer {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    /* You can also hide/show elements */
    .some-element {
        display: none;
    }
}

.navbar-brand, .navbar-brand:focus {
    font-size: 1.3rem !important;
    font-weight: 700;
    color: #ffffff
}

.bb-toast-container {
    z-index: 9999 !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
table td {
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: nowrap;
    max-width: 130px;
    width: auto;
}


.page-size-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
}

.page-size-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.custom-page-size-select {
    width: auto; /* adapts to content */
    min-width: 60px;
}
.sidebar {
    overflow-y: visible !important;
}