/* Define CSS variables */
@property --primary-color {
    syntax: "<color>";
    inherits: false;
    initial-value: rgb(88, 192, 206);
}

@property --secondary-color {
    syntax: "<color>";
    inherits: false;
    initial-value: rgb(45, 76, 199);
}

@property --background-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #f5f5f5;
}

@property --text-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #333333;
}

@property --text-color-danger {
    syntax: "<color>";
    inherits: false;
    initial-value: #cc0000;
}

@property --text-color-success {
    syntax: "<color>";
    inherits: false;
    initial-value: #46b450;
}
@property --text-color-warning {
    syntax: "<color>";
    inherits: false;
    initial-value: #ffb900;
}

@property --spacing-smaller {
    syntax: "<length>";
    inherits: false;
    initial-value: 3px;
}

@property --spacing-small {
    syntax: "<length>";
    inherits: false;
    initial-value: 5px;
}

@property --spacing-medium {
    syntax: "<length>";
    inherits: false;
    initial-value: 7px;
}

@property --spacing-large {
    syntax: "<length>";
    inherits: false;
    initial-value: 12px;
}

@property --font-size {
    syntax: "<length>";
    inherits: false;
    initial-value: 12px;
}

@property --font-size-large {
    syntax: "<length>";
    inherits: false;
    initial-value: 14px;
}

@property --font-size-larger {
    syntax: "<length>";
    inherits: false;
    initial-value: 16px;
}

@property --line-height {
    syntax: "<length>";
    inherits: false;
    initial-value: 16px;
}

@property --line-height-larger {
    syntax: "<length>";
    inherits: false;
    initial-value: 20px;
}

@property --text-color-dark {
    syntax: "<color>";
    inherits: false;
    initial-value: #212529;
}

@property --text-color-light {
    syntax: "<color>";
    inherits: false;
    initial-value: #65727e;
}

@property --border-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #bebebe;
}

@property --border-color-light {
    syntax: "<color>";
    inherits: false;
    initial-value: #f1f3f5;
}

@property --input-placeholder {
    syntax: "<color>";
    inherits: false;
    initial-value: #65727e;
}

@property --input-background {
    syntax: "<color>";
    inherits: false;
    initial-value: #ffffff;
}

@property --input-border {
    syntax: "<color>";
    inherits: false;
    initial-value: #dee2e6;
}

@property --input-border-active {
    syntax: "<color>";
    inherits: false;
    initial-value: #c1c9d0;
}

@property --input-border-invalid {
    syntax: "<color>";
    inherits: false;
    initial-value: #e44e4e;
}

@property --input-outline-invalid {
    syntax: "<color>";
    inherits: false;
    initial-value: rgba(219, 138, 138, 0.5);
}

@property --input-color {
    syntax: "<color>";
    inherits: false;
    initial-value: #e9e9ed;
}

@property --input-disabled {
    syntax: "<color>";
    inherits: false;
    initial-value: #f7f7f7;
}

@property --input-min-height {
    syntax: "<length>";
    inherits: false;
    initial-value: 45px;
}

@property --input-max-height {
    syntax: "<length>";
    inherits: false;
    initial-value: 45px;
}

@property --options-height {
    syntax: "<length>";
    inherits: false;
    initial-value: 40dvh;
}

@property --option-background {
    syntax: "<color>";
    inherits: false;
    initial-value: #f3f4f7;
}

@property --border-radius {
    syntax: "<length>";
    inherits: false;
    initial-value: 5px;
}

@property --icon-size {
    syntax: "<length>";
    inherits: false;
    initial-value: 12px;
}

@property --icon-space {
    syntax: "<length>";
    inherits: false;
    initial-value: 30px;
}

@property --checkbox-size {
    syntax: "<length>";
    inherits: false;
    initial-value: 16px;
}

@property --checkbox-radius {
    syntax: "<length>";
    inherits: false;
    initial-value: 4px;
}

@property --checkbox-border {
    syntax: "<color>";
    inherits: false;
    initial-value: #ced4da;
}

@property --checkbox-background {
    syntax: "<color>";
    inherits: false;
    initial-value: #fff;
}

@property --checkbox-active {
    syntax: "<color>";
    inherits: false;
    initial-value: #fff;
}

@property --checkbox-thickness {
    syntax: "<length>";
    inherits: false;
    initial-value: 2px;
}

