/* edu connect - root Farben */
:root {
    --edu-blue: #0B72B5;
    --edu-blue-rgb: 11, 114, 181;
    --edu-blue-verylight: #E6F0F7;
    --edu-blue-verylight-rgb: 230, 240, 247;
    --edu-gray-light: #D1D1D1;
    --edu-gray-light-rgb: 209, 209, 209;
    --edu-gray-dark: #58585A;
    --edu-gray-dark-rgb: 88, 88, 90;
    --edu-red: #d11919;
    --edu-red-rgb: 209, 25, 25;
    --edu-yellow: #FFCC33;
    --edu-yellow-rgb: 255, 204, 51;
    --edu-green: #72B50B;
    --edu-green-rgb: 114, 181, 11;
}

.username-egg + .tooltip {
    --bs-tooltip-bg: rgba(var(--edu-blue-rgb), 1);
    --bs-tooltip-color: #fff;
}

.username-egg {
    position: relative;
}

.username-egg::after {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 10px;
    border: 3px solid gold;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,
    rgba(255, 215, 0, 0.6), transparent 70%);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    pointer-events: none;
}

/* Beim Hover sichtbar machen */
.username-egg:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
}



td, th {
    border-right: 1px solid #ccc;
}

td:last-child, th:last-child {
    border-right: none;
}


/** LINK CONTROl **/
a.brand-link,
.user-panel a,
a.classic {
    text-decoration: none;
    color: rgba(11, 114, 181, 1);
}

a.classic:hover {
    transition: all ease .5s;
    color: rgba(11, 114, 181, .8);
    text-decoration: none;
    font-weight: 400;
}

/** LABELS **/
.label-center {
    text-align: center !important;
    width: 100%;
}

a.text-muted:hover {
    color: #5f676e !important;
}


/** LISTS **/
ul.hidden-list:empty {
    visibility: hidden;
}

.external-event {
    box-shadow: 0 0 1px rgba(0, 0, 0, .125), 0 1px 3px rgba(0, 0, 0, .2);
    border-radius: .25rem;
    cursor: move;
    font-weight: 700;
    margin-bottom: 4px;
    padding: 5px 10px;
}

.hidden-list {
    list-style-type: none;
}

.scrollable-list-lg {
    max-height: 40vh;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 5px;
    margin: 10px;
}

.scrollable-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 5px;
    margin: 10px;
}

.file-explorer.scrollable-list {
    max-height: 500px;
    min-height: 178px;
}


/** HELPER **/
.child-mb0>* {
    margin-bottom: 0 !important;
}

::placeholder {
    font-weight: normal;
}


/** FORMULARE **/
.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1500 !important;
    align-items: center;
    justify-content: center;
}

.form-select {
    font-weight: bold !important;
}

.form-check-input:checked {
    background-color: rgba(var(--edu-blue-rgb), 1);
    border-color: rgba(var(--edu-blue-rgb), 1);
}

.form-overlay-position {
    width: calc(50px + 15vw);
    height: calc(50px + 15vw);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000 !important;
}

.input-container {
    display: flex;
    align-items: center;
}

.input-container input {
    margin-right: 10px;
}

input[type=radio][value="1"]:checked,
input[type=radio][value="2"]:checked {
    background-color: rgba(var(--edu-green-rgb), 1);
    border-color: rgba(var(--edu-green-rgb), 1);
}

input[type=radio][value="3"]:checked {
    background-color: rgba(var(--edu-yellow-rgb), 1);
    border-color: rgba(var(--edu-yellow-rgb), 1);
}

input[type=radio][value="4"]:checked,
input[type=radio][value="5"]:checked,
input[type=radio][value="6"]:checked {
    background-color: rgba(var(--edu-red-rgb), 1);
    border-color: rgba(var(--edu-red-rgb), 1);
}

input[type=text]:required, input[type=email]:required, input[type=number]:required, input[type=date]:required {
    border-color: rgba(var(--edu-blue-rgb));
    padding-right: 2.25rem !important;
    background-image: url("../../dist/icons/asterisk-solid.svg");
    background-repeat: no-repeat;
    background-position: right calc(.28em + .09rem) center;
    background-size: calc(.5em + .28rem) calc(.5em + .28rem);
}

.choices__inner:has(> select:required) {
    border-color: rgba(var(--edu-blue-rgb));
    padding-right: 2.25rem !important;
    background-image: url("../../dist/icons/asterisk-solid.svg");
    background-repeat: no-repeat;
    background-position: right calc(2em + .09rem) center;
    background-size: calc(.5em + .28rem) calc(.5em + .28rem);
}

.choices__list--multiple .choices__item {
    background-color: rgba(var(--edu-blue-rgb), .8);
    border: 1px solid rgba(var(--edu-blue-rgb), 1);
}


.error {
    color: var(--bs-danger);
}

input.error {
    border-color: red !important;
}

textarea.error {
    border-color: red !important;
}

.choices__item--disabled {
    display: none !important;
}


/** CARDS **/
.card-primary.card-outline {
    border-top: 3px solid rgba(var(--edu-blue-rgb), 1);
}

.card-primary.card-outline.collapsed-card {
    border-top: 3px solid rgba(var(--edu-blue-rgb), .5);
    transition: all ease .4s;
}

