/* idx2 — language bottom sheet (auth + student portal) */

#menu-language.app-student-lang-sheet {
    box-sizing: border-box;
    height: auto !important;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    backdrop-filter: blur(18px) saturate(1.3);
    border-top: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.28) !important;
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
}

#menu-language.app-student-lang-sheet .menu-title {
    position: relative;
    margin: 0;
    padding: 0.65rem 1rem 0;
}

#menu-language.app-student-lang-sheet .menu-title h1 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0.2rem 0 0.35rem 2.5rem !important;
    line-height: 1.35 !important;
}

html[dir="ltr"] #menu-language.app-student-lang-sheet .menu-title h1 {
    padding: 0.2rem 2.5rem 0.35rem 0 !important;
}

#menu-language.app-student-lang-sheet .menu-title p {
    margin: 0.35rem 0 0 !important;
    padding: 0 0 0 2.5rem !important;
    font-size: 0.72rem !important;
}

html[dir="ltr"] #menu-language.app-student-lang-sheet .menu-title p {
    padding: 0 2.5rem 0 0 !important;
}

#menu-language.app-student-lang-sheet .menu-title a.close-menu {
    position: absolute;
    top: 0.65rem;
    inset-inline-end: 0.85rem;
    inset-inline-start: auto;
    left: auto !important;
    right: auto !important;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0 !important;
    margin-top: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    text-align: center;
}

html[dir="rtl"] #menu-language.app-student-lang-sheet .menu-title a.close-menu {
    left: 0.85rem !important;
    right: auto !important;
}

html[dir="ltr"] #menu-language.app-student-lang-sheet .menu-title a.close-menu {
    left: auto !important;
    right: 0.85rem !important;
}

#menu-language .app-student-lang-sheet__body {
    padding: 0.2rem 1rem 0.65rem;
}

#menu-language .app-student-lang-sheet__list,
#menu-language .app-student-lang-sheet__list.list-custom-small {
    line-height: normal !important;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    margin: 0;
    padding: 0;
}

#menu-language .app-student-lang-sheet__list.list-custom-small a {
    line-height: 1.5 !important;
}

#menu-language .app-student-lang-sheet__list.list-custom-small i,
#menu-language.menu .list-custom-small a i:first-child,
#menu-language.menu .list-custom-small a i:last-child {
    line-height: 1.4 !important;
    float: none !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
}

#menu-language.menu .list-custom-small img,
#menu-language .list-custom-small img {
    float: none !important;
    margin: 0 !important;
}

#menu-language .app-student-lang-sheet__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.15rem;
    line-height: 1.5 !important;
    padding: 0.55rem 0.75rem;
    margin: 0;
    border-radius: 10px;
    color: #0f172a !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.16) !important;
    transition: background 0.15s ease, border-color 0.15s ease;
}

#menu-language .app-student-lang-sheet__item span {
    flex: 1 1 auto;
    min-width: 0;
    color: inherit !important;
    line-height: 1.5;
}

#menu-language .app-student-lang-sheet__item img {
    float: none !important;
    margin: 0 !important;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

#menu-language .app-student-lang-sheet__item i {
    float: none !important;
    margin: 0 !important;
    margin-inline-start: auto !important;
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(100, 116, 139, 0.6) !important;
    opacity: 1 !important;
}

#menu-language .app-student-lang-sheet__item.border-0 {
    border-bottom: none !important;
}

#menu-language .app-student-lang-sheet__item:hover {
    background: rgba(56, 189, 248, 0.1) !important;
}

#menu-language .app-student-lang-sheet__item.active {
    background: rgba(56, 189, 248, 0.18) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
}

#menu-language .app-student-lang-sheet__item.active span {
    color: #0369a1 !important;
    font-weight: 700;
}

body.theme-light #menu-language.app-student-lang-sheet {
    background:
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(56, 189, 248, 0.18) 0%, transparent 55%),
        linear-gradient(168deg, #f8fafc 0%, #e0f2fe 38%, #dbeafe 72%, #eff6ff 100%) !important;
}

body.theme-dark #menu-language.app-student-lang-sheet {
    background:
        radial-gradient(ellipse 100% 70% at 50% 0%, rgba(56, 189, 248, 0.22) 0%, transparent 52%),
        linear-gradient(168deg, #1e3a5f 0%, #0f2847 42%, #0a1628 100%) !important;
}

body.theme-light #menu-language.app-student-lang-sheet .menu-title h1 {
    color: #0f172a !important;
}

body.theme-dark #menu-language.app-student-lang-sheet .menu-title h1 {
    color: #f8fafc !important;
}

body.theme-light #menu-language.app-student-lang-sheet .menu-title p {
    color: rgba(14, 116, 144, 0.95) !important;
}

body.theme-dark #menu-language.app-student-lang-sheet .menu-title p {
    color: rgba(125, 211, 252, 0.88) !important;
}

#menu-language.app-student-lang-sheet .menu-title a,
#menu-language.app-student-lang-sheet .menu-title a i {
    color: rgba(100, 116, 139, 0.85) !important;
}

body.theme-dark #menu-language.app-student-lang-sheet .menu-title a,
body.theme-dark #menu-language.app-student-lang-sheet .menu-title a i {
    color: rgba(186, 230, 253, 0.72) !important;
}

body.theme-dark #menu-language .app-student-lang-sheet__item {
    color: #f1f5f9 !important;
    border-bottom-color: rgba(56, 189, 248, 0.24) !important;
}

body.theme-dark #menu-language .app-student-lang-sheet__item i {
    color: rgba(186, 230, 253, 0.55) !important;
}

body.theme-dark #menu-language .app-student-lang-sheet__item.active {
    background: rgba(56, 189, 248, 0.24) !important;
}

body.theme-dark #menu-language .app-student-lang-sheet__item.active span {
    color: #7dd3fc !important;
}

html[dir="ltr"] #menu-language .app-student-lang-sheet__item i.fa-angle-left {
    margin-inline-start: auto !important;
    margin-inline-end: 0 !important;
}
