* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #e30613;
    --red-dark: #b8000f;
    --red-light: #fff1f2;
    --text: #202020;
    --muted: #707070;
    --background: #f5f6f7;
    --card: #ffffff;
    --border: #e4e4e4;
    --nav: #ffffff;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    font-family: "Segoe UI", Arial, sans-serif;

    background: var(--background);
    color: var(--text);

    transition:
        background 0.25s ease,
        color 0.25s ease;
}


/* =========================
   NAVIGATION
========================= */

nav {
    width: 100%;
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 42px;

    background: var(--nav);

    border-bottom: 4px solid var(--red);

    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.07);

    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    width: 135px;
    height: 52px;

    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    height: 44px;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 0 14px;

    color: var(--text);

    text-decoration: none;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 600;

    transition: 0.2s ease;
}

.nav-link i {
    font-size: 14px;
}

.nav-link:hover {
    color: var(--red);
    background: var(--red-light);
}

.nav-link.active {
    color: var(--red);
}


/* THEME BUTTON */

.theme-toggle {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    background: transparent;

    color: var(--text);

    border-radius: 9px;

    cursor: pointer;

    font-size: 15px;

    transition: 0.2s ease;
}

.theme-toggle:hover {
    color: var(--red);
    border-color: var(--red);
    background: var(--red-light);
}


/* RIGHT SIDE */

.nav-right {
    display: flex;
    align-items: center;
    gap: 22px;
}


/* CONNECT ROBLOX */

.connect-button {
    height: 43px;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 0 17px;

    border: none;

    border-radius: 9px;

    background: #eeeeee;

    color: #999;

    font-size: 13px;
    font-weight: 600;

    cursor: not-allowed;
}

.connect-button i {
    font-size: 16px;
}

.connect-button.disabled {
    opacity: 0.75;
}


/* CLOCK */

.clock {
    min-width: 125px;

    padding-left: 20px;

    border-left: 1px solid var(--border);

    display: flex;
    flex-direction: column;

    align-items: flex-end;
}

.clock-location {
    display: flex;
    align-items: center;
    gap: 6px;

    color: var(--muted);

    font-size: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.6px;
}

.clock-location i {
    color: var(--red);
}

.clock-time {
    margin-top: 2px;

    color: var(--text);

    font-size: 18px;

    font-weight: 700;

    font-variant-numeric: tabular-nums;

    letter-spacing: 0.5px;
}


/* =========================
   MAIN
========================= */

main {
    flex: 1;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 500px;

    position: relative;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.78),
            rgba(0, 0, 0, 0.46),
            rgba(0, 0, 0, 0.18)
        ),
        linear-gradient(
            135deg,
            #e30613,
            #8f0009
        );

    border-bottom: 5px solid var(--red);
}

.hero::after {
    content: "";

    position: absolute;

    right: -150px;
    top: -200px;

    width: 600px;
    height: 600px;

    border: 80px solid rgba(255, 255, 255, 0.07);

    border-radius: 50%;
}

.hero-content {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    padding: 80px 45px;
}

.hero-badge {
    display: inline-flex;

    align-items: center;
    gap: 9px;

    padding: 8px 14px;

    margin-bottom: 22px;

    color: #ffffff;

    background: rgba(255, 255, 255, 0.14);

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 5px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.5px;
}

.hero h1 {
    max-width: 750px;

    color: #ffffff;

    font-size: clamp(42px, 6vw, 68px);

    line-height: 1.05;

    margin-bottom: 20px;

    font-weight: 700;
}

.hero p {
    max-width: 650px;

    color: rgba(255, 255, 255, 0.92);

    font-size: 19px;

    line-height: 1.7;
}

.hero-subtext {
    margin-top: 4px;

    color: rgba(255, 255, 255, 0.7) !important;

    font-size: 15px !important;
}

.hero-actions {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 32px;
}

.hero-button {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 13px 20px;

    border-radius: 8px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition: 0.2s ease;
}

.hero-button.primary {
    background: #ffffff;

    color: var(--red);
}

.hero-button.primary:hover {
    transform: translateY(-2px);

    background: #f5f5f5;
}

