body {
    font-family: Arial, sans-serif;
    background: #1a1a1a;
    color: white;
    text-align: center;
    margin: 0;
}

body.is-transitioning {
    pointer-events: none;
    cursor: progress;
}

.hm-page-transition {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top left, rgba(91, 141, 239, 0.35), transparent 55%),
        radial-gradient(circle at bottom right, rgba(30, 64, 175, 0.35), transparent 45%),
        #0b0f1a;
    opacity: 0;
    transform: scale(1);
    transition: opacity 260ms ease, transform 360ms ease;
    z-index: 2147483647;
}

.hm-page-transition.is-active {
    opacity: 1;
    transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
    .hm-page-transition {
        transition: none;
    }
}

.container, #login {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 10px;
}

input, button, select, textarea{
    padding: 10px;
    width: 80%;
    margin: 10px auto;
    display: block;
}

button {
    cursor: pointer;
}

/* Button styles used across the site and for profile actions */
.button {
    display: inline-block;
    padding: 0.6rem 1rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 150ms ease, box-shadow 150ms ease, background 180ms ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.button:active {
    transform: translateY(0);
}

.button:focus-visible {
    outline: 3px solid rgba(100,150,255,0.25);
    outline-offset: 2px;
}

.button--danger {
    background: linear-gradient(180deg, rgba(200,60,60,0.15), rgba(200,40,40,0.08));
    border-color: rgba(200,60,60,0.25);
}

/* subtle ripple effect on click */
.button.ripple {
    position: relative;
    overflow: hidden;
}
.button.ripple::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 300ms ease, height 300ms ease, opacity 300ms ease;
    opacity: 0;
}
.button.ripple:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:root {
    --header-bg: linear-gradient(180deg, rgba(10, 12, 18, 0.92), rgba(9, 11, 17, 0.92));
    --header-border: rgba(255, 255, 255, 0.06);
    --accent: #4f6cff;
    --header-radius: 10px;
    --header-gap: clamp(0.75rem, 2vw, 1.1rem);
    --navbar-max-width: min(1400px, 100%);
    --header-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    --muted-text: rgba(255, 255, 255, 0.68);
}

.hm-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--header-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 64px;
    box-shadow: var(--header-shadow);
}

.hm-navbar__inner {
    width: 100%;
    max-width: var(--navbar-max-width, min(1400px, 100%));
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.85rem, 2.5vw, 1.8rem);
    padding: 0.85rem clamp(1.15rem, 4vw, 2.75rem);
    text-align: left;
    box-sizing: border-box;
    flex: 1 1 auto;
    position: relative;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.header-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.header-center .nav-links {
    flex: 0 1 auto;
    margin-left: 0;
    justify-content: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 0 0 auto;
}

/* DESKTOP: Hidden by default, shown on mobile */
.nav-mobile {
    display: none;
    align-items: center;
    justify-content: flex-end;
}

.hm-navbar__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--header-radius);
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    box-shadow: none;
    flex-shrink: 0;
    position: relative;
    margin-left: auto;
}

.hm-navbar__toggle:hover {
    color: rgba(255, 255, 255, 0.85);
    background: transparent;
    box-shadow: none;
}

.hm-navbar__toggle:active {
    transform: scale(0.95);
}

.hm-navbar__toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
    box-shadow: none;
}

.hm-navbar__toggle-box {
    position: relative;
    width: 1.35rem;
    height: 1.1rem;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.hm-navbar__toggle-line {
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    display: block;
}

.hm-navbar__drawer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.75rem, 3vw, 2rem);
    flex: 1 1 auto;
}

.hm-navbar__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.hm-navbar__overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    max-width: 320px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: clamp(1rem, 4vw, 1.35rem);
    background: rgba(15, 15, 18, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: -32px 0 64px rgba(0, 0, 0, 0.55);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s ease, opacity 0.32s ease, visibility 0.32s ease;
    z-index: 1100;
}

.mobile-sidebar.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-sidebar .nav-links {
    width: 100%;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    gap: 0.35rem;
    margin-left: 0;
    order: 0;
}

.mobile-sidebar .nav-link {
    width: auto;
    justify-content: flex-start;
    padding: 0.45rem 0.85rem;
    min-height: 40px;
}

.mobile-sidebar .nav-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin: 0;
    padding-top: 0;
}

.mobile-sidebar .nav-right__actions,
.mobile-sidebar .nav-right__note {
    width: 100%;
    box-sizing: border-box;
}

.mobile-sidebar .language-switcher {
    width: 100%;
}

.mobile-sidebar .lang-switch {
    justify-content: space-between;
    width: 100%;
}