.card-link:hover {
    cursor: pointer;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/** BUTTONS **/
.btn-primary {
    color: #fff;
    background-color: rgba(var(--edu-blue-rgb), 1);
    border-color: rgba(var(--edu-blue-rgb), 1);
}

.btn-primary:hover {
    color: #fff;
    background-color: rgba(var(--edu-blue-rgb), .8);
    border-color: rgba(var(--edu-blue-rgb), .8);
}

.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show>.btn-primary.dropdown-toggle {
    color: #fff;
    background-color: rgba(var(--edu-blue-rgb), .8);
    border-color: rgba(var(--edu-blue-rgb), .8);
}

.btn-check:focus+.btn-primary,
.btn-primary:focus {
    color: #fff;
    background-color: rgba(var(--edu-blue-rgb), .6);
    border-color: rgba(var(--edu-blue-rgb), .6);
}

.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.show>.btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0 rgba(var(--edu-blue-rgb) .5);
}

.btn-outline-primary {
    color: rgba(var(--edu-blue-rgb), 1);
    border-color: rgba(var(--edu-blue-rgb), 1);
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: rgba(var(--edu-blue-rgb), .8);
    border-color: rgba(var(--edu-blue-rgb), .8);
}

.btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.show>.btn-outline-primary.dropdown-toggle {
    color: #fff;
    background-color: rgba(var(--edu-blue-rgb), .8);
    border-color: rgba(var(--edu-blue-rgb), .8);
}

.btn-check:focus+.btn-outline-primary,
.btn-outline-primary:focus {
    box-shadow: 0 0 0 .25rem rgba(var(--edu-blue-rgb), .5);
}

.choices__button {
    display: none;
}

.fixed-button {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}



/** SIDEBAR **/
.nav-link {
    padding: .5rem .8rem;
}

.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active,
.sidebar-light-primary .nav-sidebar>.nav-item>.nav-link.active {
    background-color: rgba(var(--edu-blue-rgb), 1);
    color: #fff;
}

[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active,
[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active:focus,
[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link.active:hover {
    background-color: rgba(var(--edu-blue-verylight-rgb), .8);
    color: #343a40;
}

.nav-treeview {
    padding-left: 10px !important;
    /* Einrücken nach rechts */
    box-sizing: border-box !important;
    /* Verhindert, dass das Padding die Gesamtbreite überschreitet */
}

.nav-treeview .nav-link {
    padding-right: 10px !important;
    /* Optionaler Puffer, um sicherzustellen, dass der Text nicht am Rand anstößt */
    box-sizing: border-box !important;
    width: 100% !important;
}

/* Optional: Kann verwendet werden, um das Menü optisch abzugrenzen */
.nav-treeview {
    border-left: 2px solid rgba(var(--edu-blue-verylight-rgb), .5) !important;
    /* Eine Linie, die die Hierarchie visuell zeigt */
    margin-left: 10px !important;
    /* Platzierung der Linie */
    font-size: .9rem;
}

.nav-sidebar .nav-treeview>.nav-item .nav-icon.fas {
    font-size: 1rem;
}



/** SPINNER ANIMATION **/
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid var(--bs-dark);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Colors and Backgrounds */
.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--edu-blue-rgb), var(--bs-bg-opacity)) !important;
}
.bg-opacity-10 {
    --bs-bg-opacity: 0.1;
}
.bg-opacity-25 {
    --bs-bg-opacity: 0.25;
}

/** TEXT STYLES **/
.text-primary {
    color: rgba(var(--edu-blue-rgb), 1) !important;
}

.text-gradient-success {
    background: #28a745 linear-gradient(180deg, #48b461, #28a745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.text-gradient-warning {
    background: #ffc107 linear-gradient(180deg, #e4b526, #e0a800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.bold-text {
    font-weight: bold;
}

/** SIMPLE DATATABLES **/
.datatable-selector {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 4px 6px;
    margin-right: .5rem;
}

.datatable-search input.datatable-input {
    border: 1px solid #ccc;
    border-radius: 5px;
}

.datatable-container td,
.datatable-container tr {
    border-bottom: 1px solid rgba(var(--edu-blue-verylight-rgb), 1);
}


/** MODAL STYLES **/

@media (min-width: 1200px) {

.modal-dialog {
    max-width: 50vw !important;
}

.modal-lg {
    max-width: 80vw !important;
}

.modal-xl {
    max-width: 90vw !important;
}

}
@media (min-width: 992px) {
    .modal-lg, .modal-xl {
        max-width: 800px;
    }
}


/** ACCORDION STYLES **/
.accordionScroll {
    height: auto;
    max-height: 70vh;
    overflow-y: auto;
}

.accordion-button:not(.collapsed) {
    color: rgba(var(--edu-blue-rgb), 1);
    background-color: rgba(var(--edu-blue-verylight-rgb), 1);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.accordion-button {
    background-color: rgba(var(--edu-blue-verylight-rgb), .3);
}

.accordion-item:first-of-type {
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem
}

.accordion-item:last-of-type,
.accordion-item:last-of-type .accordion-button,
.accordion-item:last-of-type .accordion-header {
    border-bottom-left-radius: .5rem;
    border-bottom-right-radius: .5rem
}


/* CALLOUTS & ALERTS */
.callout.callout-info {
    border-left-color: rgba(var(--edu-blue-rgb), 1);
}

/* CALENDAR */
.fc .fc-toolbar {
    display: flex;
    justify-content: end;
    align-items: center;
}
.fc .fc-toolbar .fc-toolbar-chunk {
    margin-left: 1rem;
    margin-right: 1rem;
}
.new-calendar-entry-card .choices {
    margin-bottom: 0;
}
.fc .fc-toolbar-title#fc-dom-1 {
    font-size: 1.75em;
    width: 320px;
    text-align: center;
    margin: 0;
}




/** Login Page **/
@media (max-width: 576px) {

    .login-box,
    .register-box {
        margin-top: .5rem;
        width: 100%;
    }
}