img.menu-logo {
    height: 50px;
    width: auto;
    display: block;
}

.centered {
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.bg-blurred {
    background-color: rgba(255, 255, 255, 0.75);
    /* Lighten background */
    backdrop-filter: blur(8px);
}

.fg-blurred {
    -webkit-filter: blur(4px);
    filter: blur(4px);
    filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius='4');
}

/* Navigational Menu */
.navbar-brand {
    float: left;
    height: 50px;
    padding: 0px;
    font-size: 18px;
    line-height: 20px;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: white;
    background-color: #4a4a4a;
    border: 1px solid #4a4a4a;
}

.nav-link {
    display: block;
    padding: .5rem 1rem;
    color: #4a4a4a;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.nav-tabs .nav-link {
    margin-bottom: -1px;
    background: 0 0;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}

.nav-link:focus,
.nav-link:hover {
    color: #0a58ca;
}

.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
    border: 1px solid #4a4a4a;
    isolation: isolate;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Cards */
.card-header {
    padding: .5rem 1rem;
    margin-bottom: 0;
    background-color: rgba(0, 174, 255, 0.432);
    border-bottom: 1px solid rgba(0, 0, 0, .125);
}

/* Datepicker */
.lightpick__day.is-available {
    font-weight: bold;
    background-color: rgba(0, 255, 13, 0.253);
    /* border-radius: 25px; */
}

/* Calendar Tooltip Styles */
.lightpick__day--disabled,
.lightpick__day.is-disabled {
    position: relative;
    cursor: help !important;
}

.lightpick__day--disabled::after,
.lightpick__day.is-disabled::after {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 200px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

/* Fallback using data-tooltip attribute */
.lightpick__day[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(33, 37, 41, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 200px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.lightpick__day[data-tooltip]:hover::after {
    opacity: 1;
}

.lightpick__day[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(33, 37, 41, 0.95);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: 1051;
}

.lightpick__day[data-tooltip]:hover::before {
    opacity: 1;
}

.lightpick__day--disabled:hover::after,
.lightpick__day.is-disabled:hover::after {
    opacity: 1;
}

/* Tooltip arrow */
.lightpick__day--disabled::before,
.lightpick__day.is-disabled::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(33, 37, 41, 0.95);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: 1051;
}

.lightpick__day--disabled:hover::before,
.lightpick__day.is-disabled:hover::before {
    opacity: 1;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .lightpick__day--disabled::after {
        font-size: 10px;
        padding: 6px 10px;
        max-width: 150px;
    }
}

/* Ensure tooltips don't get cut off at calendar edges */
.lightpick {
    overflow: visible !important;
}

.lightpick__months {
    overflow: visible !important;
}

/* Data Tables */
table.dataTable th {
    /* font-size: 12px;
    font-size: 1.1vw; */
}

table.dataTable td {
    position: relative;
}

.transpose tbody tr {
    margin-right: -.27em;
}

.transpose th,
.transpose td {
    padding: .1rem .1rem;
    border-bottom-color: black;
    /* width: 20vw; */
}

.transpose tr.odd {
    box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.05);
}

.transpose .no-data {
    color: #868686;
    border-bottom-color: black !important;
    font-style: italic;
}

.table tr.highlight-salmon,
td.highlight-salmon {
    background-color: #fa807246;
}

.table tr.highlight-yellow,
td.highlight-yellow {
    background-color: #fbff00c0;
}

.table tr.highlight-orange,
td.highlight-orange {
    background-color: #ff6600d0;
}

.table tr.highlight-pink,
td.highlight-pink {
    background-color: #ff0090c0;
}

/* FA icons with no background */
.inline-icon {
    border: none;
    background: none;
    font-size: 18px;
}

@media (max-width: 768px) {
    .inline-icon {
        font-size: 24px;
        /* Increase font size for mobile */
    }
}

/* Hide edit button until hover */
.hover-edit {
    visibility: hidden;
}

/* when .hover-editable class is hovered, show .hover-edit */
.hover-editable:hover,
.hover-editable:hover .hover-edit,
.hover-editable .hover-edit:hover {
    color: blue;
    visibility: visible;
}

/*  Colors */

.red {
    color: red;
}

.green {
    color: green;
}

.hover-red:hover {
    color: red;
}

.hover-green:hover {
    color: green;
}

.hover-blue:hover {
    color: blue;
}

.fade-green {
    animation: bgcolor 2s 0s linear;
}

@keyframes bgcolor {
    from {
        background-color: rgba(0, 255, 13, 0.253);
    }

    to {
        background-color: inherit;
    }
}

/* Select2 container height (matches Bootstrap) */
.select2-container .select2-search--inline .select2-search__field {
    height: 28px;
}

.select2-container {
    padding: 0px;
}

.select2-container .select2-selection--single {
    height: 38px !important;
    line-height: 30px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px !important;
}

/* Checkbox */
.big-checkbox {
    height: 30px;
    width: 60px !important;
}

/* Custom popovers */
.popover {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    position: absolute;
    padding: 10px;
    min-width: 30vw;
}

.popover-content {
    margin-right: 20px;
}

.popover-arrow.right {
    position: absolute;
    top: 50%;
    /* This is overwritten on draw */
    right: -16px;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 10px 0 10px 10px;
    /* Draws triangular border */
    border-color: transparent transparent transparent #fff;
}

.popover-arrow.left {
    position: absolute;
    top: 50%;
    /* This is overwritten on draw */
    left: -16px;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 10px 10px 10px 0;
    /* Draws triangular border */
    border-color: transparent #fff transparent transparent;
}

/* Custom Select2 classesfor the moveEventPicker modal */
#select2-moveEventPicker+.select2-container .select2-selection--single {
    height: 62px !important;
}

#select2-moveEventPicker+.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px !important;
    padding: 6px 10px;
}

.select2-selection__rendered {
    word-wrap: break-word !important;
    text-overflow: inherit !important;
    white-space: normal !important;
}

.highlighted-text {
    display: inline-block;
    border-radius: 4px;
    padding: 1px 5px;
}

/* Ratio Bar Styles */
.ratio-loading {
    transition: opacity 0.2s ease-in-out;
}

.ratio-data-row {
    transition: opacity 0.2s ease-in-out;
}

/*Hides bottom border of last row */
.ratio-data-row:not([style*="display: none"]):not(:has(~ .ratio-data-row:not([style*="display: none"]))) td {
    border-bottom: none !important;
    border-radius: 0 0 15px 15px;
}

.sticky-col-mobile {
    position: sticky;
    left: 0;
    z-index: 10;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.count-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.time-badge {
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 60px;
}

.ratio-data-row:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

@media (max-width: 767.98px) {
    .table-responsive {
        border-radius: 8px;
    }

    .sticky-col-mobile {
        min-width: 80px !important;
        max-width: 80px;
    }

}

/* AM - Blue */
.ratio-data-row:nth-child(3) .count-display .fs-5 {
    color: #198754 !important;
}

/* Midday - Green */
.ratio-data-row:nth-child(4) .count-display .fs-5 {
    color: #dc3545 !important;
}

/* PM - Red */
.ratio-data-row td:last-child .count-display .fs-5 {
    color: #fd7e14 !important;
    /* Orange for teacher counts */
    font-weight: 700 !important;
}