.hero-button.secondary {
    color: #ffffff;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);

    transform: translateY(-2px);
}


/* =========================
   QUICK ACCESS
========================= */

.quick-links {
    width: 100%;

    max-width: 1100px;

    margin: 0 auto;

    padding: 70px 45px;
}

.section-heading {
    margin-bottom: 25px;
}

.section-heading span {
    color: var(--red);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.section-heading h2 {
    margin-top: 5px;

    font-size: 28px;
}


/* QUICK GRID */

.quick-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}

.quick-card {
    min-height: 125px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 22px;

    position: relative;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 12px;

    color: var(--text);

    text-decoration: none;

    box-shadow: var(--shadow);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.quick-card:hover {
    transform: translateY(-3px);

    border-color: var(--red);
}

.quick-icon {
    min-width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--red-light);

    color: var(--red);

    border-radius: 9px;

    font-size: 19px;
}

.quick-icon.warning {
    color: #d98b00;

    background: #fff6df;
}

.quick-card h3 {
    font-size: 16px;

    margin-bottom: 4px;
}

.quick-card p {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.4;
}

.card-arrow {
    position: absolute;

    right: 20px;

    color: #bbb;

    font-size: 13px;

    transition: 0.2s;
}

.quick-card:hover .card-arrow {
    color: var(--red);

    right: 16px;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #1d1d1d;

    color: #ffffff;

    padding: 28px 45px;
}

.footer-content {
    max-width: 1100px;

    margin: 0 auto;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 15px;
}

.footer-brand img {
    width: 100px;

    filter: brightness(0) invert(1);

    opacity: 0.9;
}

.footer-brand p {
    color: #999;

    font-size: 13px;
}

.footer-right {
    color: #999;

    font-size: 13px;
}


/* =========================
   DARK MODE
========================= */

body.dark {
    --text: #eeeeee;
    --muted: #a8a8a8;
    --background: #111111;
    --card: #1b1b1b;
    --border: #333333;
    --nav: #181818;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.dark .nav-link {
    color: #eeeeee;
}

body.dark .nav-link:hover {
    color: #ff4752;
    background: rgba(227, 6, 19, 0.12);
}

body.dark .theme-toggle {
    color: #eeeeee;

    border-color: #444444;
}

body.dark .connect-button {
    background: #292929;

    color: #777777;
}

body.dark .clock-time {
    color: #eeeeee;
}

body.dark .hero h1,
body.dark .hero h2 {
    color: #ffffff;
}

body.dark .quick-card {
    background: #1b1b1b;
}

body.dark .quick-icon {
    background: rgba(227, 6, 19, 0.12);
}

body.dark .quick-icon.warning {
    background: rgba(217, 139, 0, 0.12);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 950px) {

    nav {
        padding: 0 20px;
    }

    .nav-left {
        gap: 15px;
    }

    .logo {
        width: 110px;
    }

    .nav-link {
        padding: 0 9px;
    }

    .nav-link span {
        display: none;
    }

    .nav-right {
        gap: 10px;
    }

    .connect-button span {
        display: none;
    }

    .connect-button {
        width: 43px;

        padding: 0;

        justify-content: center;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 650px) {

    nav {
        min-height: 72px;

        flex-wrap: wrap;

        gap: 10px;

        padding: 10px 15px;
    }

    .nav-left {
        width: 100%;

        justify-content: space-between;
    }

    .nav-links {
        flex: 1;

        justify-content: flex-end;
    }

    .nav-right {
        width: 100%;

        justify-content: flex-end;

        padding-bottom: 5px;
    }

    .clock {
        border-left: 0;

        padding-left: 0;
    }

    .hero-content {
        padding: 60px 25px;
    }

    .hero {
        min-height: 440px;
    }

    .hero-actions {
        flex-direction: column;

        align-items: flex-start;
    }

    .quick-links {
        padding: 50px 20px;
    }

    footer {
        padding: 25px 20px;
    }

    .footer-content {
        flex-direction: column;

        gap: 15px;

        text-align: center;
    }

}

/* =========================
   UNAVAILABLE PAGE
========================= */

.unavailable-page {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(227, 6, 19, 0.08),
            transparent 38%
        ),
        var(--background);

    transition:
        background 0.25s ease,
        color 0.25s ease;
}