.mobile-sidebar .language-menu {
    position: static;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    margin-top: 0.35rem;
    background: rgba(15, 15, 18, 1);
    box-shadow: none;
    transform: translateY(-6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 260ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
        max-height 300ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 300ms;
}

.mobile-sidebar .language-switcher.is-open .language-menu {
    max-height: 280px;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s, 0s, 0s, 0s;
}

.mobile-sidebar .language-menu li + li {
    margin-top: 0.35rem;
}

.mobile-sidebar .btn-login {
    width: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 0.6rem;
    flex: 0 0 auto;
    margin-left: 0;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.logo-link img {
    width: 40px;
    height: 40px;
    display: block;
    object-fit: contain;
}

.brand {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.85rem, 2vw, 1.4rem);
    flex: 1 1 auto;
    min-height: 44px;
    margin-left: clamp(0.25rem, 1vw, 0.6rem);
    min-width: 0;
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: clamp(0.65rem, 1.5vw, 1.1rem);
}

.nav-right__actions {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.45rem, 1vw, 0.75rem);
    padding: 0.35rem 0.6rem;
    border-radius: calc(var(--header-radius) + 2px);
    border: 1px solid var(--header-border);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

@media (min-width: 700px) {
    .nav-right__actions {
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
        border-radius: 0;
    }
}

.nav-right__note {
    color: var(--muted-text);
    font-size: 0.92rem;
    padding: 0.45rem 0.75rem;
    border-radius: calc(var(--header-radius) + 4px);
    border: 1px solid var(--header-border);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 360px;
}

.mobile-hint {
    display: none;
}

@media (max-width: 699px) {
    .mobile-hint {
        display: flex;
    }
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.35rem 0.55rem;
    color: var(--muted-text);
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
    color: #fff;
    transform: translateY(-1px);
}

.nav-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 3px;
}

.nav-link.active,
.nav-link[aria-current="page"] {
    color: #fff;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -8px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0.55);
    transition: opacity 0.2s ease, transform 0.2s ease, bottom 0.2s ease;
}

.nav-link:hover::after {
    opacity: 0.6;
    transform: scaleX(1);
}

/* Admin logs styling */
.admin-dashboard__logs {
    margin: 1rem 0 2rem 0;
    text-align: left;
}
.admin-dashboard__logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.admin-dashboard__logs-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 0.5rem;
}
.admin-dashboard__logs-status {
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.9);
}
.admin-dashboard__logs-content {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 0.6rem;
    border-radius: 8px;
    max-height: 48vh;
    overflow: auto;
}
.admin-dashboard__logs-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.admin-dashboard__log-line {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.45rem 0.6rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
    border-radius: 6px;
}
.admin-dashboard__log-meta {
    min-width: 12rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}
.admin-dashboard__log-timestamp {
    font-variant-numeric: tabular-nums;
}
.admin-dashboard__log-level {
    display: inline-block;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
}
.admin-dashboard__log-level--error { background: #6b1a1a; color: #ffd6d6; }
.admin-dashboard__log-level--warn, .admin-dashboard__log-level--warning { background: #6b4d1a; color: #fff0c2; }
.admin-dashboard__log-level--info { background: #1a4f6b; color: #d6f0ff; }
.admin-dashboard__log-level--debug { background: #2b2b2b; color: #e6e6e6; }
.admin-dashboard__log-message { flex: 1 1 auto; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace; font-size: 0.9rem; color: rgba(255,255,255,0.95); }
.admin-dashboard__log-request { display:flex; gap:0.6rem; margin-bottom:0.25rem; align-items:center; }
.admin-dashboard__log-request-method { font-weight:700; color:var(--accent); padding:0.12rem 0.4rem; background:rgba(255,255,255,0.02); border-radius:4px; font-family:inherit; }
.admin-dashboard__log-request-path { color: rgba(255,255,255,0.9); font-family:inherit; }
.admin-dashboard__log-rest { color: rgba(255,255,255,0.85); font-size:0.85rem; }
.admin-dashboard__log-empty { color: rgba(255,255,255,0.7); padding:0.4rem; }

/* small badges used in admin tables */
.admin-badge {
    display: inline-block;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.admin-badge--ok { background: rgba(0,128,0,0.12); color: #bff0bf; }
.admin-badge--muted { background: rgba(255,255,255,0.02); color: rgba(255,255,255,0.7); }

.nav-link.active::after,
.nav-link[aria-current="page"]::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 0.85rem);
    flex: 0 0 auto;
    margin-left: auto;
}

.language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.4rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.07);
    color: #f4f6ff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

.lang-switch:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 3px;
}

.lang-switch__icon {
    opacity: 0.9;
}

.lang-switch__code {
    letter-spacing: 0.05em;
}

.lang-switch__caret {
    width: 0.75rem;
    height: 0.75rem;
    fill: currentColor;
    opacity: 0.8;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.language-switcher.is-open .lang-switch__caret {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.35rem;
    margin: 0;
    min-width: 200px;
    border-radius: calc(var(--header-radius) + 2px);
    border: 1px solid var(--header-border);
    background: rgba(15, 15, 18, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        opacity 240ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 260ms;
    z-index: 1200;
}

.language-menu,
.language-menu li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.language-switcher.is-open .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s, 0s, 0s;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: var(--header-radius);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.language-option:hover,
.language-option:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
}

.language-option[aria-current="true"] {
    background: rgba(0, 123, 255, 0.25);
}

.language-option__text {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-weight: 600;
}

.language-option__name {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}

.i18n-anim-out,
.i18n-anim-in {
    will-change: opacity, transform, filter;
    transform-origin: center;
    backface-visibility: hidden;
}

.i18n-anim-out.i18n-placeholder-animating::placeholder {
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.i18n-anim-in.i18n-placeholder-animating::placeholder {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 200ms ease, transform 200ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .i18n-anim-out,
    .i18n-anim-in {
        will-change: opacity;
    }
}

.account-control {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.account-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.4rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.07);
    color: #f4f6ff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.account-switch:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
}

.account-switch:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.75);
    outline-offset: 3px;
}

.account-switch__icon svg {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
}

.account-switch__label {
    letter-spacing: 0.02em;
}

.account-switch__caret {
    width: 0.75rem;
    height: 0.75rem;
    fill: currentColor;
    opacity: 0.8;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.account-control.is-open .account-switch__caret {
    transform: rotate(180deg);
}

.account-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.35rem;
    margin: 0;
    min-width: 180px;
    border-radius: calc(var(--header-radius) + 2px);
    border: 1px solid var(--header-border);
    background: rgba(15, 15, 18, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        opacity 240ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 260ms;
    z-index: 1250;
    list-style: none;
}

.account-control.is-open .account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s, 0s, 0s;
}

.account-menu li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: none;
    border-radius: var(--header-radius);
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.account-option:hover,
.account-option:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    filter: brightness(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .language-menu,
    .account-menu,
    .mobile-sidebar .language-menu,
    .hm-class-selector {
        transition: none !important;
    }
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 1.15rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f6cff, #6d83ff);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(79, 108, 255, 0.35);
    transition: transform 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
}

.btn-login:hover {
    filter: brightness(1.07);
}

.btn-login:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

.btn-login__icon {
    margin-right: 0.45rem;
    display: inline-flex;
    font-size: 1rem;
}

.btn-login__label {
    letter-spacing: 0.02em;
}

.hm-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--header-radius);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.hm-back-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hm-back-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 3px;
}

