﻿.k-form-legend {
    /* form legend text for bootstrap is smaller, unstyled text. By variables it is made larger but no font-weight variable is available.*/
    font-weight: 600;
}


.k-step-link {
    /* make the stepper links more obvious that they are clickable as they are used here for non-linear navigation */
    cursor: pointer;
}


.k-step-list-horizontal .k-step-link, .k-stepper .k-step-label .k-step-text {
    /* allow long items, like 'announcement templates' that get truncated at smaller screen sizes */
    max-width: 100% !important;
}


/* fix popup and absolute positioning causing scrolling - https://www.telerik.com/blazor-ui/documentation/knowledge-base/common-popup-causes-scroll-on-show */
html, body {
    /* container is full content size and un-scrollable */
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    overflow: auto;
}
@media (min-width: 1450px) {
    body {
        font-size: 18px;
    }
}
.layout-container {
    /* content area is full size and allows scrolling */
    height: 100%;
    overflow: auto;
}

/* =========================
   Bootstrap-friendly layout
   ========================= */

.k-drawer-container {
    min-height: 100vh;
    background-color: var(--bs-tertiary-bg);
}

.k-drawer > div[style*="background-image"] {
    display: none !important;
}

/* ===== LEFT NAV ===== */
.k-drawer {
    width: 260px !important;
    float: left;
    background-color: var(--bs-body-bg);
    border-right: 1px solid var(--bs-border-color);
}

.k-drawer-wrapper {
    width: 260px !important;
    min-height: 100vh;
    padding: 1rem 0.75rem;
    background-color: var(--bs-body-bg);
    box-sizing: border-box;
}