/* HEADER */

.unavailable-header {
    width: 100%;

    height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 42px;

    background: var(--nav);

    border-bottom: 4px solid var(--red);

    box-shadow:
        0 3px 18px rgba(0, 0, 0, 0.07);
}

.unavailable-logo {
    display: flex;
    align-items: center;

    text-decoration: none;
}

.unavailable-logo img {
    width: 135px;
    height: 52px;

    object-fit: contain;
}


/* THEME BUTTON */

.unavailable-theme-toggle {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    background: transparent;

    color: var(--text);

    border-radius: 9px;

    cursor: pointer;

    font-size: 15px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;
}

.unavailable-theme-toggle:hover {
    color: var(--red);

    border-color: var(--red);

    background: var(--red-light);
}


/* MAIN */

.unavailable-main {
    flex: 1;

    width: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 60px 25px;
}


/* CARD */

.unavailable-card {
    width: 100%;

    max-width: 560px;

    padding: 55px 45px;

    text-align: center;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.08);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


/* ICON */

.unavailable-icon {
    width: 72px;
    height: 72px;

    margin: 0 auto 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--red);

    background: var(--red-light);

    font-size: 28px;
}


/* LABEL */

.unavailable-label {
    margin-bottom: 9px;

    color: var(--red);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}


/* HEADING */

.unavailable-card h1 {
    margin-bottom: 15px;

    color: var(--text);

    font-size: 36px;

    line-height: 1.15;
}


/* TEXT */

.unavailable-card p {
    max-width: 420px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.7;
}

.unavailable-subtext {
    margin-top: 4px !important;

    font-size: 13px !important;
}


/* BUTTON */

.unavailable-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-top: 30px;

    padding: 13px 22px;

    color: #ffffff;

    background: var(--red);

    border-radius: 8px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        0 5px 15px rgba(227, 6, 19, 0.22);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.unavailable-button:hover {
    background: var(--red-dark);

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(227, 6, 19, 0.28);
}


/* FOOTER */

.unavailable-footer {
    padding: 25px;

    text-align: center;

    color: #999999;

    background: #1d1d1d;

    font-size: 13px;
}


/* DARK MODE */

body.dark .unavailable-page {
    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(227, 6, 19, 0.10),
            transparent 38%
        ),
        var(--background);
}

body.dark .unavailable-card {
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.35);
}

body.dark .unavailable-icon {
    background: rgba(227, 6, 19, 0.12);
}

body.dark .unavailable-theme-toggle {
    color: #eeeeee;

    border-color: #444444;
}

body.dark .unavailable-theme-toggle:hover {
    color: #ff4752;

    border-color: #ff4752;

    background: rgba(227, 6, 19, 0.12);
}


/* MOBILE */

@media (max-width: 600px) {

    .unavailable-header {
        height: 72px;

        padding: 0 20px;
    }

    .unavailable-logo img {
        width: 115px;
    }

    .unavailable-main {
        padding: 35px 18px;
    }

    .unavailable-card {
        padding: 40px 25px;
    }

    .unavailable-card h1 {
        font-size: 30px;
    }

}

.connect-button.connected {
    background: var(--red);
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.connect-button.connected:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.discord-account {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: #5865f2;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.2);
}

.discord-account i {
    font-size: 18px;
}

.discord-account span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.connect-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    background: #5865f2;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.connect-button:hover {
    background: #4752c4;
    transform: translateY(-1px);
}

.connect-button i {
    font-size: 18px;
}

/* =========================================================
   ADMIN APPLICATIONS
========================================================= */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 55px 45px;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}

.admin-page-header h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--text);
    font-size: 30px;
    line-height: 1.2;
}

.admin-page-header h1 i {
    color: var(--red);
}

.admin-page-header p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
}

.admin-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 15px;

    border: 1px solid var(--red);
    border-radius: 9px;

    background: var(--red);
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.button:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.button.secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.button.secondary:hover {
    background: var(--red-light);
    border-color: var(--red);
    color: var(--red);
}