.is-hidden {
    display: none !important;
}

.auth-role-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.auth-role-hint[data-role="admin"] {
    color: #fbbf24;
}

.auth-role-hint[data-role="teacher"] {
    color: #c084fc;
}

.auth-role-hint[data-role="class_admin"] {
    color: #60a5fa;
}

.auth-role-hint[data-role="student"] {
    color: #a7f3d0;
}

.auth-role-hint.is-hidden {
    display: none;
}

.nav-link--admin {
    font-weight: 600;
}

/* Desktop-first defaults */
@media (min-width: 700px) {
    .header-center {
        display: flex;
    }

    .header-center .nav-links {
        gap: 28px;
    }

    .header-right {
        display: flex;
        gap: 14px;
        align-items: center;
    }

    .nav-right--desktop {
        display: flex;
        align-items: center;
        gap: clamp(0.65rem, 1.5vw, 1.1rem);
    }

    .hamburger-btn,
    .nav-mobile,
    .mobile-sidebar {
        display: none !important;
    }
}

@media (max-width: 699px) {
    .header-center {
        display: none !important;
    }

    .nav-right--desktop {
        display: none;
    }

    .nav-mobile {
        display: flex;
    }

    .hm-navbar__overlay {
        display: block;
    }

    .mobile-sidebar {
        display: flex;
    }

    .header-right {
        gap: 0.5rem;
    }
}

.content {
  margin-top: 10vh;
}

#description {
    max-width: 800px;
    margin: 20px 20px;
    padding: 0 20px;
    text-align: left;
}

#meldung {
    color: red;
}

/* Spezieller Stil f\xC3\xBCr das Loginfenster */

.login-container {
    position: relative;
    max-width: 460px;
    margin: 60px auto;
    padding: clamp(2.35rem, 3vw, 2.75rem) clamp(2rem, 5vw, 2.6rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.72));
    backdrop-filter: blur(16px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.login-container:hover,
.login-container:focus-within {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 0 48px rgba(59, 130, 246, 0.25);
}

.login-container.is-switching {
    transform: translateY(-4px);
    box-shadow: 0 0 44px rgba(37, 99, 235, 0.28);
}

.login-container.is-switching .login-form {
    animation: auth-switch-fade 0.36s ease forwards;
}

@keyframes auth-switch-fade {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-container.is-switching .login-form {
        animation: none;
    }
}

.login-container [hidden] {
    display: none !important;
}

.login-container input,
.login-container select,
.login-container textarea {
    width: 100%;
    margin: 0;
}

.login-container .form-control {
    width: 100%;
    margin: 0;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.55);
    color: #f8fafc;
    font-size: 0.95rem;
    line-height: 1.45;
    transition: all 0.2s ease;
}

.login-container .form-control::placeholder {
    color: rgba(226, 232, 240, 0.45);
}

.login-container .form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    background: rgba(15, 23, 42, 0.75);
}