/* 
:root {
  --spacing-smaller: 3px;
  --spacing-small: 5px;
  --spacing-medium: 7px;
  --spacing-large: 12px;
  --font-size: 12px;
  --font-size-large: 14px;
  --font-size-larger: 16px;
  --line-height: 16px;
  --line-height-larger: 20px;
  --primary-color: #40c979;
  --secondary-color: rgb(45, 76, 199);
  --background-color: #f5f5f5;
  --text-color-dark: #212529;
  --text-color: #585858;
  --text-color-light: #65727e;
  --text-color-danger: #cc0000;
  --text-color-success: #46b450;
  --text-color-warning: #ffb900;
  --border-color: #bebebe;
  --border-color-light: #f1f3f5;
  --input-placeholder: #65727e;
  --input-background: #e9e9ed;
  --input-border: #dee2e6;
  --input-border-active: #c1c9d0;
  --input-border-invalid: #e44e4e;
  --input-outline-invalid: rgba(219, 138, 138, 0.5);
  --input-color: #e9e9ed;
  --input-disabled: #f7f7f7;
  --input-min-height: 45px;
  --options-height: 40dvh;
  --option-background: #f3f4f7;
  --border-radius: 5px;
  --icon-size: 12px;
  --icon-space: 30px;
  --checkbox-size: 16px;
  --checkbox-radius: 4px;
  --checkbox-border: #ced4da;
  --checkbox-background: #fff;
  --checkbox-active: #fff;
  --checkbox-thickness: 2px;
}
 */


.teacher-details {
    border: 1px solid var(--primary-color);
    padding: 15px;
    margin: 15px 0;
    background-color: var(--background-color);
    border-radius: 5px;
    color: var(--text-color);
}

#teacher-search-block {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 100%;
    width: 1200px;
}

form#search-teacher {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    justify-content: center;
    align-items: start;
    margin: 20px 0;
    gap: 1em;
    flex-wrap: wrap;
    select,
    input[list],
    input[type="text"],
    input[type="email"],
    input[type="number"] {
        font-size: 14px;
        background-color: #ffffff;
        border: 1px solid #ccc;
        border-radius: 4px;
        width: 300px;
        min-height: var(--input-min-height);
        max-width: 100%;
    }
    label:has(input[type=checkbox]) {
        display:flex;
        gap:5px;
        font-size:1.4rem;
        margin-top:5px;
    }    
    .form-buttons {
        display:flex;
        gap:10px;
        button {
            height:45px;
        }
    }
/*     button {
        padding: 10px 15px;
        background-color: var(--primary-color);
        color: #fff;

        border: none;
        border-radius: 4px;
        cursor: pointer;
        &:hover {
            background-color: var(--secondary-color);
        }
    } */
}

.teacher-edit.toolbar {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

#teacher-search-block {
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
#teacher-search-block .notice {
    padding: 10px;
}
#teacher-search-block .notice-success {
    background-color: #e6ffe8;
    border-left: 4px solid var(--text-color-success);
    color: var(--text-color-success);
}

#teacher-search-block .notice-warning {
    background-color: #fff8e5;
    border-left: 4px solid var(--text-color-warning);
    color: #8b6d27;
}

#teacher-search-block .notice-error {
    background-color: #ffeaea;
    border-left: 4px solid var(--text-color-danger);
    color: var(--text-color-danger);
}

/* Style for AFM input field when validating */
input[name="teacher_id"]:invalid {
    border-color: var(--text-color-danger);
    box-shadow: 0 0 2px rgba(220, 50, 50, 0.3);
}

input[name="teacher_id"]:valid {
    border-color: var(--text-color-success);
    box-shadow: 0 0 2px rgba(70, 180, 80, 0.3);
}

.welcome-panel {
    border-radius: 2em;
    h2 {
        color: #ffffff;
    }
    p.about-description {
        font-size: 1.2em;
        color: #fafafa;
    }
    .welcome-panel-content {
        padding: 1em;
        .welcome-panel-column-container {
            border-radius: 1.5em;
        }
    }
}

.welcome-panel-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5em;
    background-color: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 1em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    padding: 1em;

    h3 {
        font-weight: 500;
        text-align: center;
    }
    a.button.button-primary.button-hero {
        padding: 1em 2em;
        font-size: 1em;
        min-height: auto;
        margin: 0;
    }
    p {
        text-align: right;
        font-size: 0.8em;
    }
}