/* =========================================================
   ADMIN STATS
========================================================= */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.stat-box {
    padding: 25px;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 12px;

    text-align: center;

    box-shadow: var(--shadow);

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.stat-box h3 {
    margin: 0;

    color: var(--red);

    font-size: 32px;
    line-height: 1;
}

.stat-box p {
    margin-top: 8px;

    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   ADMIN CARD
========================================================= */

.card {
    width: 100%;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow: var(--shadow);

    overflow: hidden;

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.card > .section-heading {
    padding: 25px 25px 20px;
    margin: 0;
}

.card > .section-heading h2 {
    color: var(--text);
}


/* =========================================================
   APPLICATION TABLE
========================================================= */

.application-table-wrapper {
    width: 100%;

    overflow-x: auto;

    border-top: 1px solid var(--border);
}

.application-table {
    width: 100%;
    min-width: 850px;

    margin: 0;

    border-collapse: collapse;
    border-spacing: 0;
}

.application-table th {
    padding: 14px 15px;

    background: var(--red);

    color: #ffffff;

    text-align: left;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.application-table td {
    padding: 15px;

    border-bottom: 1px solid var(--border);

    color: var(--text);

    font-size: 13px;

    vertical-align: middle;
}

.application-table tbody tr:last-child td {
    border-bottom: none;
}

.application-table tbody tr {
    transition: background 0.15s ease;
}

.application-table tbody tr:hover td {
    background: var(--red-light);
}


/* =========================================================
   APPLICANT
========================================================= */

.applicant-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.applicant-name {
    color: var(--text);

    font-size: 14px;
    font-weight: 700;
}

.applicant-discord {
    color: var(--muted);

    font-size: 11px;
}


/* =========================================================
   APPLICATION NAME
========================================================= */

.application-table td strong {
    color: var(--text);
}


/* =========================================================
   DATE
========================================================= */

.application-date {
    color: var(--muted);

    font-size: 12px;

    white-space: nowrap;
}


/* =========================================================
   STATUS
========================================================= */

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 80px;

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 800;

    text-transform: capitalize;

    white-space: nowrap;
}

.status.pending {
    background: #fff3cd;
    color: #9a6b00;
}

.status.accepted {
    background: #e7f7ed;
    color: #16803c;
}

.status.rejected {
    background: #ffe1e1;
    color: #c00000;
}


/* =========================================================
   APPLICATION ACTIONS
========================================================= */

.application-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.view-answers-button,
.review-button {
    min-height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 0 11px;

    border: none;
    border-radius: 7px;

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.view-answers-button {
    background: var(--red-light);
    color: var(--red);
}

.view-answers-button:hover {
    background: var(--red);
    color: #ffffff;
    transform: translateY(-1px);
}

.review-button {
    background: #eeeeee;
    color: #333333;
}

.review-button:hover {
    background: #dddddd;
    transform: translateY(-1px);
}


/* =========================================================
   EMPTY APPLICATIONS
========================================================= */

.empty-applications {
    padding: 65px 20px;

    border-top: 1px solid var(--border);

    text-align: center;
}

.empty-applications i {
    display: block;

    margin-bottom: 15px;

    color: var(--red);

    font-size: 38px;
}

.empty-applications strong {
    display: block;

    margin-bottom: 6px;

    color: var(--text);

    font-size: 16px;
}

.empty-applications p {
    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   APPLICATION MODALS
========================================================= */

.application-modal {
    position: fixed;

    inset: 0;

    z-index: 5000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(4px);
}

.application-modal.active {
    display: flex;
}

.application-modal-card {
    width: 100%;
    max-width: 850px;

    max-height: 90vh;

    display: flex;
    flex-direction: column;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 14px;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.3);

    overflow: hidden;

    animation: applicationModalOpen 0.18s ease-out;
}

@keyframes applicationModalOpen {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.application-modal-header {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 18px 24px;

    border-bottom: 1px solid var(--border);

    flex-shrink: 0;
}

.application-modal-header h2 {
    margin: 0;

    color: var(--text);

    font-size: 21px;
    line-height: 1.3;
}

.application-modal-header p {
    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
}

.modal-close {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: transparent;

    color: var(--text);

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.modal-close:hover {
    color: var(--red);

    border-color: var(--red);

    background: var(--red-light);
}

.application-modal-body {
    padding: 24px;

    overflow-y: auto;
}


/* =========================================================
   ANSWERS
========================================================= */

.answer-item {
    padding: 18px;

    margin-bottom: 14px;

    background: var(--background);

    border: 1px solid var(--border);

    border-radius: 10px;
}

.answer-item:last-child {
    margin-bottom: 0;
}

.answer-number {
    margin-bottom: 6px;

    color: var(--red);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.2px;
}

.answer-question {
    margin-bottom: 10px;

    color: var(--text);

    font-size: 15px;
    font-weight: 700;

    line-height: 1.5;
}

.answer-value {
    padding: 12px 14px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 8px;

    color: var(--text);

    font-size: 14px;

    line-height: 1.6;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
}

.no-answers {
    padding: 50px 20px;

    text-align: center;

    color: var(--muted);
}

.no-answers i {
    display: block;

    margin-bottom: 12px;

    color: var(--red);

    font-size: 30px;
}

.no-answers strong {
    display: block;

    margin-bottom: 5px;

    color: var(--text);
}


/* =========================================================
   REVIEW MODAL
========================================================= */

.review-modal-card {
    max-width: 600px;
}

.review-form {
    display: flex;
    flex-direction: column;

    gap: 14px;

    margin: 0;
}

.review-form label {
    margin-bottom: -5px;

    color: var(--text);

    font-size: 13px;
    font-weight: 700;
}

.review-form select,
.review-form textarea {
    width: 100%;

    font-family: inherit;

    font-size: 14px;

    color: var(--text);

    background: var(--background);

    border: 1px solid var(--border);

    border-radius: 8px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.review-form select {
    min-height: 44px;

    padding: 0 12px;

    cursor: pointer;
}

.review-form textarea {
    min-height: 140px;

    padding: 12px;

    resize: vertical;
}

.review-form select:focus,
.review-form textarea:focus {
    border-color: var(--red);

    box-shadow:
        0 0 0 3px rgba(227, 6, 19, 0.1);
}

.review-form textarea::placeholder {
    color: var(--muted);
}

.review-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 8px;

    margin-top: 5px;
}


/* =========================================================
   DARK MODE - APPLICATIONS
========================================================= */

body.dark .application-table tbody tr:hover td {
    background: rgba(227, 6, 19, 0.08);
}

body.dark .review-button {
    background: #292929;
    color: #eeeeee;
}

body.dark .review-button:hover {
    background: #353535;
}

body.dark .answer-item {
    background: #151515;
}

body.dark .answer-value {
    background: #1b1b1b;
}

body.dark .review-form select,
body.dark .review-form textarea {
    background: #151515;
    color: #eeeeee;
}

body.dark .stat-box {
    background: #1b1b1b;
}


/* =========================================================
   MOBILE - APPLICATIONS
========================================================= */

@media (max-width: 950px) {

    .container {
        padding: 45px 25px;
    }

    .admin-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-page-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}


@media (max-width: 800px) {

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .application-table-wrapper {
        overflow-x: auto;
    }

    .application-modal {
        padding: 12px;
    }

    .application-modal-card {
        max-height: 94vh;
    }
}


@media (max-width: 650px) {

    .container {
        padding: 35px 18px;
    }

    .admin-page-header h1 {
        font-size: 25px;
    }

    .admin-page-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-page-actions .button {
        width: 100%;
    }

    .admin-stats {
        gap: 12px;
    }

    .stat-box {
        padding: 20px;
    }

    .application-modal {
        padding: 8px;
    }

    .application-modal-card {
        border-radius: 12px;
    }

    .application-modal-header {
        padding: 16px;
    }

    .application-modal-body {
        padding: 16px;
    }

    .application-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .view-answers-button,
    .review-button {
        width: 100%;
    }

    .review-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .review-form-actions .button {
        width: 100%;
    }
}


/* =========================================================
   VERY SMALL SCREENS
========================================================= */

@media (max-width: 400px) {

    .container {
        padding: 25px 12px;
    }

    .admin-page-header h1 {
        font-size: 22px;
    }

    .application-modal-header h2 {
        font-size: 18px;
    }

    .application-modal-body {
        padding: 12px;
    }
}

/* =========================
   PUBLIC FLEET PAGE
========================= */

.fleet-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 65px 35px 80px;
}

.fleet-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.fleet-label {
    display: block;
    margin-bottom: 7px;
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.fleet-header h1 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 38px;
    line-height: 1.15;
}

.fleet-header p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.fleet-count {
    min-width: 120px;
    padding: 15px 20px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.fleet-count strong {
    display: block;
    color: var(--red);
    font-size: 25px;
    line-height: 1;
}

.fleet-count span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.fleet-table-card {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.fleet-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.fleet-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    border-spacing: 0;
}

.fleet-table thead {
    background: var(--red);
}

.fleet-table th {
    padding: 16px 18px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.fleet-table td {
    padding: 17px 18px;
    color: var(--text);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.fleet-table tbody tr {
    background: var(--card);
    transition: background 0.15s ease;
}

.fleet-table tbody tr:hover {
    background: var(--red-light);
}

.fleet-table tbody tr:last-child td {
    border-bottom: none;
}

.fleet-bus-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 6px 9px;
    background: var(--red-light);
    color: var(--red);
    border-radius: 6px;
    font-size: 13px;
}

.fleet-livery {
    display: inline-block;
    padding: 5px 10px;
    background: var(--red-light);
    color: var(--red);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.fleet-empty {
    height: 250px;
    text-align: center !important;
    vertical-align: middle;
    white-space: normal !important;
}

.fleet-empty i {
    display: block;
    margin-bottom: 12px;
    color: var(--red);
    font-size: 32px;
}

.fleet-empty strong {
    display: block;
    color: var(--text);
    font-size: 16px;
}

.fleet-empty span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}


/* DARK MODE */

body.dark .fleet-table tbody tr:hover {
    background: rgba(227, 6, 19, 0.08);
}

body.dark .fleet-bus-number,
body.dark .fleet-livery {
    background: rgba(227, 6, 19, 0.12);
}


/* MOBILE */

@media (max-width: 700px) {

    .fleet-page {
        padding: 45px 15px 60px;
    }

    .fleet-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .fleet-header h1 {
        font-size: 32px;
    }

    .fleet-count {
        width: 100%;
    }

    .fleet-table-card {
        border-radius: 10px;
    }

    .fleet-table {
        min-width: 850px;
    }

}

/* =========================
   ADMIN FLEET PAGE
========================= */

.fleet-admin-page {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 60px 35px 80px;
}

.fleet-admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 25px;
}

.fleet-admin-header h1 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 38px;
}

.fleet-admin-header p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.fleet-add-button {
    white-space: nowrap;
}

.fleet-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    margin-bottom: 22px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
}

.fleet-message.success {
    color: #207a45;
    background: #eaf8f0;
    border: 1px solid #bde8ce;
}

.fleet-message.error {
    color: #b4232d;
    background: #fff0f1;
    border: 1px solid #f3c1c5;
}

.fleet-admin-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 22px;
}

.fleet-admin-stat {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 190px;
    padding: 17px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 11px;
    box-shadow: var(--shadow);
}

.fleet-admin-stat > i {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    background: var(--red-light);
    border-radius: 8px;
}

.fleet-admin-stat strong {
    display: block;
    color: var(--text);
    font-size: 20px;
}

.fleet-admin-stat span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.fleet-admin-card {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.fleet-admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.fleet-admin-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
}

.fleet-admin-table thead {
    background: var(--red);
}

.fleet-admin-table th {
    padding: 15px 16px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.fleet-admin-table td {
    padding: 15px 16px;
    color: var(--text);
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.fleet-admin-table tbody tr {
    background: var(--card);
    transition: background 0.15s ease;
}

.fleet-admin-table tbody tr:hover {
    background: var(--red-light);
}

.fleet-admin-table tbody tr:last-child td {
    border-bottom: none;
}

.fleet-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.fleet-actions form {
    margin: 0;
}

.fleet-edit-button,
.fleet-delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.fleet-edit-button {
    color: var(--red);
    background: var(--red-light);
    border: 1px solid transparent;
}

.fleet-edit-button:hover {
    border-color: var(--red);
}

.fleet-delete-button {
    color: #c62828;
    background: #fff0f0;
    border: 1px solid transparent;
}

.fleet-delete-button:hover {
    background: #ffe0e0;
    border-color: #c62828;
}

.fleet-admin-empty {
    height: 250px;
    text-align: center !important;
    vertical-align: middle;
    white-space: normal !important;
}

.fleet-admin-empty i {
    display: block;
    margin-bottom: 12px;
    color: var(--red);
    font-size: 34px;
}

.fleet-admin-empty strong {
    display: block;
    color: var(--text);
    font-size: 16px;
}

.fleet-admin-empty span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}


/* =========================
   FLEET MODALS
========================= */

.fleet-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    background: rgba(0, 0, 0, 0.6);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.fleet-modal.active {
    opacity: 1;
    visibility: visible;
}

.fleet-modal-card {
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;

    background: var(--card);

    border: 1px solid var(--border);
    border-radius: 15px;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);

    transform: translateY(10px);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.fleet-modal.active .fleet-modal-card {
    transform: translateY(0);
}

.fleet-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 25px 27px;

    border-bottom: 1px solid var(--border);
}

.fleet-modal-header span {
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.fleet-modal-header h2 {
    margin-top: 5px;
    color: var(--text);
    font-size: 24px;
}

.fleet-modal-close {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: transparent;
    color: var(--muted);

    cursor: pointer;

    transition: 0.2s ease;
}

.fleet-modal-close:hover {
    color: var(--red);
    border-color: var(--red);
    background: var(--red-light);
}

.fleet-form {
    padding: 27px;
}

.fleet-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
}

.fleet-form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.fleet-form-field.full {
    grid-column: 1 / -1;
}

.fleet-form-field label {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.fleet-form-field input {
    width: 100%;
    height: 43px;

    padding: 0 12px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: var(--background);
    color: var(--text);

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.fleet-form-field input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.fleet-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid var(--border);
}


/* DARK MODE */

body.dark .fleet-message.success {
    color: #8be0ad;
    background: rgba(48, 180, 105, 0.12);
    border-color: rgba(48, 180, 105, 0.25);
}

body.dark .fleet-message.error {
    color: #ff8b92;
    background: rgba(227, 6, 19, 0.1);
    border-color: rgba(227, 6, 19, 0.25);
}

body.dark .fleet-admin-table tbody tr:hover {
    background: rgba(227, 6, 19, 0.08);
}

body.dark .fleet-admin-stat > i {
    background: rgba(227, 6, 19, 0.12);
}

body.dark .fleet-edit-button {
    background: rgba(227, 6, 19, 0.12);
}

body.dark .fleet-delete-button {
    color: #ff8b92;
    background: rgba(227, 6, 19, 0.1);
}

body.dark .fleet-delete-button:hover {
    background: rgba(227, 6, 19, 0.18);
    border-color: #ff4752;
}


/* MOBILE */

@media (max-width: 750px) {

    .fleet-admin-page {
        padding: 45px 18px 60px;
    }

    .fleet-admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .fleet-add-button {
        width: 100%;
    }

    .fleet-admin-stats {
        width: 100%;
    }

    .fleet-admin-stat {
        width: 100%;
    }

    .fleet-form-grid {
        grid-template-columns: 1fr;
    }

    .fleet-form-field.full {
        grid-column: auto;
    }

    .fleet-form-actions {
        flex-direction: column-reverse;
    }

    .fleet-form-actions .button {
        width: 100%;
        justify-content: center;
    }

    .fleet-modal {
        padding: 15px;
    }

    .fleet-modal-card {
        max-height: 95vh;
    }

}