.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 3vw, 2.4rem);
    background:
        radial-gradient(circle at top, rgba(37, 99, 235, 0.24), transparent 55%),
        radial-gradient(circle at bottom, rgba(15, 118, 110, 0.12), transparent 50%),
        rgba(4, 9, 20, 0.72);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.auth-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 9, 20, 0.25);
}

.auth-overlay .login-container {
    width: min(460px, 94vw);
    margin: 0;
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.28s ease;
}

.auth-overlay.is-visible .login-container {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .auth-overlay {
        transition: none;
    }

    .auth-overlay .login-container,
    .auth-overlay.is-visible .login-container {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

.auth-overlay__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.75));
    color: rgba(226, 232, 240, 0.9);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.auth-overlay__close:hover,
.auth-overlay__close:focus-visible {
    outline: none;
    transform: scale(1.1);
    color: #ffffff;
    border-color: rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.75), rgba(37, 99, 235, 0.9));
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.45);
    opacity: 0.85;
}

body.has-auth-overlay {
    overflow: hidden;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: clamp(1.5rem, 4vw, 2.2rem);
}

.login-logo {
    height: 70px;
    width: auto;
    margin: 0 auto 0.5rem;
    display: block;
    filter: drop-shadow(0 12px 28px rgba(15, 23, 42, 0.55));
}

.login-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.28), rgba(37, 99, 235, 0.45));
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.32);
}

.login-title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 0 22px rgba(59, 130, 246, 0.35);
}

.login-description {
    margin: 0;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.95rem;
    text-align: center;
}

.login-status {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(203, 213, 225, 0.7);
    text-align: center;
}

.login-status.is-authenticated {
    color: #a7f3d0;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: clamp(1.4rem, 3vw, 1.9rem);
    position: relative;
    align-items: stretch;
}

.auth-section-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-section-active {
    opacity: 1;
    visibility: visible;
}

.login-form .auth-section {
    transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.32s ease;
}

.login-form .auth-section-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    max-height: 0;
    pointer-events: none;
}

.login-form .auth-section-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 520px;
    pointer-events: auto;
}

.login-form [data-auth-register-only] {
    display: none;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    pointer-events: none;
}

.login-form.is-register-mode [data-auth-register-only] {
    display: flex;
    opacity: 1;
    visibility: visible;
    max-height: 520px;
    pointer-events: auto;
}

.login-form [data-auth-register-only].auth-section-active {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.login-form [data-auth-reset-step] {
    display: none;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, max-height 0.32s ease;
}

.login-form.is-password-reset-mode [data-auth-reset-step],
.login-form [data-auth-reset-step].auth-section-active {
    display: flex;
    opacity: 1;
    visibility: visible;
    max-height: 560px;
    pointer-events: auto;
}

.password-reset-step .login-hint {
    margin: 0;
    font-size: 0.9rem;
    color: #9ca3af;
}

.password-reset-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.password-reset-actions .login-link {
    font-size: 0.95rem;
    text-align: center;
}

@media (min-width: 480px) {
    .password-reset-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .password-reset-actions .login-button {
        flex: 1 1 auto;
    }

    .password-reset-actions .login-link {
        flex: 0 0 auto;
    }
}

.login-form [data-auth-login-only] {
    overflow: hidden;
}

.login-banner {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: rgba(91, 141, 239, 0.12);
    border: 1px solid rgba(91, 141, 239, 0.45);
    border-radius: 12px;
    padding: 16px;
    color: #d1e3ff;
}

.login-banner[hidden] {
    display: none !important;
}

.login-banner:not([hidden]) {
    display: flex;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
}

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.8);
}

.form-group--optional label {
    color: rgba(226, 232, 240, 0.6);
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field .form-control {
    padding: 0.85rem 3.25rem 0.85rem 1rem;
}

/* Ensure email input visually matches password input width (accounts for toggle button padding) */
.login-container input[data-auth-email].form-control,
.auth-overlay input[data-auth-email].form-control {
    /* match right padding of password-field so inner text width aligns */
    padding-right: 3.25rem;
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.28);
    color: rgba(226, 232, 240, 0.78);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    backdrop-filter: blur(12px);
}

.toggle-password:hover,
.toggle-password:focus,
.toggle-password:focus-visible {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.22);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    outline: none;
}

.toggle-password.visible {
    color: #5b8def;
}

.toggle-password::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toggle-password.visible::after {
    opacity: 1;
}

.eye-icon {
    position: relative;
    width: 22px;
    height: 14px;
}

.eye-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid currentColor;
    border-radius: 12px / 8px;
}

.eye-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: background 0.3s ease, border 0.3s ease;
}

.toggle-password.visible .eye-icon::after {
    background: transparent;
    border: 2px solid currentColor;
}

.login-feedback {
    min-height: 20px;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.7);
    text-align: center;
}

.login-feedback.error {
    color: #ff6b6b;
}

.login-feedback.success {
    color: #34d399;
}

.login-feedback[hidden] {
    display: none;
}

