@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
    --app-ink: #fff;
    --app-muted: rgba(255, 255, 255, .92);
    --app-gold: #D4AF37;
    --app-glass: rgba(255, 255, 255, .12);
    --app-glass-strong: rgba(255, 255, 255, .18);
    --app-line: rgba(255, 255, 255, .22);
    --app-shadow: 0 14px 35px rgba(24, 37, 52, .2);
}

html { scroll-behavior: smooth; }

html.development-mode::after {
    position: fixed;
    z-index: 10000;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 7px 12px;
    color: #fff7d0;
    background: #543d00;
    border-top: 1px solid rgba(255, 255, 255, .35);
    content: "DEVELOPMENT MODE  /  LOCAL DATA ONLY  /  FIREBASE DISABLED";
    font: 700 10px "DM Sans", Arial, sans-serif;
    letter-spacing: 0;
    text-align: center;
}

body.app-theme {
    min-height: 100vh;
    box-sizing: border-box;
    margin: 0;
    padding: 24px;
    color: var(--app-ink);
    background-color: #9099ae;
    background-image:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 12px),
        linear-gradient(135deg, #7f8da6 0%, #9099ae 48%, #a5acbb 100%);
    background-attachment: fixed;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    animation: app-theme-enter .35s ease both;
}

.app-theme *,
.app-theme *::before,
.app-theme *::after { box-sizing: border-box; }

.app-theme h1,
.app-theme h2,
.app-theme h3,
.app-theme h4 {
    color: var(--app-ink);
    font-family: Manrope, "DM Sans", Arial, sans-serif;
    line-height: 1.2;
}