.k-drawer-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.k-drawer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 46px;
    margin-bottom: 0.25rem;
    padding: 0.75rem 0.875rem;
    border-radius: var(--bs-border-radius-lg);
    color: var(--bs-body-color);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

    .k-drawer-item:hover {
        background-color: var(--bs-light-bg-subtle);
        color: var(--bs-emphasis-color);
    }

    .k-drawer-item.k-selected {
        background-color: rgba(var(--bs-primary-rgb), 0.12);
        color: var(--bs-primary);
        font-weight: 600;
        box-shadow: inset 0 0 0 1px rgba(var(--bs-primary-rgb), 0.15);
    }

    .k-drawer-item .k-icon,
    .k-drawer-item .k-svg-icon {
        width: 1.125rem;
        height: 1.125rem;
        flex-shrink: 0;
        color: inherit;
    }

    .k-drawer-item .k-item-text {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .k-drawer-item .drawer-chevron-icon {
        margin-left: auto;
        width: 0.9rem;
        height: 0.9rem;
        opacity: 0.7;
        transition: transform .2s ease, opacity .2s ease;
    }

    .k-drawer-item:hover .drawer-chevron-icon,
    .k-drawer-item.k-selected .drawer-chevron-icon {
        opacity: 1;
    }

    .k-drawer-item.k-selected .drawer-chevron-icon {
        transform: translateX(2px);
    }

/* ===== RIGHT CONTENT ===== */
.k-drawer-content {
    background-color: var(--bs-tertiary-bg);
    padding: 2rem;
    box-sizing: border-box;
}

    .k-drawer-content > h2,
    .k-drawer-content > .k-form,
    .k-drawer-content > form.k-form {
        max-width: 960px;
        margin-left: auto;
        margin-right: auto;
    }

    .k-drawer-content > h2 {
        margin-bottom: 1.25rem;
        color: var(--bs-emphasis-color);
        font-size: calc(1.325rem + 0.9vw);
        font-weight: 600;
        line-height: 1.2;
    }

    /* ===== FORM PANEL ===== */
    .k-drawer-content > .k-form,
    .k-drawer-content > form.k-form {
        background-color: var(--bs-body-bg);
        border: 1px solid var(--bs-border-color);
        border-radius: var(--bs-border-radius-xl);
        padding: 1.5rem;
        box-shadow: var(--bs-box-shadow-sm);
    }

/* Group fieldset */
.k-form-fieldset {
    margin-bottom: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: var(--bs-border-radius-lg);
    background-color: var(--bs-body-bg);
}

.k-form-legend {
    padding: 0 0.375rem;
    margin-bottom: 0;
    color: var(--bs-emphasis-color);
    font-size: 1rem;
    font-weight: 600;
}

/* Layout spacing */
.k-form-layout {
    row-gap: 1rem;
    column-gap: 1rem !important;
}

.k-form-field {
    margin-bottom: 0;
}

.k-label.k-form-label {
    margin-bottom: 0.375rem;
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Inputs / dropdowns */
.k-form-field-wrap .k-picker,
.k-form-field-wrap .k-dropdownlist,
.k-form-field-wrap .k-input,
.k-form-field-wrap .k-numerictextbox,
.k-form-field-wrap .k-textbox {
    width: 100%;
    border-radius: var(--bs-border-radius);
}

.k-picker,
.k-dropdownlist,
.k-input,
.k-textbox {
    min-height: calc(1.5em + 0.75rem + 2px);
}

/* Buttons */
.k-form-buttons {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

    .k-form-buttons .k-button {
        min-width: 110px;
        border-radius: var(--bs-border-radius);
        font-weight: 600;
    }

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .k-drawer-wrapper {
        width: 230px !important;
        padding: 0.875rem 0.625rem;
    }

    .k-drawer-content {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .k-drawer-content {
        padding: 1rem;
    }

        .k-drawer-content > .k-form,
        .k-drawer-content > form.k-form {
            padding: 1rem;
            border-radius: var(--bs-border-radius-lg);
        }

    .k-form-fieldset {
        padding: 1rem;
    }
}

.settings-shell {
    max-width: 960px;
    margin-inline: auto;
}




/* =========================
   USER PREFERENCES PAGE
   Bootstrap-like styling
   ========================= */

/* page content */
.k-drawer-content {
    background-color: var(--bs-tertiary-bg, #f8f9fa);
    padding: 2rem 2.25rem;
}

/* hide weird background overlay if Telerik injects it */
.k-drawer > div[style*="background-image"] {
    display: none !important;
}

/* page title */
.k-drawer-content > h2 {
    max-width: 980px;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--bs-heading-color, #212529);
}

/* main form panel */
.k-drawer-content > .k-form,
.k-drawer-content > form.k-form {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.5rem;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 1rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

/* group card */
.k-form-fieldset {
    margin-bottom: 1rem;
    padding: 1.25rem 1.25rem 1rem;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: .875rem;
}

.k-form-legend {
    float: none;
    width: auto;
    margin: 0 0 .75rem;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--bs-heading-color, #212529);
    border: 0;
}

/* layout spacing */
.k-form-layout {
    row-gap: 1rem;
    column-gap: 1rem !important;
}

.k-form-field {
    margin-bottom: 0;
}

    /* labels */
    .k-label.k-form-label,
    .k-form-field > label,
    .k-form-field-wrap > label {
        display: inline-block;
        margin-bottom: .5rem;
        font-size: .875rem;
        font-weight: 600;
        color: var(--bs-secondary-color, #6c757d);
        line-height: 1.2;
    }

/* form field wrap */
.k-form-field-wrap {
    width: 100%;
}

/* Telerik controls - bootstrap-ish */
.k-picker,
.k-dropdownlist,
.k-input,
.k-textbox,
.k-numerictextbox,
.k-input-inner {
    font-size: 1rem;
}

.k-picker,
.k-dropdownlist,
.k-numerictextbox,
.k-textbox,
.k-input {
    width: 100%;
    min-height: calc(1.5em + .75rem + 2px);
    border-radius: var(--bs-border-radius, .375rem);
}

    /* actual visible control shell */
    .k-picker,
    .k-dropdownlist,
    .k-numerictextbox .k-input,
    .k-textbox,
    .k-input {
        background-color: var(--bs-body-bg, #fff);
        border: 1px solid var(--bs-border-color, #ced4da);
        box-shadow: none;
        transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    }

        /* hover */
        .k-picker:hover,
        .k-dropdownlist:hover,
        .k-textbox:hover,
        .k-input:hover {
            border-color: #86b7fe;
        }

        /* focus */
        .k-picker:focus,
        .k-picker.k-focus,
        .k-dropdownlist:focus,
        .k-dropdownlist.k-focus,
        .k-textbox:focus,
        .k-textbox.k-focus,
        .k-input:focus,
        .k-input.k-focus,
        .k-numerictextbox:focus-within {
            border-color: #86b7fe !important;
            box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25) !important;
            outline: 0;
        }

/* input inner */
.k-input-inner {
    padding: .375rem .75rem;
    color: var(--bs-body-color, #212529);
    line-height: 1.5;
}

/* dropdown displayed text */
.k-input-value-text {
    color: var(--bs-body-color, #212529);
}

/* dropdown button */
.k-input-button.k-button {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--bs-secondary-color, #6c757d);
}

/* checkbox */
.k-checkbox,
input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: .25rem;
}

/* form buttons */
.k-form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.25rem;
    padding-top: .5rem;
}

    /* primary button */
    .k-form-buttons .k-button {
        min-width: 110px;
        padding: .5rem 1rem;
        border-radius: var(--bs-border-radius, .375rem);
        font-weight: 600;
        box-shadow: none;
    }

/* helper for empty-looking fields */
.k-form-field:has(.k-checkbox) .k-form-field-wrap {
    display: flex;
    align-items: center;
    min-height: calc(1.5em + .75rem + 2px);
}

/* make 2-column groups breathe a bit more */
.k-grid-cols-2 > .k-form-field {
    padding-right: .25rem;
}

/* responsive */
@media (max-width: 991.98px) {
    .k-drawer-content {
        padding: 1.5rem;
    }

        .k-drawer-content > .k-form,
        .k-drawer-content > form.k-form {
            padding: 1rem;
        }

    .k-form-fieldset {
        padding: 1rem;
    }
}

@media (max-width: 767.98px) {
    .k-drawer-content {
        padding: 1rem;
    }

        .k-drawer-content > h2 {
            font-size: 1.75rem;
            margin-bottom: 1rem;
        }

        .k-drawer-content > .k-form,
        .k-drawer-content > form.k-form {
            border-radius: .75rem;
        }

    .k-form-fieldset {
        border-radius: .75rem;
    }
}

.k-drawer > div[style*="background-image"] {
    display: none !important;
}


/* Custom css */

/* Campus dropdown - EduPoint old style */
::deep .ep-campus-dropdown {
    height: 38px;
    border: 1px solid #9ed2eb !important;
    border-radius: 3px !important;
    background: linear-gradient(#f2fbff, #dff3fb) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

    ::deep .ep-campus-dropdown .k-input-inner {
        color: #004b67 !important;
        font-size: 16px;
        font-weight: 600;
        padding-left: 12px;
    }

    ::deep .ep-campus-dropdown.k-picker,
    ::deep .ep-campus-dropdown .k-input-button,
    ::deep .ep-campus-dropdown .k-picker-solid {
        background: transparent !important;
        border-color: transparent !important;
    }

    ::deep .ep-campus-dropdown .k-input-button {
        width: 38px;
        color: #005c75 !important;
    }

    /* Icon arrow */
    ::deep .ep-campus-dropdown .k-svg-icon,
    ::deep .ep-campus-dropdown .k-icon {
        color: #005c75 !important;
    }

    /* Hover */
    ::deep .ep-campus-dropdown:hover {
        border-color: #73bddc !important;
        background: linear-gradient(#f6fdff, #d7eef8) !important;
    }

    /* Focus */
    ::deep .ep-campus-dropdown.k-focus,
    ::deep .ep-campus-dropdown:focus-within {
        border-color: #5fb3d5 !important;
        box-shadow: 0 0 0 2px rgba(95, 179, 213, 0.18) !important;
    }

.ep-layout {
    min-height: 100vh;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    color: #003b5c;
}

/* Header top nav */
.ep-header {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;  
    padding: 0.3rem;
}

.ep-logo {
    line-height: 1;
    white-space: nowrap;
}

.ep-logo-edu {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 34px;
    color: #a7c71f;
    letter-spacing: -1px;
}

.ep-logo-point {
    font-family: Arial;
    font-size: 34px;
    color: #4a96d9;
    letter-spacing: -1px;
}

.ep-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ep-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ep-user-name { 
    color: #003b5c;
    white-space: nowrap;
}

.ep-divider {
    width: 1px;
    height: 28px;
    background: #3a6f80;
}

.ep-campus-wrap {
    display: flex;
    align-items: center;
}

.ep-logout {
    color: #006fc9;
    text-decoration: none; 
    white-space: nowrap;
}

    .ep-logout:hover {
        text-decoration: underline;
    }

@media (max-width: 768px) {
    .ep-header {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px 14px 10px;
    }

    .ep-logo {
        display: flex;
        align-items: center;
    }

    .ep-logo-edu,
    .ep-logo-point {
        font-size: 30px;
    }

    .ep-header-right {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ep-user-row {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .ep-user-name {
        font-size: 14px;
        font-weight: 500;
        color: #003b5c;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ep-logout {
        font-size: 13px;
        color: #006fc9;
        flex-shrink: 0;
    }

    .ep-divider {
        display: none;
    }

    .ep-campus-wrap {
        width: 100%;
    }

    ::deep .ep-campus-dropdown {
        width: 100% !important;
        height: 38px;
    }

        ::deep .ep-campus-dropdown .k-input-inner {
            font-size: 14px;
            padding-left: 10px;
        }
}

/* Telerik dropdown trong isolated css */
::deep .ep-campus-dropdown {
    height: 36px;
}

    ::deep .ep-campus-dropdown .k-input-inner {
        color: #003b5c;
        font-size: 14px;
    }


/* =========================
   Top navigation
   ========================= */

.ep-top-nav {
    background: #135f80;
    position: relative;
    z-index: 999;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    padding: 0 .5rem;
}

.ep-mobile-nav-header {
    display: none;
}

.ep-nav-body {
    height: 38px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.ep-nav-list {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ep-nav-item {
    position: relative;
    list-style: none;
}

.ep-nav-link {
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: #ffffff;
    text-decoration: none; 
    line-height: 38px;
    white-space: nowrap;
}

    .ep-nav-link:hover,
    .ep-nav-item:hover > .ep-nav-link {
        background: #005872;
        color: #ffffff;
        text-decoration: none;
    }

.ep-arrow {
    margin-left: 4px;
    font-size: 17px;
}

/* Desktop dropdown */
.ep-dropdown {
    display: none;
    position: absolute;
    top: 38px;
    left: 0;
    min-width: 270px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #00627d;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    z-index: 1000;
}

.ep-nav-item:hover > .ep-dropdown {
    display: block;
}

.ep-dropdown li {
    list-style: none;
}

.ep-dropdown a {
    display: block;
    padding: 8px 14px;
    color: #ffffff;
    text-decoration: none; 
    white-space: nowrap;
}

    .ep-dropdown a:hover {
        background: #004f66;
        color: #ffffff;
        text-decoration: none;
    }

/* Right actions */
.ep-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding-right: 10px;
    color: #ffffff;
    white-space: nowrap;
}
    .ep-nav-actions a {
        color: #ffffff;
        text-decoration: none;
    }
        .ep-nav-actions a:visited {
            color: #ffffff;
            text-decoration: none;
        }

.ep-search,
.ep-icon {
    color: #ffffff; 
}

.ep-role-btn {
    background: transparent;
    border: none;
    color: #ffffff; 
    font-weight: 700;
    padding: 0;
    cursor: pointer;
}

    .ep-role-btn:hover {
        text-decoration: underline;
    }
/* =========================
   Tablet: 
   ========================= */

@media (max-width: 1024px) {
    .ep-nav-body {
        overflow-x: auto;
        overflow-y: visible;
    }

    .ep-nav-list {
        flex: 0 0 auto;
    }

    .ep-nav-actions {
        flex: 0 0 auto;
        padding-left: 12px;
    }

    .ep-nav-body::-webkit-scrollbar {
        height: 4px;
    }

    .ep-nav-body::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.35);
        border-radius: 999px;
    }
}

/* =========================
   Mobile: hamburger menu
   ========================= */

@media (max-width: 768px) {
    .ep-top-nav {
        height: auto;
    }

    .ep-mobile-nav-header {
        height: 40px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 12px;
        background: #006b86;
        color: #ffffff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .ep-menu-toggle {
        width: 34px;
        height: 30px;
        border: 0;
        background: transparent;
        padding: 4px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        cursor: pointer;
    }

        .ep-menu-toggle span {
            display: block;
            width: 22px;
            height: 2px;
            background: #ffffff;
            border-radius: 999px;
        }

    .ep-mobile-title {
        font-size: 14px;
        font-weight: 700;
    }

    .ep-nav-body {
        display: none;
        height: auto;
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
    }

    .ep-top-nav.is-open .ep-nav-body {
        display: flex;
    }

    .ep-nav-list {
        flex-direction: column;
        width: 100%;
    }

    .ep-nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .ep-nav-link {
        height: 38px;
        justify-content: space-between;
        padding: 0 14px; 
    }

    .ep-nav-item:hover > .ep-nav-link {
        background: #005872;
    }

    /* Mobile: dropdown remove absolute */
    .ep-dropdown {
        display: block;
        position: static;
        min-width: 100%;
        padding: 0;
        background: #005872;
        border-radius: 0;
        box-shadow: none;
    }

        .ep-dropdown a {
            padding: 8px 28px; 
            color: #ffffff;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }

            .ep-dropdown a:hover {
                background: #004f66;
            }

    .ep-nav-actions {
        height: auto;
        padding: 10px 14px;
        flex-wrap: wrap;
        justify-content: flex-start;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        background: #00627d;
    }
}

@media (max-width: 768px) {
    .ep-header {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 12px;
    }

    .ep-header-right {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }

    .ep-logo-edu,
    .ep-logo-point {
        font-size: 30px;
    }

    ::deep .ep-campus-dropdown {
        width: 100% !important;
        max-width: 100%;
    }

    .ep-divider {
        display: none;
    }
}



.ep-inline-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #003b5c;
    flex-shrink: 0;
}

    .ep-inline-icon svg {
        width: 100%;
        height: 100%;
        fill: currentColor;
    }

.ep-caret-icon {
    width: 14px;
    height: 14px;
    opacity: 0.85;
}

h4 {
    line-height: 1.6em;
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 !important;
    padding-top: .25rem !important;
    padding-bottom: .25rem !important;
}