.login-links {
    margin-top: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.1rem;
}

.login-link {
    background: none;
    border: none;
    color: rgba(226, 232, 240, 0.7);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.login-link:hover,
.login-link:focus,
.login-link:focus-visible {
    color: rgba(226, 232, 240, 0.95);
    outline: none;
    text-decoration: underline;
    text-decoration-color: currentColor;
}

.login-link:disabled {
    opacity: 0.6;
    cursor: default;
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.login-actions button {
    width: 100%;
    margin: 0;
    padding: 0.95rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease, border-color 0.3s ease;
}

.login-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.35);
}

.login-button:hover,
.login-button:focus,
.login-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 22px 40px rgba(37, 99, 235, 0.45);
    outline: none;
    filter: brightness(1.05);
}

.guest-button {
    background: transparent;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.guest-button:hover,
.guest-button:focus,
.guest-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.45);
    outline: none;
}

.guest-info {
    margin: -0.25rem 0 0;
    font-size: 0.88rem;
    color: rgba(203, 213, 225, 0.6);
    text-align: center;
}

@media (max-width: 520px) {
    .login-container {
        margin: 40px auto;
        padding: 2rem 1.65rem;
    }

    .login-title {
        font-size: 1.25rem;
    }
}

/* Overlay styles for messages */
.overlay {
    position: fixed;
    top: clamp(1rem, 3vw, 1.5rem);
    right: clamp(1rem, 3vw, 1.5rem);
    width: min(360px, calc(100vw - 2rem));
    display: none;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
}

.overlay.overlay--visible,
.overlay.overlay--hiding {
    display: block;
}

.overlay-content {
    background: rgba(23, 30, 45, 0.95);
    padding: 1rem 1.2rem;
    border-radius: 10px;
    color: #fff;
    border-left: 4px solid rgba(91, 141, 239, 0.75);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    font-size: 0.95rem;
    line-height: 1.4;
    pointer-events: auto;
    backdrop-filter: blur(8px);
}

.overlay p {
    margin: 0;
}

.overlay.overlay--visible {
    opacity: 1;
}