.app-theme h1 {
    margin: 8px 0 18px;
    color: var(--app-gold);
    font-size: 32px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.app-theme h2 { font-size: 21px; font-weight: 700; }
.app-theme h2 i, .app-theme h1 i { margin-right: 8px; color: #ffe08a; }
.app-theme p { color: var(--app-muted); }
.app-theme a { color: inherit; text-decoration: none; }
.app-theme a:hover { color: #fff0b5; }

.app-theme .container {
    width: min(1080px, 100%);
    margin: 0 auto;
    padding: 24px 0 44px;
    text-align: center;
}

.app-theme .container > h1 { margin-top: 14px; }
.app-theme .helper-text, .app-theme .settings-helper { color: var(--app-muted); font-size: 13px; }

.app-theme button,
.app-theme input[type="button"],
.app-theme input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto;
    min-width: 44px;
    min-height: 44px;
    margin: 5px;
    padding: 10px 17px;
    color: #292514;
    background: linear-gradient(145deg, #e6c858, #D4AF37);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 9px;
    box-shadow: 0 7px 16px rgba(34, 38, 38, .19);
    font: 700 14px "DM Sans", Arial, sans-serif;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.app-theme button:hover,
.app-theme input[type="button"]:hover,
.app-theme input[type="submit"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 10px 20px rgba(24, 37, 52, .25);
}

.app-theme button:active { transform: translateY(0); }
.app-theme button:disabled { opacity: .58; cursor: not-allowed; transform: none; }
.app-theme button:focus-visible,
.app-theme a:focus-visible,
.app-theme input:focus-visible,
.app-theme summary:focus-visible { outline: 3px solid #fff0a7; outline-offset: 3px; }

.app-theme input:not([type="checkbox"]):not([type="radio"]),
.app-theme select,
.app-theme textarea {
    max-width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    color: #25364a;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 8px;
    font: 500 16px "DM Sans", Arial, sans-serif;
}

.app-theme input::placeholder,
.app-theme textarea::placeholder { color: #778596; opacity: 1; }
.app-theme input[type="checkbox"], .app-theme input[type="radio"] { accent-color: #D4AF37; }
.app-theme label { color: var(--app-muted); font-weight: 600; }
.app-theme hr { border: 0; border-top: 1px solid var(--app-line); }

.app-theme .home-icon,
.app-theme .trash-page-icon,
.app-theme .logout-icon,
.app-theme .fullscreen-btn,
.app-theme .school-dashboard-icon {
    position: fixed;
    z-index: 20;
    top: 17px;
    display: grid;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid var(--app-line);
    border-radius: 50%;
    box-shadow: 0 7px 16px rgba(24, 37, 52, .14);
    font-size: 17px;
    backdrop-filter: blur(10px);
}

.app-theme .home-icon { left: 18px; }
.app-theme .trash-page-icon { left: 74px; }
.app-theme .logout-icon { right: 18px; }
.app-theme .fullscreen-btn { right: 18px; }
.app-theme .school-dashboard-icon { left: 74px; color: #ffe08a; background: rgba(212, 175, 55, .22); border-color: rgba(255, 224, 138, .55); }
.app-theme.page-history .school-dashboard-icon { left: 130px; }
.app-theme .home-icon:hover, .app-theme .trash-page-icon:hover, .app-theme .logout-icon:hover, .app-theme .fullscreen-btn:hover { color: #fff0a7; background: rgba(255, 255, 255, .2); }
.app-theme .school-dashboard-icon:hover { color: #fff0a7; background: rgba(212, 175, 55, .34); }

.app-theme .stats,
.app-theme .recent-card,
.app-theme .release-card,
.app-theme .settings-card,
.app-theme .history-card,
.app-theme .history-dashboard,
.app-theme .history-stat-card,
.app-theme .queue-item,
.app-theme .settings-admin-notice,
.app-theme .settings-helper,
.app-theme .empty-queue,
.app-theme .empty-history-card,
.app-theme .connection-status,
.app-theme .login-card {
    color: #fff;
    background: var(--app-glass);
    border: 1px solid var(--app-line);
    border-radius: 12px;
    box-shadow: var(--app-shadow);
    backdrop-filter: blur(14px);
}

.app-theme .stats,
.app-theme .recent-card,
.app-theme .release-card,
.app-theme .settings-card,
.app-theme .history-card,
.app-theme .login-card { padding: 22px; }

.app-theme .stats { position: relative; width: min(100%, 760px); max-width: none; margin: 24px auto; }
.app-theme .stats h2 { margin: 0 0 12px; color: #fff; }
.app-theme .recent-card { width: min(100%, 800px); min-height: 180px; max-height: 58vh; margin: 28px auto 0; overflow: auto; text-align: left; }
.app-theme .recent-card h2 { text-align: center; }
.app-theme .release-card, .app-theme .settings-card { margin: 17px auto; text-align: left; }
.app-theme .settings-card { width: min(100%, 820px); padding: 23px; }
.app-theme .settings-card h2 { margin: 0 0 18px; color: #ffe08a; }
.app-theme .settings-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 56px; padding: 10px 0; border-bottom: 1px solid var(--app-line); }
.app-theme .settings-row:last-child { border-bottom: 0; }
.app-theme .settings-row > label:first-child { flex: 1; text-align: left; }
.app-theme .settings-row > input:not([type="checkbox"]):not([type="radio"]) { width: min(100%, 290px); margin: 0; }
.app-theme .settings-helper { margin: 2px 0 9px; padding: 8px 11px; background: rgba(255, 255, 255, .06); border: 0; box-shadow: none; text-align: left; }
.app-theme .settings-helper-tight { margin-left: 0; }
.app-theme .settings-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--app-line); }
.app-theme .settings-toggle-row > label:first-child { text-align: left; }
.app-theme .settings-toggle-row .switch { flex: 0 0 auto; }
.app-theme .spot-type-options { display: flex; gap: 8px; }
.app-theme .spot-type-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 13px; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid var(--app-line); border-radius: 8px; cursor: pointer; }
.app-theme input[type="radio"]:checked + .spot-type-btn { color: #2b2715; background: var(--app-gold); border-color: #f1d46b; }
.app-theme .btn-save-settings { min-width: 190px; margin: 12px auto 0; }

.app-theme .queue-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin-bottom: 8px; padding: 9px 12px; border-radius: 9px; }
.app-theme .queue-item > span { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.app-theme .queue-item span { color: #fff; font-size: 15px; }
.app-theme .queue-position { color: #ffe08a !important; }
.app-theme .queue-actions { display: flex; flex: 0 0 auto; gap: 5px; }
.app-theme .queue-actions button { width: 36px; height: 36px; min-height: 36px; margin: 0; padding: 0; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid var(--app-line); box-shadow: none; }
.app-theme .queue-tag, .app-theme .duplicate-tag { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; color: #24364a !important; background: #eaf0f5; border-radius: 5px; font-size: 13px !important; font-weight: 700; }
.app-theme .duplicate-tag { color: #321920 !important; background: #f5a3a9; }
.app-theme .queue-tag.pending-tag, .app-theme .duplicate-tag.pending-tag { outline: 2px solid #f5d675; }
.app-theme .queue-tag.alert-tag { color: #362d11 !important; background: #f2d46b; }
.app-theme .queue-tag.released-tag { color: #fff !important; background: #317d65; }
.app-theme .status-saved { color: #89e3c5; }
.app-theme .status-saving { color: #ffe08a; }
.app-theme .empty-queue, .app-theme .empty-history-card { display: grid; min-height: 130px; padding: 24px; place-items: center; color: var(--app-muted); text-align: center; }
.app-theme .empty-history-card i { margin-bottom: 8px; color: #ffe08a; font-size: 22px; }

.app-theme .release-board-wrapper { min-height: 0; max-height: calc(100vh - 180px); margin-top: 20px; padding: 8px 0 15px; overflow: auto; overscroll-behavior: contain; border-radius: 10px; scrollbar-color: rgba(255, 255, 255, .55) rgba(255, 255, 255, .12); }
.app-theme #releaseBoard, .app-theme #spotManagerBoard { margin: 0 auto 12px; }
.app-theme .release-cell { color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); border-radius: 8px; box-shadow: 0 5px 12px rgba(25, 39, 53, .12); }
.app-theme .release-cell:hover { background: rgba(255, 255, 255, .23); }
.app-theme .release-cell.released { color: #fff; background: rgba(46, 132, 98, .86); }
.app-theme .release-cell.needs-student { color: #2d2612; background: #f0d36d; }
.app-theme .spot-cell, .app-theme .spot-header { color: #282516; background: linear-gradient(145deg, #ead071, #D4AF37); border: 1px solid rgba(255, 255, 255, .36); border-radius: 7px; }
.app-theme .board-tile { color: #fff; background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .24); box-shadow: 0 8px 17px rgba(25, 39, 53, .14); }
.app-theme.page-board .board-tile { min-width: 0; }
.app-theme .board-tile.board-large { color: #fff !important; }
.app-theme .board-tile.board-alert { color: #312811; background: #f0d36d; }
.app-theme .board-empty { background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .08); }
.app-theme .board-spot { display: inline-block; padding: 3px 7px; color: #292514; background: #f3d875; border-radius: 5px; font-size: .42em; }

.app-theme.page-home .container { padding-top: 48px; }
.app-theme.page-home .container > h1 { font-size: 38px; }
.app-theme .launcher-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: min(100%, 900px); margin: 28px auto 19px; }
.app-theme .launcher-grid > a { display: block; min-width: 0; }
.app-theme .btn-launcher { display: flex; flex-direction: column; width: 100%; min-height: 145px; margin: 0; padding: 20px 14px; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid var(--app-line); border-radius: 13px; box-shadow: var(--app-shadow); font-size: 15px; }
.app-theme .btn-launcher i { color: #ffe08a; font-size: 31px; }
.app-theme .btn-launcher:hover { background: rgba(255, 255, 255, .2); }
.app-theme .admin-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(100%, 650px); margin: 0 auto 24px; }
.app-theme .admin-buttons > a { display: block; }
.app-theme .admin-buttons .btn-admin { width: 100%; min-height: 70px; margin: 0; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid var(--app-line); box-shadow: none; }
.app-theme .admin-buttons .btn-history-admin { color: #2b2715; background: linear-gradient(145deg, #ead071, #D4AF37); }
.app-theme .admin-buttons .btn-end-admin { color: #fff; background: rgba(152, 55, 58, .72); }
.app-theme .weather-toggle { position: absolute; top: 12px; right: 12px; width: 44px; min-height: 44px; margin: 0; padding: 0; border-radius: 50%; }
.app-theme .trial-banner, .app-theme .demo-banner { width: min(100%, 1100px); margin: 12px auto; padding: 13px 18px; color: #fff; background: rgba(31, 50, 70, .78); border: 1px solid var(--app-line); border-radius: 10px; box-shadow: var(--app-shadow); }
.app-theme .trial-banner.expiring { border-color: #f0d36d; }
.app-theme .trial-banner.expired { border-color: #f09a9d; }
.app-theme .demo-title { color: #ffe08a; font-size: 12px; font-weight: 800; letter-spacing: 0; }
.app-theme .demo-subtitle { color: rgba(255, 255, 255, .94); font-size: 13px; }

.app-theme.page-car #tagInput { width: min(100%, 560px); min-height: 64px; margin: 12px auto 0; font-size: 22px; font-weight: 700; text-align: center; }
.app-theme .connection-status { display: inline-flex; min-height: 32px; align-items: center; margin: 8px auto; padding: 4px 11px; box-shadow: none; font-size: 12px; }
.app-theme .connection-online { color: #a6f0d0; }
.app-theme .connection-offline { color: #ffc3c6; }
.app-theme .connection-syncing { color: #ffe08a; }
.app-theme.page-release .container, .app-theme.page-spot .container, .app-theme.page-board .container { width: min(1180px, 100%); }
.app-theme.page-board .container { width: 100%; max-width: none; }
.app-theme.page-release .container > p, .app-theme.page-spot .container > p { color: var(--app-muted); }
.app-theme.page-board .container { padding-top: 24px; }
.app-theme.page-board h1 { margin-bottom: 14px; font-size: 27px; }
.app-theme.page-board #dismissalBoard { width: min(96vw, 100%); min-height: 0; }
.app-theme .btn-locate-student { min-width: 190px; margin: 12px auto; }

.app-theme .history-card { width: min(100%, 820px); margin: 14px auto; text-align: left; }
.app-theme .history-card h2 { margin-bottom: 13px; color: #ffe08a; }
.app-theme .history-card p { margin: 8px 0; color: rgba(255, 255, 255, .82); }
.app-theme .history-card strong { color: #fff; }
.app-theme .history-dashboard { width: min(100%, 900px); margin: 12px auto 23px; padding: 12px; border: 0; background: transparent; box-shadow: none; }
.app-theme .history-dashboard > .history-dashboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.app-theme .history-stat-card { min-width: 0; min-height: 112px; padding: 15px; cursor: pointer; text-align: left; transition: transform .16s ease, background .16s ease; }
.app-theme .history-stat-card:hover { transform: translateY(-3px); background: var(--app-glass-strong); }
.app-theme .history-stat-label { color: var(--app-muted); font-size: 12px; font-weight: 700; }
.app-theme .history-stat-label i { margin-right: 6px; color: #ffe08a; }
.app-theme .history-stat-value { margin-top: 5px; color: #fff; font: 800 26px Manrope, sans-serif; }
.app-theme .history-stat-date { color: var(--app-muted); font-size: 11px; }
.app-theme .history-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.app-theme .history-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.app-theme .history-badges span { padding: 4px 8px; color: #2b2715; background: #ead071; border-radius: 5px; font-size: 11px; font-weight: 700; }
.app-theme .history-actions { display: flex; gap: 6px; }
.app-theme .history-actions button, .app-theme .deleted-actions button { min-height: 38px; margin: 0; padding: 8px 11px; }
.app-theme .deleted-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.app-theme .history-form { color: #fff; }
.app-theme .history-form-title { color: #ffe08a; font: 700 21px Manrope, sans-serif; }
.app-theme .history-form-date { margin: 7px 0 17px; color: var(--app-muted); }
.app-theme .history-time-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app-theme .history-time-group input { width: 100%; }

.app-theme .app-modal { position: fixed; z-index: 500; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(15, 27, 39, .68); backdrop-filter: blur(8px); }
.app-theme .app-modal.hidden { display: none; }
.app-theme .app-modal-content { width: min(100%, 480px); max-height: min(90vh, 760px); overflow: auto; padding: 25px; color: #fff; background: linear-gradient(145deg, rgba(87, 101, 120, .98), rgba(55, 69, 87, .98)); border: 1px solid rgba(255, 255, 255, .3); border-radius: 14px; box-shadow: 0 26px 70px rgba(15, 27, 39, .42); text-align: left; }
.app-theme .app-modal-content h2 { margin-bottom: 9px; color: #ffe08a; }
.app-theme .app-modal-content .modal-message { color: rgba(255, 255, 255, .84); white-space: pre-line; }
.app-theme .app-modal-content > input { width: 100%; }
.app-theme .modal-buttons { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.app-theme .modal-buttons button { margin: 0; }
.app-theme .modal-cancel { color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid var(--app-line); box-shadow: none; }
.app-theme .modal-danger { color: #fff; background: #a8434b; }
.app-theme .modal-warning { color: #342b11; background: #e9ca59; }
.app-theme .modal-success { color: #143b32; background: #83d8bd; }
.app-theme .toast { position: fixed; z-index: 600; right: 18px; bottom: 48px; max-width: min(420px, calc(100vw - 36px)); padding: 13px 17px; color: #fff; background: rgba(33, 50, 68, .95); border: 1px solid var(--app-line); border-radius: 9px; box-shadow: var(--app-shadow); }
.app-theme .toast.hidden { display: none; }


.password-field-wrapper {
    position: relative;
    width: 100%;
}

.password-field-wrapper input {
    width: 100%;
    display: block;
    padding-right: 42px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    color: rgba(107, 114, 128, 0.45) !important;
    cursor: pointer;

    transition: color 0.15s ease !important;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus,
.password-toggle-btn:active {
    color: rgba(107, 114, 128, 0.70) !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    transform: translateY(-50%) !important;
    filter: none !important;
}

.password-toggle-btn i {
    font-size: 14px;
    color: inherit;
}

.password-toggle-btn:focus-visible {
    outline: 2px solid #4A7DFF;
    outline-offset: 2px;
}

.app-theme.page-login { display: grid; min-height: 100vh; padding: 32px 18px; place-items: center; }
.app-theme.page-login .login-container { width: min(100%, 460px); margin: 0 auto; }
.app-theme.page-login .login-card { padding: 32px; text-align: left; }
.app-theme.page-login .login-logo { display: grid; width: 58px; height: 58px; margin: 0 auto 17px; place-items: center; color: #2c2a1d; background: linear-gradient(145deg, #ead071, #D4AF37); border-radius: 15px; font-size: 25px; }
.app-theme.page-login .login-card h1 { margin: 0 0 8px; text-align: center; }
.app-theme.page-login .login-subtitle { margin: 0 0 22px; text-align: center; }
.app-theme.page-login .login-field { margin: 14px 0; }
.app-theme.page-login .login-field label { display: block; margin-bottom: 5px; }
.app-theme.page-login .login-field input { width: 100%; margin: 0; text-align: left; }
.app-theme.page-login .btn-login, .app-theme.page-login .btn-demo { display: flex; width: 100%; margin: 10px 0; }
.app-theme.page-login .btn-demo { color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid var(--app-line); box-shadow: none; }
.app-theme.page-login .signup-link { display: block; margin: 13px 0; color: #ffe08a; text-align: center; }
.app-theme.page-login .login-help { color: var(--app-muted); text-align: center; }

.app-theme table { width: 100%; border-collapse: collapse; color: #fff; }
.app-theme th, .app-theme td { padding: 11px 13px; border: 1px solid var(--app-line); text-align: left; }
.app-theme th { color: #292514; background: #ead071; }
.app-theme .nav-link { display: inline-flex; align-items: center; min-height: 42px; margin: 4px; padding: 9px 13px; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid var(--app-line); border-radius: 8px; font-weight: 700; }
.app-theme .nav-link:hover { color: #fff0a7; background: rgba(255, 255, 255, .2); }
.app-theme .card, .app-theme .school-card, .app-theme .slot-card, .app-theme .log-card, .app-theme .account-card, .app-theme .subscription-card, .app-theme .note-box { width: min(100%, 900px); margin: 13px auto; padding: 20px; color: #fff; background: var(--app-glass); border: 1px solid var(--app-line); border-radius: 12px; box-shadow: var(--app-shadow); backdrop-filter: blur(14px); text-align: left; }
.app-theme .account-card h2, .app-theme .subscription-card h2, .app-theme .note-box h2, .app-theme .note-box h3 { margin-top: 0; color: #ffe08a; }
.app-theme .account-row, .app-theme .subscription-row, .app-theme .status-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--app-line); }
.app-theme .account-row:last-child, .app-theme .subscription-row:last-child { border-bottom: 0; }
.app-theme .account-label, .app-theme .subscription-label, .app-theme .status-label { color: var(--app-muted); font-weight: 700; }
.app-theme .account-value, .app-theme .subscription-value, .app-theme .status-value { color: #fff; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.app-theme .badge { display: inline-flex; align-items: center; min-height: 29px; margin: 3px 4px 8px 0; padding: 5px 10px; color: #fff0b0; background: rgba(212, 175, 55, .2); border: 1px solid rgba(255, 224, 138, .35); border-radius: 7px; font-size: 12px; font-weight: 700; }
.app-theme .permission-list { margin: 15px 0; }
.app-theme .permission { display: flex; align-items: center; gap: 9px; margin: 8px 0; color: rgba(255, 255, 255, .9); }
.app-theme .allowed-icon { color: #8be1bf; }
.app-theme .blocked-icon { color: #ff9ba0; }
.app-theme .trial-active { color: #8be1bf; }
.app-theme .trial-warning { color: #ffe08a; }
.app-theme .trial-expired { color: #ff9ba0; }
.app-theme .cta-box { margin-top: 18px; padding: 18px; background: rgba(212, 175, 55, .12); border: 1px solid rgba(255, 224, 138, .32); border-radius: 10px; }
.app-theme .contact-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 11px 15px; color: #282514; background: linear-gradient(145deg, #ead071, #D4AF37); border-radius: 8px; font-weight: 700; }
.app-theme .school-card { cursor: pointer; transition: transform .16s ease, background .16s ease; }
.app-theme .school-card:hover { transform: translateY(-2px); background: var(--app-glass-strong); }
.app-theme .school-name, .app-theme .title, .app-theme .slot-title, .app-theme .action { margin-bottom: 9px; color: #ffe08a; font: 700 18px Manrope, sans-serif; }
.app-theme .date { color: var(--app-muted); font-size: 13px; }
.app-theme .value { color: #ffe08a; font: 800 34px Manrope, sans-serif; }
.app-theme .dashboard-grid, .app-theme .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; width: min(100%, 1100px); margin: 22px auto; }
.app-theme .dashboard-card { min-height: 130px; padding: 21px; color: #fff; background: var(--app-glass); border: 1px solid var(--app-line); border-radius: 12px; box-shadow: var(--app-shadow); text-align: left; }
.app-theme .dashboard-card h2 { color: #ffe08a; }
.app-theme #schoolModal { z-index: 300; background: rgba(13, 24, 36, .72) !important; backdrop-filter: blur(7px); }
.app-theme #schoolModal > div { width: min(100% - 32px, 520px) !important; margin: max(10vh, 30px) auto !important; padding: 24px !important; color: #fff; background: linear-gradient(145deg, #606d80, #414f62) !important; border: 1px solid var(--app-line); border-radius: 13px !important; box-shadow: 0 25px 70px rgba(10, 20, 31, .4); }
.app-theme #schoolModal > div h2 { color: #ffe08a; }
body.app-theme::before, body.app-theme::after { display: none; }
body.app-theme > p { width: min(100%, 900px); margin: 12px auto; padding: 12px 16px; color: rgba(255, 255, 255, .86); background: var(--app-glass); border: 1px solid var(--app-line); border-radius: 9px; text-align: left; }
.app-theme #schoolList, .app-theme #userList, .app-theme #logList, .app-theme #slotList { display: block; min-height: 96px; }
.app-theme #schoolList:empty::before { display: block; padding: 24px; color: var(--app-muted); content: "No schools yet. Add a school to get started."; }
.app-theme #userList:empty::before { display: block; padding: 24px; color: var(--app-muted); content: "No users to display yet."; }
.app-theme #logList:empty::before { display: block; padding: 24px; color: var(--app-muted); content: "No activity has been recorded yet."; }
.app-theme #slotList:empty::before { display: block; padding: 24px; color: var(--app-muted); content: "No school slots are available yet."; }
.app-theme .trial-hero { width: min(100%, 900px); margin: 20px auto; padding: 24px; color: #fff; background: var(--app-glass); border: 1px solid var(--app-line); border-radius: 13px; box-shadow: var(--app-shadow); backdrop-filter: blur(14px); }
.app-theme .trial-plan { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; color: #302916; background: #ead071; border-radius: 7px; font-weight: 700; }
.app-theme .trial-days { margin-top: 14px; color: #fff; font: 800 34px Manrope, sans-serif; }
.app-theme .trial-date { color: var(--app-muted); }
.app-theme .trial-progress { height: 10px; margin-top: 17px; overflow: hidden; background: rgba(255, 255, 255, .18); border: 1px solid var(--app-line); border-radius: 10px; }
.app-theme .trial-progress-fill { height: 100%; background: linear-gradient(90deg, #ffe08a, #D4AF37); border-radius: inherit; transition: width .3s ease; }
.app-theme .billing-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.app-theme .billing-features li { display: flex; align-items: center; gap: 9px; color: rgba(255, 255, 255, .88); }
.app-theme .billing-features i { color: #9ce3c7; }
.app-theme .user-card { width: min(100%, 900px); margin: 13px auto; padding: 18px 20px; color: #fff; background: var(--app-glass); border: 1px solid var(--app-line); border-radius: 11px; box-shadow: var(--app-shadow); text-align: left; cursor: pointer; }
.app-theme .user-card:hover { background: var(--app-glass-strong); }
.app-theme .history-dashboard { display: block; width: 100%; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.app-theme #historyDashboard > .history-dashboard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(100%, 900px); margin: 12px auto 22px; }

@keyframes app-theme-enter { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 760px) {
    body.app-theme { padding: 72px 15px 39px; }
    .app-theme .container { padding: 13px 0 34px; }
    .app-theme h1 { font-size: 28px; }
    .app-theme .launcher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
    .app-theme .btn-launcher { min-height: 125px; padding: 15px 10px; font-size: 13px; }
    .app-theme .btn-launcher i { font-size: 26px; }
    .app-theme .admin-buttons { gap: 7px; }
    .app-theme .admin-buttons .btn-admin { flex-direction: column; min-height: 62px; gap: 5px; padding: 8px; font-size: 12px; }
    .app-theme .recent-card { max-height: 54vh; padding: 15px; }
    .app-theme .settings-card { padding: 17px; }
    .app-theme .history-dashboard > .history-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-theme #historyDashboard > .history-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .app-theme .history-card { padding: 17px; }
    .app-theme .release-board-wrapper { max-height: calc(100vh - 170px); }
    .app-theme .home-icon, .app-theme .trash-page-icon, .app-theme .logout-icon, .app-theme .fullscreen-btn, .app-theme .school-dashboard-icon { top: 12px; width: 42px; height: 42px; }
    .app-theme .home-icon { left: 12px; }
    .app-theme .trash-page-icon { left: 62px; }
    .app-theme .school-dashboard-icon { left: 62px; }
    .app-theme.page-history .school-dashboard-icon { left: 112px; }
    .app-theme .logout-icon, .app-theme .fullscreen-btn { right: 12px; }
    .app-theme.page-login { padding: 72px 14px 42px; }
    .app-theme.page-login .login-card { padding: 22px; }
    .app-theme .card, .app-theme .school-card, .app-theme .slot-card, .app-theme .log-card { padding: 16px; }
}

@media (max-width: 480px) {
    .app-theme .settings-row, .app-theme .settings-toggle-row { align-items: stretch; flex-direction: column; gap: 8px; }
    .app-theme .settings-row > input:not([type="checkbox"]):not([type="radio"]) { width: 100%; }
    .app-theme .settings-row > label:first-child, .app-theme .settings-toggle-row > label:first-child { text-align: left; }
    .app-theme .settings-toggle-row { flex-direction: row; align-items: center; }
    .app-theme .queue-item { align-items: flex-start; }
    .app-theme .queue-item > span { max-width: calc(100% - 76px); }
    .app-theme .history-header { flex-direction: column; }
    .app-theme .history-actions { align-self: flex-end; }
    .app-theme .history-time-row { grid-template-columns: 1fr; }
    .app-theme .modal-buttons { display: grid; grid-template-columns: 1fr 1fr; }
    .app-theme .modal-buttons button { width: 100%; }
    .app-theme .billing-features { grid-template-columns: 1fr; }
    .app-theme .settings-admin-notice { padding: 14px; }
    .app-theme .account-row, .app-theme .subscription-row, .app-theme .status-row { align-items: flex-start; flex-direction: column; gap: 4px; }
    .app-theme .account-value, .app-theme .subscription-value, .app-theme .status-value { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .app-theme *, .app-theme *::before, .app-theme *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}