body {
    margin: 0;
    color: white;
    font-family: Arial, sans-serif;
    background-image: url("images/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.page-loading[hidden] {
    display: none;
}

.page-loading {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 6, 23, .78);
}

.page-loading-box {
    padding: 22px 28px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 14px;
    color: #fef08a;
    background: rgba(15, 23, 42, .96);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 20px;
    letter-spacing: .4px;
    text-shadow: 2px 2px 0 #14532d;
}

header {
    background: rgba(30, 41, 59, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .35);
}

.banner {
    width: min(500px, calc(100% - 40px));
    display: block;
    margin: 0 auto;
    padding: 30px 0 20px;
}

.site-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px 18px;
}

.header-server-status {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 30px;
    padding: 0 20px 12px;
    color: #e2e8f0;
    font-size: 14px;
}

.header-status-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.status-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.status-light-online {
    color: #22c55e;
    background: #22c55e;
}

.status-light-offline {
    color: #ef4444;
    background: #ef4444;
}

.nav-link {
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: white;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: #082f49;
    background: #38bdf8;
}

.dashboard {
    width: min(1100px, calc(100% - 40px));
    margin: 30px auto;
}

.servers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.card {
    background: rgba(30, 41, 59, 0.55);
    margin: 0;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, .45);
}

.system-card {
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    margin: 20px auto 0;
}

h2 {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: Impact, "Arial Black", sans-serif;
    font-weight: 400;
    letter-spacing: .5px;
}

.card h1,
.card h2,
.card h3 {
    color: #fef08a;
    text-align: center;
    text-shadow: 3px 3px 0 #14532d, 0 0 12px rgba(134, 239, 172, .35);
}

.minecraft-heading {
    color: #fef08a;
    text-align: center;
    text-shadow: 3px 3px 0 #14532d, 0 0 12px rgba(134, 239, 172, .35);
}

.heading-icon {
    width: 30px;
    height: 30px;
    margin-left: 7px;
    vertical-align: -5px;
    image-rendering: pixelated;
}

p {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 12px 0;
    font-size: 16px;
}

b {
    color: #38bdf8;
    text-align: right;
}

.online {
    color: #22c55e;
    font-weight: bold;
}

.offline {
    color: #ef4444;
    font-weight: bold;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    width: min(500px, calc(100% - 40px));
    margin: 0 auto;
}

.login-card {
    width: 100%;
    box-sizing: border-box;
}

label,
input,
textarea,
button {
    display: block;
}

input,
button {
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 12px;
    border-radius: 8px;
    font: inherit;
}

input {
    border: 1px solid rgba(255, 255, 255, .25);
    color: white;
    background: rgba(15, 23, 42, .75);
}

textarea {
    width: 100%;
    min-height: 110px;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 12px;
    resize: vertical;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
    color: white;
    background: rgba(15, 23, 42, .75);
    font: inherit;
}

button {
    margin-top: 20px;
    cursor: pointer;
    border: 0;
    color: #082f49;
    background: #38bdf8;
    font-weight: bold;
}

.login-error {
    color: #fca5a5;
    display: block;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 500px;
    margin: 0 auto 20px;
}