.overlay.overlay--visible .overlay-content {
    animation: overlay-toast-in 240ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.overlay.overlay--hiding .overlay-content {
    animation: overlay-toast-out 200ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

.overlay--info .overlay-content {
    border-left-color: rgba(91, 141, 239, 0.9);
    background: rgba(91, 141, 239, 0.12);
}

.overlay--success .overlay-content {
    border-left-color: rgba(46, 165, 107, 0.85);
    background: rgba(46, 165, 107, 0.12);
}

.overlay--error .overlay-content {
    border-left-color: rgba(227, 87, 87, 0.85);
    background: rgba(227, 87, 87, 0.12);
}

.overlay--warning .overlay-content {
    border-left-color: rgba(219, 167, 45, 0.85);
    background: rgba(219, 167, 45, 0.12);
}

@keyframes overlay-toast-in {
    from {
        opacity: 0;
        transform: translate3d(30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes overlay-toast-out {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 0;
        transform: translate3d(30px, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .overlay.overlay--visible,
    .overlay.overlay--hiding {
        opacity: 1;
    }

    .overlay.overlay--visible .overlay-content,
    .overlay.overlay--hiding .overlay-content {
        animation: none;
    }
}

/* --------- Tagesübersicht --------- */
.page-container {
    max-width: 1120px;
    margin: clamp(28px, 6vh, 52px) auto;
    padding: 0 clamp(18px, 4vw, 48px);
}

.page-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.page-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.page-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
}

.class-select {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: min(340px, 100%);
}

.class-select label {
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.78);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.class-select select {
    width: min(100%, 360px);
    max-width: 100%;
    min-width: 0;
    appearance: none;
    border-radius: 14px;
    border: 1px solid rgba(124, 163, 255, 0.28);
    background:
        linear-gradient(140deg, rgba(91, 141, 239, 0.16), rgba(22, 28, 46, 0.12) 55%),
        rgba(14, 18, 30, 0.92);
    color: #e9eeff;
    padding: 0.78rem 2.7rem 0.78rem 0.95rem;
    line-height: 1.3;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 28px rgba(3, 8, 20, 0.42);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.class-select select:hover {
    border-color: rgba(124, 163, 255, 0.5);
}

.class-select select:focus-visible {
    outline: none;
    border-color: rgba(124, 163, 255, 0.86);
    box-shadow: 0 0 0 3px rgba(124, 163, 255, 0.24), 0 10px 30px rgba(3, 8, 20, 0.48);
    transform: translateY(-1px);
}

.hm-class-selector {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    max-height: 0;
    pointer-events: none;
    transition:
        opacity 260ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
        max-height 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hm-class-selector.is-enabled {
    max-height: 7.5rem;
}

.hm-class-selector.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hm-class-selector.is-leaving {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
}

.hm-class-selector::after {
    content: "";
    position: absolute;
    right: 0.95rem;
    top: calc(50% + 0.62rem);
    width: 0.52rem;
    height: 0.52rem;
    border-right: 2px solid rgba(221, 231, 255, 0.78);
    border-bottom: 2px solid rgba(221, 231, 255, 0.78);
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hm-class-selector.is-loading::after,
.hm-class-selector.is-updating::after {
    opacity: 0.35;
}

.hm-class-selector.is-loading select,
.hm-class-selector.is-updating select {
    cursor: wait;
}

.page-header h1,
.page-header h2 {
    margin: 0;
}

.page-title h1 {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 780;
    letter-spacing: 0.01em;
    padding: 0.42rem 0.9rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(124, 163, 255, 0.36);
    background:
        linear-gradient(145deg, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.04) 58%),
        rgba(15, 23, 42, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 10px 24px rgba(15, 23, 42, 0.36);
    color: #edf3ff;
}

.page-date {
    color: rgba(203, 213, 225, 0.78);
    font-size: 0.96rem;
    letter-spacing: 0.01em;
}

.overview-grid {
    display: grid;
    gap: clamp(16px, 2.5vw, 24px);
    margin-top: clamp(18px, 3vw, 28px);
}

@media (min-width: 900px) {
    .page-header {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }

    .page-controls {
        width: auto;
        justify-content: flex-end;
        align-items: baseline;
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .page-controls {
        justify-content: flex-end;
    }
}

@media (max-width: 599px) {
    .page-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .page-controls .hm-back-link {
        align-self: flex-start;
    }

    .class-select select {
        width: 100%;
    }
}

@media (min-width: 700px) {
    .overview-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

.day-card {
    background:
        linear-gradient(165deg, rgba(91, 141, 239, 0.12), rgba(22, 28, 46, 0) 58%),
        rgba(14, 18, 30, 0.88);
    border-radius: 16px;
    padding: clamp(14px, 2vw, 20px);
    text-align: left;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.day-card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.96);
}

.day-card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 163, 255, 0.42);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.42);
}

.day-card.current-day {
    border-color: rgba(96, 165, 250, 0.85);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.25), 0 24px 44px rgba(30, 64, 175, 0.32);
    background:
        linear-gradient(160deg, rgba(59, 130, 246, 0.24), rgba(14, 18, 30, 0.2) 62%),
        rgba(14, 18, 30, 0.9);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}

.schedule-table th,
.schedule-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    text-align: left;
}

.schedule-table th {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.84);
}

.schedule-table tbody tr:nth-child(even):not(:last-child) td {
    background: rgba(148, 163, 184, 0.04);
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-table .no-entry {
    text-align: center;
    color: #9c9c9c;
}

.site-footer,
.current-subject__footer {
    display: none !important;
}

.hm-footer {
    margin: clamp(3rem, 6vh, 4.5rem) auto 2rem;
    padding: 1.5rem clamp(1.5rem, 4vw, 3.5rem) 0;
    max-width: min(1100px, 90vw);
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.hm-footer__legal {
    display: flex;
    gap: 0.35rem;
    white-space: nowrap;
}

.hm-footer__links {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
}

.hm-footer__link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.hm-footer__link:hover,
.hm-footer__link:focus-visible {
    color: rgba(96, 165, 250, 0.9);
    outline: none;
}

.hm-footer__divider {
    opacity: 0.4;
    font-size: 1.1em;
}

.hm-toast-container {
    position: fixed;
    inset-inline-end: clamp(1rem, 4vw, 3rem);
    inset-block-start: clamp(1rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1400;
    pointer-events: none;
}

.hm-toast {
    min-width: 240px;
    max-width: 360px;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.35);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    position: relative;
}

.hm-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hm-toast--success {
    border-color: rgba(74, 222, 128, 0.5);
}

.hm-toast--error {
    border-color: rgba(248, 113, 113, 0.5);
}

.hm-toast__close {
    position: absolute;
    inset-inline-end: 0.25rem;
    inset-block-start: 0.1rem;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
}

.hm-contact-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1500;
}

.hm-contact-modal.is-visible {
    display: flex;
}

.hm-contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
}

.hm-contact-modal__dialog {
    position: relative;
    background: #101522;
    border-radius: 18px;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    width: min(640px, 92vw);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hm-contact-modal__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0;
    width: 100%;
}

.hm-contact-modal__close {
    position: absolute;
    inset-inline-end: 1rem;
    inset-block-start: 1rem;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}

.hm-contact-modal__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hm-contact-modal__lead {
    margin: 0;
    color: rgba(148, 163, 184, 0.85);
    font-size: 0.95rem;
}

.hm-contact-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.hm-contact-modal__meta {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hm-contact-modal__note {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(148, 163, 184, 0.9);
}

.hm-contact-modal__note.is-warning {
    color: rgba(248, 113, 113, 0.9);
}

.hm-contact-modal__field--full {
    grid-column: 1 / -1;
}

.hm-contact-modal__field label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.hm-contact-modal__field input,
.hm-contact-modal__field textarea {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.85);
    color: inherit;
    padding: 0.75rem 1rem;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hm-contact-modal__field textarea {
    resize: vertical;
}

.hm-contact-modal__field input:focus,
.hm-contact-modal__field textarea:focus {
    outline: none;
    border-color: rgba(96, 165, 250, 0.65);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.hm-contact-modal__hint {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.75);
}

.hm-contact-modal__hint--info {
    color: rgba(148, 163, 184, 0.8);
}

.hm-contact-modal__error {
    min-height: 1em;
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    color: rgba(248, 113, 113, 0.9);
}

.hm-contact-modal__privacy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hm-contact-modal__checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.hm-contact-modal__checkbox input {
    margin-top: 0.2rem;
}

.hm-contact-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hm-contact-modal__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    max-width: none;
    margin: 0;
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hm-contact-modal__button--primary {
    background: rgba(59, 130, 246, 0.9);
    color: #f8fafc;
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.3);
}

.hm-contact-modal__button--primary[data-loading] {
    cursor: progress;
    opacity: 0.7;
}

.hm-contact-modal__button--primary:hover,
.hm-contact-modal__button--primary:focus-visible {
    background: rgba(37, 99, 235, 0.95);
    outline: none;
}

.hm-contact-modal__button--secondary {
    background: rgba(30, 41, 59, 0.8);
    color: rgba(226, 232, 240, 0.85);
    border-color: rgba(148, 163, 184, 0.25);
}

.hm-contact-modal__button--secondary:hover,
.hm-contact-modal__button--secondary:focus-visible {
    background: rgba(30, 41, 59, 0.95);
    outline: none;
}

.hm-contact-modal__spinner {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 2px solid rgba(248, 250, 252, 0.45);
    border-top-color: transparent;
    display: none;
}

.hm-contact-modal__button--primary[data-loading] .hm-contact-modal__spinner {
    display: inline-block;
    animation: hm-contact-spin 0.75s linear infinite;
}

@keyframes hm-contact-spin {
    to {
        transform: rotate(360deg);
    }
}

.hm-contact-modal__fallback {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.22);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hm-contact-modal__fallback-link {
    color: rgba(96, 165, 250, 0.9);
    text-decoration: underline;
}

.hm-contact-modal__honeypot {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body.hm-contact-modal-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .hm-contact-modal__grid {
        grid-template-columns: 1fr;
    }

    .hm-footer {
        justify-content: center;
        gap: 0.75rem;
    }

    .hm-toast-container {
        inset-inline-end: 1rem;
        inset-block-start: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hm-footer__link,
    .hm-toast,
    .hm-contact-modal__button,
    .hm-contact-modal__spinner {
        transition: none;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Admin dashboard */
.admin-dashboard [hidden] {
    display: none !important;
}

.admin-dashboard {
    width: min(1320px, calc(100vw - clamp(1.5rem, 4vw, 4rem)));
    max-width: none;
    margin: clamp(1.5rem, 4vw, 3rem) auto;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: rgba(12, 16, 26, 0.92);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(3, 6, 14, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: #f8fafc;
}

.admin-dashboard__header {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.admin-dashboard__header h1 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    margin: 0;
}

.admin-dashboard__header p {
    margin: 0;
    color: rgba(226, 232, 240, 0.75);
}

.admin-dashboard__nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-dashboard__layout {
    display: grid;
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}

.admin-dashboard__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-dashboard__sidebar-title {
    margin: 0;
    font-size: 1rem;
    color: rgba(226, 232, 240, 0.75);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-dashboard__nav .admin-button {
    width: 100%;
    justify-content: flex-start;
}

.admin-dashboard__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.admin-dashboard__mobile-nav {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-dashboard__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-dashboard__section-title {
    margin: 0;
    font-size: 1.25rem;
}

.admin-dashboard__section-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-dashboard__section-controls {
    min-height: 1.5rem;
}

.admin-dashboard__logs {
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(6px);
    display: grid;
    gap: 0.75rem;
}

.admin-dashboard__logs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-dashboard__logs-title {
    margin: 0;
    font-size: 1.1rem;
}

.admin-dashboard__logs-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-dashboard__logs-lines {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.75);
}

.admin-dashboard__logs-lines-input {
    width: 5.5rem;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(10, 16, 28, 0.85);
    color: inherit;
    font: inherit;
}

.admin-dashboard__logs-lines-input:disabled {
    opacity: 0.65;
}

.admin-dashboard__logs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.65);
}

.admin-dashboard__logs-status {
    min-height: 1.1em;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.78);
}

.admin-dashboard__logs-status.is-error {
    color: #fca5a5;
}

.admin-dashboard__logs-content {
    max-height: 320px;
    overflow: auto;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(10, 16, 28, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.admin-dashboard__logs-content:focus {
    outline: 2px solid rgba(99, 102, 241, 0.6);
    outline-offset: 3px;
}

.admin-dashboard__logs.is-loading .admin-dashboard__logs-content {
    opacity: 0.7;
}

.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1.15rem;
    font: inherit;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(14, 116, 144, 0.35));
    color: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(14, 116, 144, 0.35);
}

.admin-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.admin-button--ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.22);
}

.admin-button--ghost:hover {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.35);
}

.admin-button.is-active {
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.45);
}

.admin-table-container {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(11, 15, 26, 0.8);
}

.admin-table th,
.admin-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-table th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.72);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table-container.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}