.multi-select {
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    position: relative;
    width: 100%;
    max-width: 100%;
    user-select: none;
}
.multi-select .multi-select-header {
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius);
    padding: var(--spacing-medium) var(--spacing-large);
    padding-right: var(--icon-space);
    overflow: hidden;
    gap: var(--spacing-medium);
    max-width: 100%;
    min-height: var(--input-min-height);
    max-height: var(--input-max-height);
    background-color: var(--input-background);
    cursor: pointer;
    color: var(--input-color);
    
}
.multi-select .multi-select-header::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23949ba3' viewBox='0 0 16 16'%3E%3Cpath d='M8 13.1l-8-8 2.1-2.2 5.9 5.9 5.9-5.9 2.1 2.2z'/%3E%3C/svg%3E");
    height: var(--icon-size);
    width: var(--icon-size);
}
.multi-select .multi-select-header.multi-select-header-active {
    border-color: var(--input-border-active);
}
.multi-select .multi-select-header.multi-select-header-active::after {
    transform: translateY(-50%) rotate(180deg);
}
.multi-select .multi-select-header.multi-select-header-active + .multi-select-options {
    display: flex;
}
.multi-select .multi-select-header .multi-select-header-placeholder {
    color: var(--text-color-light);
}
.multi-select .multi-select-header .multi-select-header-option {
    display: inline-flex;
    align-items: center;
    background-color: var(--option-background);
    font-size: var(--font-size-large);
    padding: var(--spacing-smaller) var(--spacing-small);
    border-radius: var(--border-radius);
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.multi-select .multi-select-header .multi-select-header-max {
    font-size: var(--font-size-large);
    color: var(--text-color-light);
}
.multi-select .multi-select-options {
    display: none;
    box-sizing: border-box;
    flex-flow: wrap;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    margin-top: var(--spacing-small);
    padding: var(--spacing-small);
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-height: var(--options-height);
    overflow-y: auto;
    overflow-x: hidden;
}
.multi-select .multi-select-options::-webkit-scrollbar {
    width: 5px;
}
.multi-select .multi-select-options::-webkit-scrollbar-track {
    background: #f0f1f3;
}
.multi-select .multi-select-options::-webkit-scrollbar-thumb {
    background: #cdcfd1;
}
.multi-select .multi-select-options::-webkit-scrollbar-thumb:hover {
    background: #b2b6b9;
}
.multi-select .multi-select-options .multi-select-option,
.multi-select .multi-select-options .multi-select-all {
    padding: var(--spacing-large);
}
.multi-select .multi-select-options .multi-select-option .multi-select-option-radio,
.multi-select .multi-select-options .multi-select-all .multi-select-option-radio {
    background: var(--checkbox-background);
    margin-right: var(--spacing-large);
    height: var(--checkbox-size);
    width: var(--checkbox-size);
    border: 1px solid var(--checkbox-border);
    border-radius: var(--checkbox-radius);
}
.multi-select .multi-select-options .multi-select-option .multi-select-option-text,
.multi-select .multi-select-options .multi-select-all .multi-select-option-text {
    box-sizing: border-box;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-wrap;
    color: inherit;
    font-size: var(--font-size-larger);
    line-height: var(--line-height);
}
.multi-select .multi-select-options .multi-select-option.multi-select-selected .multi-select-option-radio,
.multi-select .multi-select-options .multi-select-all.multi-select-selected .multi-select-option-radio {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}
.multi-select .multi-select-options .multi-select-option.multi-select-selected .multi-select-option-radio::after,
.multi-select .multi-select-options .multi-select-all.multi-select-selected .multi-select-option-radio::after {
    content: "";
    display: block;
    width: calc(var(--checkbox-size) / 4);
    height: calc(var(--checkbox-size) / 2);
    border: solid var(--checkbox-active);
    border-width: 0 var(--checkbox-thickness) var(--checkbox-thickness) 0;
    transform: rotate(45deg) translate(140%, -25%);
}
.multi-select .multi-select-options .multi-select-option.multi-select-selected .multi-select-option-text,
.multi-select .multi-select-options .multi-select-all.multi-select-selected .multi-select-option-text {
    color: var(--text-color-dark);
}
.multi-select .multi-select-options .multi-select-option:hover,
.multi-select .multi-select-options .multi-select-option:active,
.multi-select .multi-select-options .multi-select-all:hover,
.multi-select .multi-select-options .multi-select-all:active {
    background-color: var(--option-background);
}
.multi-select .multi-select-options .multi-select-all {
    border-bottom: 1px solid var(--border-color-light);
    border-radius: 0;
}
.multi-select .multi-select-options .multi-select-search {
    padding: var(--spacing-medium) var(--spacing-large);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius);
    margin: 10px 10px 5px 10px;
    width: 100%;
    outline: none;
    font-size: var(--font-size-larger);
}
.multi-select .multi-select-options .multi-select-search::placeholder {
    color: var(--text-color-light);
}
.multi-select .multi-select-header,
.multi-select .multi-select-option,
.multi-select .multi-select-all {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    align-items: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    font-size: var(--font-size-larger);
    color: var(--text-color-dark);

    border-color: rgba(0, 0, 0, 0.2);
}