.admin-header h1 {
    margin: 0;
    width: 100%;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-button {
    padding: 10px 14px;
    border-radius: 8px;
    color: white;
    background: rgba(255, 255, 255, .15);
    text-decoration: none;
}

.back-button:hover {
    background: rgba(255, 255, 255, .25);
}

.logout-button {
    width: auto;
    margin: 0;
    padding: 9px 14px;
    color: white;
    background: rgba(255, 255, 255, .15);
}

.button-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.button-row button {
    flex: 1;
    margin: 0;
}

.button-row button:disabled {
    cursor: wait;
    opacity: .6;
}

.stop-button {
    color: white;
    background: #dc2626;
}

.restart-button {
    color: white;
    background: #d97706;
}

.action-message {
    min-height: 24px;
    max-width: 500px;
    margin: 0 auto 12px;
    color: #bae6fd;
}

.admin-feedback {
    max-width: 500px;
    margin: 20px auto 0;
}

.admin-members {
    max-width: 500px;
    box-sizing: border-box;
    margin: 20px auto;
}

.backup-card {
    max-width: 500px;
    box-sizing: border-box;
    margin: 20px auto 0;
}

.backup-description,
.backup-empty {
    display: block;
    color: #cbd5e1;
    line-height: 1.45;
}

.backup-server {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.backup-server h3 {
    margin: 0 0 10px;
}

.restore-button {
    color: white;
    background: #d97706;
}

.manual-backup-button {
    color: #082f49;
    background: #67e8f9;
}

.feedback-item {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.feedback-item h3 {
    margin: 0;
}

.feedback-item p {
    display: block;
    margin-bottom: 0;
    white-space: pre-wrap;
}

.feedback-notice {
    display: block;
    margin: 14px 0;
    padding: 10px 12px;
    border: 1px solid #facc15;
    border-radius: 8px;
    background: rgba(113, 63, 18, .55);
    color: #fef08a;
    font-weight: bold;
    text-align: center;
}

.feedback-delete-button {
    width: auto;
    margin-top: 10px;
    padding: 7px 13px;
    background: #991b1b;
    color: white;
}

.feedback-delete-button:hover { background: #b91c1c; }

.welcome-card,
.info-page .card {
    max-width: 500px;
    margin: 0 auto 20px;
    box-sizing: border-box;
}

.welcome-card h1,
.info-page h1 {
    margin-top: 0;
}

.welcome-heading {
    position: relative;
    min-height: 78px;
}

.welcome-title {
    margin: 0;
    padding: 2px 58px 8px 0;
    color: #86efac;
    font-family: Impact, "Arial Black", sans-serif;
    font-weight: 400;
    letter-spacing: .8px;
    line-height: 1.05;
    text-align: center;
    text-shadow: 3px 3px 0 #14532d, 0 0 12px rgba(134, 239, 172, .35);
}

.welcome-title span {
    display: block;
}

.welcome-title span:first-child {
    margin-bottom: 5px;
    color: #fef08a;
    font-size: 30px;
}

.welcome-title span:last-child {
    color: #bbf7d0;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: .4px;
    text-shadow: 2px 2px 0 #14532d;
}

.block-adventurer {
    position: absolute;
    top: -4px;
    right: 0;
    width: 52px;
    height: 52px;
    image-rendering: pixelated;
}

.pvp-notice {
    display: block;
    padding: 12px 14px;
    border-left: 3px solid #facc15;
    color: #fef3c7;
    font-style: italic;
    line-height: 1.45;
    background: rgba(120, 53, 15, .22);
}

.play-planning {
    display: block;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    line-height: 1.45;
}

.alternative-label {
    display: block;
    color: #fef08a;
    text-align: center;
}

.help-note {
    display: block;
    color: #cbd5e1;
    font-size: 14px;
    font-style: italic;
    line-height: 1.4;
    text-align: center;
}

.welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.info-page ol,
.info-page ul {
    padding-left: 22px;
    line-height: 1.6;
}

.server-addresses {
    margin-top: 20px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

select {
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
    color: white;
    background: rgba(15, 23, 42, .75);
    font: inherit;
}

.time-slots {
    display: grid;
    gap: 8px;
}

.time-slot {
    margin: 0;
    padding: 7px 10px;
    font-size: 14px;
    text-align: left;
}

.booked-slot {
    color: white;
    background: #0f766e;
}

.selected-slot {
    outline: 3px solid #facc15;
    outline-offset: 2px;
}

.time-slot.locked-slot,
.time-slot.locked-slot:disabled {
    cursor: not-allowed;
    color: #94a3b8;
    background: rgba(71, 85, 105, .55);
    opacity: .75;
}

.cancel-button {
    color: white;
    background: #dc2626;
}

.parent-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.parent-check input {
    width: auto;
    margin: 0;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.calendar-weekdays {
    margin-top: 16px;
    color: #cbd5e1;
    font-size: 12px;
    text-align: center;
}

.calendar-day {
    min-height: 40px;
    margin: 0;
    padding: 6px;
    color: white;
    background: rgba(255, 255, 255, .12);
}

.calendar-day.booked-day {
    background: #0f766e;
}

.calendar-day.selected-day {
    outline: 3px solid #facc15;
    outline-offset: 1px;
}

.contribution-card > button { margin-top: 8px; }

.swish-modal[hidden] { display: none; }

.swish-modal {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 6, 23, .76);
}

.swish-modal-content {
    position: relative;
    width: min(100%, 380px);
    box-sizing: border-box;
    padding: 28px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 16px;
    background: rgba(15, 23, 42, .97);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .45);
}

.swish-modal-content h2 { margin-top: 0; }

.feedback-modal-content {
    width: min(100%, 620px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    text-align: left;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    font-size: 25px;
    line-height: 1;
}

.swish-qr {
    display: block;
    width: min(100%, 280px);
    margin: 18px auto;
    padding: 8px;
    border-radius: 10px;
    background: white;
}

.swish-details { line-height: 1.7; }

.swish-small {
    color: #cbd5e1;
    font-size: 14px;
}

.pvp-reset-button {
    width: 100%;
    margin-top: 12px;
    color: white;
    background: #b91c1c;
}

.public-start-button {
    width: 100%;
    margin-top: 10px;
    color: #052e16;
    background: #86efac;
}

.public-start-button:disabled {
    color: #cbd5e1;
    background: rgba(71, 85, 105, .55);
}

.inline-help {
    display: inline-block;
    width: 24px;
    margin: 0 0 0 6px;
    padding: 2px;
    border-radius: 50%;
}

.form-hint,
.login-intro {
    display: block;
    color: #cbd5e1;
    line-height: 1.5;
}

.admin-login-link { opacity: .72; }

.member-item {
    margin: 12px 0;
    padding: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
}

.member-item p { display: block; }

.member-accesses {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
}

.member-access {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.member-access input,
.member-item > label input { width: auto; margin: 0 5px 0 0; }

.kick-button {
    color: white;
    background: #b91c1c;
}

.members-list-modal {
    width: min(100%, 560px);
}

.minecraft-member-table {
    margin-top: 18px;
    overflow: hidden;
    border: 3px solid #14532d;
    box-shadow: 4px 4px 0 #052e16;
    background: #1e293b;
}

.minecraft-member-row {
    display: grid;
    grid-template-columns: minmax(90px, .8fr) minmax(120px, 1.3fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 7px 10px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: #f8fafc;
    background: rgba(15, 23, 42, .88);
}

.minecraft-member-row:nth-child(odd) { background: rgba(20, 83, 45, .45); }

.minecraft-member-heading {
    border-top: 0;
    color: #fef08a;
    background: #14532d;
    font-family: Impact, "Arial Black", sans-serif;
    letter-spacing: .4px;
    text-shadow: 2px 2px 0 #052e16;
}

.member-leave-button {
    width: auto;
    margin: 0;
    padding: 6px 10px;
    color: white;
    background: #b91c1c;
    font-size: 13px;
}

.gamertag-guide-image {
    display: block;
    width: 100%;
    margin: 16px auto;
    border: 3px solid #14532d;
    box-sizing: border-box;
    image-rendering: auto;
}

@media (max-width: 480px) {
    .minecraft-member-row { grid-template-columns: .8fr 1.2fr auto; padding: 7px; font-size: 13px; }
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

.reset-modal-content .parent-check {
    justify-content: center;
    text-align: left;
}

.console-video {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 18px 0;
}

.youtube-link {
    display: inline-block;
    width: 54px;
    line-height: 0;
    transition: transform .15s ease;
}

.youtube-link:hover,
.youtube-link:focus-visible {
    transform: scale(1.08);
}

.youtube-link img {
    width: 100%;
    height: auto;
}

.login-back {
    display: block;
    width: fit-content;
    margin: 18px auto 0;
    color: #bae6fd;
    text-decoration: none;
}

.login-back:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .site-nav {
        gap: 6px;
        padding: 0 10px 14px;
    }

    .nav-link {
        padding: 7px 10px;
        font-size: 13px;
    }

    .admin-header {
        align-items: flex-start;
        gap: 12px;
    }

    .admin-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .back-button {
        padding: 8px 10px;
        font-size: 13px;
    }
}