.admin-table-empty {
    padding: 2rem;
    text-align: center;
    color: rgba(226, 232, 240, 0.7);
}

.admin-table-container.is-empty .admin-table {
    display: none;
}

.admin-table__actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.admin-message {
    margin-top: 1.25rem;
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    background: rgba(45, 212, 191, 0.12);
    color: #f0fdfa;
    border: 1px solid rgba(45, 212, 191, 0.35);
}

.admin-message[data-type="error"] {
    background: rgba(239, 68, 68, 0.12);
    color: #fee2e2;
    border-color: rgba(239, 68, 68, 0.45);
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-pagination__buttons {
    display: flex;
    gap: 0.5rem;
}

.admin-dialog-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 12, 20, 0.65);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 2000;
}

.admin-dialog-backdrop.is-visible {
    opacity: 1;
}

.admin-dialog {
    width: min(520px, 92vw);
    background: #0f172a;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 25px 60px rgba(2, 6, 23, 0.55);
}

.admin-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.admin-dialog__title {
    margin: 0;
    font-size: 1.25rem;
}

.admin-dialog__close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
}

.admin-dialog__body {
    margin-bottom: 1rem;
}

.admin-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.admin-dialog__message {
    margin-right: auto;
    color: rgba(248, 113, 113, 0.9);
    display: none;
}

