@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');
html{
    margin: 0;
    padding: 0;
}
.cutoff{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0px;
    left: 0px;
    background: #f8f9fa;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    width: 240px;
    height: 100%;
}

.dashboard-icon {
    width: 100%;
    height: 40px;
    color: #333;
    border-top: 1px solid #ccc;
    border-radius: 0px;
    display: flex;
    align-items: center;
    font-size: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dashboard-icon i{
    text-align: center;
    width: 40px;
}

.dashboard-icon label{
    padding-left: 10px;
}

.dashboard-icon:hover {
    background: darkred;
    color: white;
    border-color: white;
}


.btn-excel{
    position: absolute;
    top: 40px;
    left: 400px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

body {
    position: relative;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #333333;
    background-color: #f9f9f9;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.filters{
    width: 100%;
    border :  1px darkgray solid;
    border-radius:  0;
    background: white;
    padding: 4px 2px 4px 2px;
    font: inherit;
    font-size: 1em;
    font-weight: normal;
}
.filters:focus {
    outline: 2px solid darkred;
    outline-offset: -2px;
}

table {
    width: 600px;              /* Fixed width in pixels */
    table-layout: fixed;       /* Prevent automatic column resizing */
}
.btn-action{
    background: none;
    border: none;
    cursor:  pointer;
}
.centered{

}
td {
    text-align: left;
    border: 1px solid #ccc;
    padding: 4px;
    position: relative;
    cursor: pointer;
}
td[contenteditable]:focus {
    outline: 2px solid darkred;  /* Custom blue outline */
    outline-offset: -2px;          /* Optional spacing */
}
th{
    padding: 2px;
    text-align: left;
}

.radio-group {
    display: flex;
    gap: 12px;
    padding: 12px 0;
}

.styled-radio {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    --saturation: 70%;
    --lightness: 50%;
    border: 2px solid hsl(var(--hue, 0), var(--saturation), var(--lightness));
    background-color: hsl(var(--hue, 0), var(--saturation), var(--lightness));
    position: relative;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 0 1px #fff;
}

.styled-radio:checked::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: #ffffffee;
    border-radius: 50%;
}




/* General styled checkboxes */
.styled-checkbox {
    appearance: none;
    top : 6px;
    left: 2px;
    width: 16px;
    height: 16px;
    border: 1px solid #aaa;
    background-color: #eee;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.styled-checkbox:checked {
    background-color: #666;
    border-color: #444;
}

.styled-checkbox::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 4px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

.styled-checkbox:checked::after {
    opacity: 1;
}

.menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #f9faf9;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 8px;
    z-index: 100;
    display: none;
    min-width: 100px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.menu label {
    display: block;
}
.menu button {
    margin-top: 5px;
    width: 100%;
}
.menu hr {
    margin: 5px 0;
}

.line-with-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px; /* adjust as needed */
    margin: 20px auto;
}

.line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, #333);
}

.line.fade {
    /* fade effect from the circle outwards */
    background: linear-gradient(to right, #333, transparent);
}

.line-with-circle .line:first-child {
    background: linear-gradient(to left, #333, transparent);
}

.circle {
    width: 30px;
    height: 30px;
    background: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin: 0 10px;
    flex-shrink: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url(../../images/team_bottom_right.jpg) no-repeat center center;
    background-size: cover;
    filter: blur(10px);
    opacity: 0.5;
    z-index: -1;
}

.value-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 10px;
    background: #f9f9f9;
    position: relative;
    font-family: sans-serif;
}

.value-display {
    cursor: pointer;
    padding: 4px 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
    min-width: 200px;
    text-align: center;
    user-select: none;
}

.arrow-button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    margin: 0 4px;
    color: #333;
}

.dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    border: 1px solid #ccc;
    background: white;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    border-radius: 4px;
    display: none;
}

.dropdown div {
    padding: 6px 10px;
    cursor: pointer;
}

.dropdown div:hover {
    background: #eee;
}

/* Scrollbar container */
::-webkit-scrollbar {
    width: 12px;              /* width of the vertical scrollbar */
    height: 12px;             /* height of the horizontal scrollbar */
}

/* Scrollbar track (background) */
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;      /* rounded corners on track */
}

/* Scrollbar thumb (the draggable part) */
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;      /* rounded corners on thumb */
}

/* On hover */
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.hidden {
    opacity: 0;
    pointer-events: none; /* Prevent interaction when hidden */
    transition: opacity 0.4s ease;
    display: none; /* Completely remove from layout */
}

.show {
    display: block;  /* or inline-block / flex depending on your element */
    opacity: 1;
    pointer-events: auto;
}

#table-sections {
    user-select: none;
    table-layout: fixed;
    border-collapse: separate;
    color:black;
    width: unset;
    border-spacing: 2px;
}
#table-sections th,
#table-sections td {
    font-size: 11px;
    min-height: 25px;
    min-width: 40px;
    padding: 2px;
    background: #f8f9fa;
    background-clip: padding-box;
    border :0.5px solid #ddd;

}

#table-departments {
    user-select: none;
    table-layout: fixed;
    border-collapse: separate;
    color:black;
    width: unset;
    border-spacing: 2;
}
#table-teachers{
    border-collapse: separate;
    border-spacing: 2;
    font-size: 12px;
}
#table-students{
    border-collapse: separate;
    border-spacing: 2;
    font-size: 12px;
}
#table-teams{
    font-size: 12px;
}
#table-teams th, td{
    background: white;
    border: 1px solid #ccc;
}
#table-teams tr td:last-child,
#table-teams tr th:last-child {
    background: none !important;
    border: none !important;
}

#table-departments th,
#table-departments td {
    font-size: 11px;
    min-height: 25px;
    min-width: 25px;
    padding: 2px;
    background: #f8f9fa;
    background-clip: padding-box;
    border :0.5px solid #ddd;

}

#table-profiles {
    user-select: none;
    table-layout: fixed;
    border-collapse: separate;
    color:black;
    width: unset;
    border-spacing: 2;
}

#table-profiles th,
#table-profiles td {
    font-size: 11px;
    min-height: 25px;
    min-width: 25px;
    padding: 2px;
    background: #f8f9fa;
    background-clip: padding-box;
    border :0.5px solid #ddd;

}

.sticky-header {
    border :0.5px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 2;
    min-width: 35px;
}

.sticky-cell {
    position: sticky;
    z-index: 2;
    background: white;
    border: 0.5px solid #ddd;
}

.sticky-column {
    border: 1px solid #ddd;
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 1;
    min-width: 80px;
}
.sticky-header.sticky-column {
    z-index: 3;
}

.student-number-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    text-align: left;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
}
.student-number-input::selection {
  background: lightgray;
}

/* Remove spinner arrows (Chrome, Edge, Safari) */
.student-number-input::-webkit-outer-spin-button,
.student-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove spinner arrows (Firefox) */
.student-number-input[type=number] {
    -moz-appearance: textfield;
}