.multi-select.disabled {
    opacity: 0.6;
    pointer-events: none;
    background-color: var(--input-disabled);
}
.multi-select.multi-select-invalid .multi-select-header {
    border-color: var(--input-border-invalid);
    outline: var(--input-outline-invalid) solid 1px;
}





.results-container {
    display: flex;
    flex-direction:column;
    gap: 1rem;
    padding:20px 0;
    
    .teacher-card {
        display:flex;
        align-items:start;
        gap:10px;
        padding:20px;
        background-color:#ffffff;
        box-shadow: 0 0 10px 0px rgba(0,0,0,0.05);
        border:1px solid rgba(0,0,0,0.05);
        border-radius:3px;
        
        img.teacher-card__avatar {
            border-radius:100%;
            box-shadow:0 10px 10px rgba(0,0,0,0.2);
        }
        .teacher-card__information {
            border-left: 1px solid rgba(0,0,0,0.05);
            padding-left:10px;
            display:flex;
            flex-direction:column;
            width:100%;
            .teacher-card__name {
                font-size:2rem;
            }
            .teacher-card__field {
                display:block;
                border-bottom:1px solid rgba(0,0,0,0.05);
                padding:5px;

                span.teacher-card__label {
                    font-family: "Manrope";
                    font-weight:bold;
                    font-size:var(--theme-var-body-font-size);
                    margin-right:5px;
                }

                span.teacher-card__value {
                    font-size:var(--theme-var-body-font-size);

                }

                &:last-child {
                    border-bottom:1px solid transparent;
                }
            }        
        }
    }
}


/* Spinner Loader Design */
.lds-roller,
.lds-roller div,
.lds-roller div:after {
  box-sizing: border-box;
}
.lds-roller {
  display: inline-block;
  position: relative;
    width: 16px;
    height: 16px;
}
.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    transform-origin: 8px 8px;
}
.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
    width: 1.6px;
    height: 1.6px;
    border-radius: 50%;
    background: currentColor;
    margin: -0.8px 0 0 -0.8px;
}
.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
    top: 12.52549px;
    left: 12.52549px;
}
.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
    top: 13.54256px;
    left: 11.2px;
}
.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
    top: 14.18193px;
    left: 9.65644px;
}
.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
    top: 14.4px;
    left: 8px;
}
.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
    top: 14.18193px;
    left: 6.34356px;
}
.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
    top: 13.54256px;
    left: 4.8px;
}
.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
    top: 12.52549px;
    left: 3.47452px;
}
.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
    top: 11.2px;
    left: 2.45744px;
}



/* Animations */
.swing-in-top-fwd {
	-webkit-animation: swing-in-top-fwd 0.5s cubic-bezier(0.175, 0.885, 0.320, 1.275) both;
	        animation: swing-in-top-fwd 0.5s cubic-bezier(0.175, 0.885, 0.320, 1.275) both;
}

@-webkit-keyframes swing-in-top-fwd {
  0% {
    -webkit-transform: rotateX(-100deg);
            transform: rotateX(-100deg);
    -webkit-transform-origin: top;
            transform-origin: top;
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(0deg);
            transform: rotateX(0deg);
    -webkit-transform-origin: top;
            transform-origin: top;
    opacity: 1;
  }
}
@keyframes swing-in-top-fwd {
  0% {
    -webkit-transform: rotateX(-100deg);
            transform: rotateX(-100deg);
    -webkit-transform-origin: top;
            transform-origin: top;
    opacity: 0;
  }
  100% {
    -webkit-transform: rotateX(0deg);
            transform: rotateX(0deg);
    -webkit-transform-origin: top;
            transform-origin: top;
    opacity: 1;
  }
}

@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