.admin-dialog__message:not(:empty) {
    display: block;
}

/* Profile page */
body.profile-page {
    background: radial-gradient(circle at 20% 20%, rgba(79, 108, 255, 0.14), transparent 32%),
        radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.12), transparent 30%),
        #0c101c;
    color: #e5e7eb;
    text-align: left;
}

.profile {
    min-height: 100vh;
    padding: clamp(1rem, 4vw, 2.5rem);
    box-sizing: border-box;
}

.profile__container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile__header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile__subtitle {
    margin: 0;
    color: var(--muted-text);
    max-width: 740px;
}

.profile__eyebrow {
    margin: 0 0 0.1rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
}

.profile__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    align-items: start;
}

.profile-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: clamp(1rem, 3vw, 1.5rem);
    box-shadow: 0 18px 38px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-card--wide {
    grid-column: 1 / -1;
}

.profile-card--danger {
    border-color: rgba(220, 38, 38, 0.35);
    background: linear-gradient(180deg, rgba(220,38,38,0.1), rgba(220,38,38,0.05));
}

.profile-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.profile-card__header h2 {
    margin: 0;
}

.profile-card__header p {
    margin: 0;
}

.profile-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.profile-meta__item {
    padding: 0.75rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}

.profile-meta__item dt {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    color: var(--muted-text);
    font-weight: 600;
}

.profile-meta__item dd {
    margin: 0;
    font-weight: 600;
    color: #f8fafc;
    word-break: break-word;
}

.profile-form {
    display: grid;
    gap: 0.65rem;
}

.profile-form__label {
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.85);
}

.profile-input {
    width: 100%;
    margin: 0;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.75);
    color: inherit;
    font: inherit;
    box-sizing: border-box;
}

.profile-input:focus {
    outline: 2px solid rgba(79, 108, 255, 0.5);
    border-color: transparent;
}

.profile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.profile-card button {
    width: auto;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-help,
.muted {
    margin: 0;
    color: var(--muted-text);
}

@media (max-width: 720px) {
    .profile-card--wide {
        grid-column: 1;
    }

    .profile-card__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.admin-form {
    display: grid;
    gap: 1rem;
}

.admin-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-form__field--checkbox {
    flex-direction: row;
    align-items: center;
}

.admin-form__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(226, 232, 240, 0.7);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.75);
    color: inherit;
    font: inherit;
}

.admin-form textarea {
    resize: vertical;
}

.admin-form__help {
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.65);
}

@media (max-width: 720px) {
    .admin-dashboard {
        padding: 1.25rem;
    }
    .admin-dashboard__logs {
        padding: 1rem;
    }
    .admin-dashboard__logs-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .admin-dashboard__logs-controls {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .admin-dashboard__logs-lines {
        width: 100%;
        justify-content: space-between;
    }
    .admin-pagination {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-table__actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 1023px) {
    .admin-dashboard {
        width: min(1180px, calc(100vw - 2rem));
    }
    .admin-dashboard__layout {
        grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .admin-dashboard__layout {
        grid-template-columns: 1fr;
    }
    .admin-dashboard__sidebar {
        display: none;
    }
    .admin-dashboard__mobile-nav {
        display: flex;
    }
    .admin-dashboard__section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-dashboard__section-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .admin-dashboard__mobile-nav .admin-button {
        flex: 1 1 auto;
        justify-content: center;
    }
}
