@font-face {
    font-family: "longal";
    src: url("../fonts/longal.ttf") format("truetype");
    font-display: swap;
}

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

body {
    color: white;
    font-family: Arial, sans-serif;
}

.admin-login-body {
    min-height: 100vh;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.92)
        ),
        url("../images/stkbackround.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.admin-login-page {
    min-height: 100vh;

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

    padding: 35px 20px;
}

.admin-login-card {
    width: 100%;
    max-width: 480px;

    padding: 50px 42px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0)
        ),
        rgba(8, 8, 8, 0.96);

    border: 2px solid white;
    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 0 20px rgba(255, 255, 255, 0.12),
        0 0 55px rgba(0, 0, 0, 0.8);
}

.admin-login-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.admin-login-logo img {
    width: 130px;
    height: auto;

    transition: transform 0.3s ease;
}

.admin-login-logo:hover img {
    transform: scale(1.06);
}

.admin-eyebrow {
    margin-bottom: 8px;

    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 4px;

    opacity: 0.65;
}

.admin-login-card h1 {
    margin-bottom: 12px;

    font-family: "longal", Arial, sans-serif;
    font-size: clamp(2.8rem, 8vw, 4.6rem);

    text-shadow:
        0 0 5px rgba(255, 255, 255, 0.65),
        0 0 12px rgba(255, 255, 255, 0.25);
}

.admin-login-description {
    margin-bottom: 35px;
    opacity: 0.7;
}

.admin-login-form {
    display: flex;
    flex-direction: column;

    gap: 22px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;

    gap: 9px;

    text-align: left;
}

.admin-form-group label {
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.admin-form-group input {
    width: 100%;
    padding: 14px 15px;

    background: #050505;
    color: white;

    border: 1px solid #666;
    border-radius: 5px;

    font: inherit;

    outline: none;

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

.admin-form-group input:focus {
    border-color: white;

    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.14);
}

.admin-primary-button {
    width: 100%;

    margin-top: 5px;
    padding: 15px 25px;

    background: white;
    color: black;

    border: 2px solid white;

    cursor: pointer;

    font-weight: bold;
    letter-spacing: 2px;

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

.admin-primary-button:hover {
    background: transparent;
    color: white;

    transform: translateY(-3px);
}

.admin-primary-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;

    transform: none;
}

.admin-login-message {
    min-height: 22px;

    font-size: 0.92rem;
    line-height: 1.5;
}

.admin-login-message.error {
    color: #ff8f8f;
}

.admin-login-message.success {
    color: #8fffac;
}

.admin-back-link {
    display: inline-block;

    margin-top: 28px;

    color: white;

    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-decoration: none;

    opacity: 0.65;

    transition: opacity 0.3s ease;
}

.admin-back-link:hover {
    opacity: 1;
}

@media (max-width: 550px) {
    .admin-login-card {
        padding: 40px 22px;
    }

    .admin-login-logo img {
        width: 105px;
    }
}

/* =========================
   Control Center Dashboard
========================= */

[hidden] {
    display: none !important;
}

.admin-dashboard-body {
    min-height: 100vh;

    background: #080808;
    color: white;
}

.dashboard-loading {
    min-height: 100vh;

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

    gap: 20px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.72),
            rgba(0, 0, 0, 0.95)
        ),
        url("../images/stkbackround.png");

    background-size: cover;
    background-position: center;

    letter-spacing: 3px;
    text-align: center;
}

.dashboard-loading img {
    width: 130px;

    animation: dashboardPulse 1.5s ease-in-out infinite;
}

@keyframes dashboardPulse {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.96);
    }

    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

.admin-app {
    min-height: 100vh;

    display: flex;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;

    width: 285px;
    height: 100vh;

    display: flex;
    flex-direction: column;

    padding: 28px 22px;

    overflow-y: auto;

    background:
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.035),
            rgba(255, 255, 255, 0)
        ),
        #050505;

    border-right: 1px solid #444;
}

.admin-brand {
    display: flex;
    align-items: center;

    gap: 13px;
    padding-bottom: 26px;

    border-bottom: 1px solid #333;
}

.admin-brand img {
    width: 65px;
    height: 65px;

    object-fit: contain;
}

.admin-brand h1 {
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.admin-brand .admin-eyebrow {
    margin-bottom: 4px;

    font-size: 0.62rem;
}

.admin-navigation {
    display: flex;
    flex-direction: column;

    gap: 8px;
    margin-top: 30px;
}

.admin-nav-link {
    display: flex;
    align-items: center;

    gap: 13px;
    padding: 14px 15px;

    color: #bbb;

    border: 1px solid transparent;
    border-radius: 6px;

    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.5px;

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

.admin-nav-link:hover {
    color: white;

    background: #151515;
    border-color: #444;

    transform: translateX(3px);
}

.admin-nav-link.active {
    background: white;
    color: black;

    border-color: white;
}

.admin-nav-icon {
    width: 25px;

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

    font-size: 1.2rem;
}

.admin-sidebar-bottom {
    margin-top: auto;
    padding-top: 28px;

    display: flex;
    flex-direction: column;

    gap: 12px;
}

.admin-view-site-link,
.admin-logout-button {
    width: 100%;

    padding: 13px 12px;

    background: transparent;
    color: white;

    border: 1px solid #555;

    cursor: pointer;

    text-align: center;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1.5px;

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

.admin-view-site-link:hover {
    background: #151515;
    border-color: white;
}

.admin-logout-button:hover {
    background: white;
    color: black;

    border-color: white;
}

.admin-main {
    width: calc(100% - 285px);
    min-height: 100vh;

    margin-left: 285px;
}

.admin-topbar {
    min-height: 90px;

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

    gap: 25px;
    padding: 17px 35px;

    background: rgba(8, 8, 8, 0.96);

    border-bottom: 1px solid #333;
}

.admin-topbar h2 {
    margin-top: 3px;

    font-size: 1.55rem;
    letter-spacing: 2px;
}

.admin-page-label {
    font-size: 0.67rem;
    font-weight: bold;
    letter-spacing: 3px;

    opacity: 0.55;
}

.admin-user {
    display: flex;
    align-items: center;

    gap: 12px;
}

.admin-user-avatar {
    width: 44px;
    height: 44px;

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

    background: white;
    color: black;

    border-radius: 50%;

    font-weight: bold;
}

.admin-user-details {
    display: flex;
    flex-direction: column;

    gap: 4px;
}

.admin-user-details strong {
    font-size: 0.88rem;
    letter-spacing: 1px;
}

.admin-user-details span {
    max-width: 240px;

    overflow: hidden;

    font-size: 0.75rem;

    opacity: 0.6;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-menu-button {
    display: none;

    width: 44px;
    height: 40px;

    margin: 0;
    padding: 8px;

    background: transparent;

    border: 1px solid white;

    cursor: pointer;
}

.admin-menu-button span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: white;
}

.admin-content {
    padding: 42px 35px 70px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.86),
            rgba(0, 0, 0, 0.96)
        ),
        url("../images/stkbackround.png");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.dashboard-welcome {
    padding: 38px;

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

    gap: 30px;

    background:
        linear-gradient(
            140deg,
            rgba(255, 255, 255, 0.07),
            rgba(255, 255, 255, 0)
        ),
        #111;

    border: 2px solid white;
    border-radius: 14px;
}

.dashboard-welcome h2 {
    margin: 8px 0 13px;

    font-size: clamp(2rem, 5vw, 3.3rem);
}

.dashboard-welcome > div > p:last-child {
    max-width: 700px;

    line-height: 1.7;

    opacity: 0.72;
}

.admin-primary-link {
    flex-shrink: 0;

    display: inline-block;

    padding: 14px 22px;

    background: white;
    color: black;

    border: 2px solid white;

    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;

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

.admin-primary-link:hover {
    background: transparent;
    color: white;

    transform: translateY(-3px);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
    margin-top: 28px;
}

.dashboard-stat-card {
    min-height: 205px;
    padding: 28px 24px;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0)
        ),
        #111;

    border: 1px solid #555;
    border-radius: 10px;

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

.dashboard-stat-card:hover {
    transform: translateY(-6px);

    border-color: white;

    box-shadow: 0 0 22px rgba(255, 255, 255, 0.08);
}

.dashboard-stat-label {
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 2px;

    opacity: 0.6;
}

.dashboard-stat-card h3 {
    margin: 20px 0;

    font-size: 3.4rem;
}

.dashboard-stat-card a {
    margin-top: auto;

    color: white;

    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1.3px;
    text-decoration: none;

    opacity: 0.65;
}

.dashboard-stat-card a:hover {
    opacity: 1;
}

.dashboard-role {
    font-size: 1.8rem !important;
    letter-spacing: 2px;
}

.dashboard-status {
    margin-top: auto;

    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 2px;

    opacity: 0.6;
}

.dashboard-section {
    margin-top: 55px;
}

.dashboard-section-header {
    margin-bottom: 22px;

    display: flex;
    justify-content: space-between;
    align-items: end;
}

.dashboard-section-header h2 {
    margin-top: 7px;

    font-size: 2rem;
    letter-spacing: 2px;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.dashboard-action-card {
    min-height: 155px;
    padding: 27px;

    display: flex;
    align-items: center;

    gap: 22px;

    background: #101010;
    color: white;

    border: 1px solid #555;
    border-radius: 9px;

    text-decoration: none;

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

.dashboard-action-card:hover {
    transform: translateY(-5px);

    background: #181818;
    border-color: white;
}

.dashboard-action-symbol {
    min-width: 58px;
    height: 58px;

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

    background: white;
    color: black;

    border-radius: 50%;

    font-size: 1.7rem;
    font-weight: bold;
}

.dashboard-action-card h3 {
    margin-bottom: 9px;

    letter-spacing: 1.5px;
}

.dashboard-action-card p {
    line-height: 1.6;

    opacity: 0.65;
}

.dashboard-system-card {
    padding: 8px 28px;

    background: #101010;

    border: 1px solid #555;
    border-radius: 9px;
}

.system-status-row {
    min-height: 75px;

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

    gap: 25px;

    border-bottom: 1px solid #333;
}

.system-status-row:last-child {
    border-bottom: none;
}

.system-status-row > div {
    display: flex;
    align-items: center;

    gap: 12px;
}

.system-status-row strong,
.system-status-row > span {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
}

.system-status-row > span {
    opacity: 0.65;
}

.system-indicator {
    width: 10px;
    height: 10px;

    background: #70ff8d;

    border-radius: 50%;

    box-shadow: 0 0 9px rgba(112, 255, 141, 0.7);
}

.dashboard-message {
    min-height: 22px;
    margin-top: 15px;

    color: #ffb0b0;

    font-size: 0.85rem;
    line-height: 1.5;
}

.admin-overlay {
    display: none;
}

/* Tablet */

@media (max-width: 1150px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile admin navigation */

@media (max-width: 850px) {
    .admin-sidebar {
        left: -290px;

        transition: left 0.3s ease;
    }

    .admin-sidebar.open {
        left: 0;
    }

    .admin-main {
        width: 100%;
        margin-left: 0;
    }

    .admin-menu-button {
        display: block;
    }

    .admin-overlay {
        position: fixed;
        inset: 0;
        z-index: 1100;

        background: rgba(0, 0, 0, 0.7);
    }

    .admin-overlay.show {
        display: block;
    }

    .admin-topbar {
        padding: 15px 18px;
    }

    .admin-content {
        padding: 30px 18px 60px;

        background-attachment: scroll;
    }
}

@media (max-width: 650px) {
    .admin-topbar > div:nth-child(2) {
        display: none;
    }

    .admin-user-details span {
        max-width: 145px;
    }

    .dashboard-welcome {
        padding: 28px 22px;

        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-stats,
    .dashboard-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-action-card {
        align-items: flex-start;
    }

    .system-status-row {
        align-items: flex-start;
        flex-direction: column;

        padding: 20px 0;
    }
}

/* =========================
   Admin Management Pages
========================= */

.admin-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 30px;
    margin-bottom: 28px;
    padding: 34px;

    background: #111;

    border: 2px solid white;
    border-radius: 12px;
}

.admin-page-heading h2 {
    margin: 8px 0 12px;

    font-size: clamp(2rem, 5vw, 3.2rem);
}

.admin-page-heading > div > p:last-child {
    max-width: 680px;

    line-height: 1.7;
    opacity: 0.7;
}

.admin-auto-width {
    width: auto;
    flex-shrink: 0;
}

.admin-management-message {
    min-height: 24px;
    margin-bottom: 18px;

    font-size: 0.9rem;
    line-height: 1.5;
}

.admin-management-message.error {
    color: #ff9e9e;
}

.admin-management-message.success {
    color: #8fffac;
}

.admin-form-panel {
    margin-bottom: 35px;
    padding: 32px;

    background: #101010;

    border: 1px solid #666;
    border-radius: 12px;
}

.admin-form-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 28px;
}

.admin-form-panel-header h2 {
    margin-top: 6px;

    font-size: 2rem;
}

.admin-close-button {
    width: 44px;
    height: 44px;

    margin: 0;
    padding: 0;

    background: transparent;
    color: white;

    border: 1px solid #666;

    font-size: 1.8rem;
    cursor: pointer;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.admin-form-group select,
.admin-form-group textarea {
    width: 100%;
    padding: 14px 15px;

    background: #050505;
    color: white;

    border: 1px solid #666;
    border-radius: 5px;

    font: inherit;

    outline: none;
}

.admin-form-group textarea {
    resize: vertical;
}

.admin-full-width {
    grid-column: 1 / -1;
}

.admin-checkbox-group {
    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 14px;
}

.admin-checkbox-group label {
    display: flex;
    align-items: center;

    gap: 10px;

    font-weight: bold;
}

.admin-checkbox-group input {
    width: 18px;
    height: 18px;
}

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

    gap: 12px;
    margin-top: 28px;
}

.admin-secondary-button {
    padding: 14px 22px;

    background: transparent;
    color: white;

    border: 1px solid #666;

    cursor: pointer;

    font-weight: bold;
    letter-spacing: 1px;
}

.admin-table-section {
    padding: 30px;

    background: #101010;

    border: 1px solid #555;
    border-radius: 12px;
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 25px;
    margin-bottom: 24px;
}

.admin-table-header h2 {
    margin-top: 6px;

    font-size: 2rem;
}

.admin-search-input {
    width: min(330px, 100%);
    padding: 13px 15px;

    background: #050505;
    color: white;

    border: 1px solid #666;

    font: inherit;
}

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

.admin-data-table {
    width: 100%;

    border-collapse: collapse;
}

.admin-data-table th,
.admin-data-table td {
    padding: 16px 14px;

    border-bottom: 1px solid #333;

    text-align: left;
    vertical-align: middle;
}

.admin-data-table th {
    font-size: 0.72rem;
    letter-spacing: 1.4px;

    opacity: 0.65;
}

.admin-player-cell {
    display: flex;
    align-items: center;

    gap: 13px;
}

.admin-player-avatar {
    width: 48px;
    height: 48px;

    object-fit: cover;

    background: #222;

    border: 1px solid #666;
    border-radius: 50%;
}

.admin-player-avatar-placeholder {
    width: 48px;
    height: 48px;

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

    background: white;
    color: black;

    border-radius: 50%;

    font-weight: bold;
}

.admin-player-name {
    font-weight: bold;
}

.admin-player-subtext {
    margin-top: 4px;

    font-size: 0.76rem;

    opacity: 0.55;
}

.admin-status-badge {
    display: inline-block;

    padding: 7px 10px;

    border: 1px solid #777;
    border-radius: 999px;

    font-size: 0.68rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.admin-status-badge.active {
    border-color: #70ff8d;
    color: #8fffac;
}

.admin-status-badge.inactive {
    border-color: #ff8f8f;
    color: #ff9e9e;
}

.admin-action-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.admin-small-button {
    padding: 8px 11px;

    background: transparent;
    color: white;

    border: 1px solid #666;

    cursor: pointer;

    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.admin-small-button:hover {
    background: white;
    color: black;
}

.admin-small-button.delete:hover {
    background: #ff6868;
    border-color: #ff6868;
    color: black;
}

.admin-empty-cell {
    padding: 45px !important;

    text-align: center !important;

    opacity: 0.55;
}

@media (max-width: 750px) {
    .admin-page-heading,
    .admin-table-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .admin-full-width {
        grid-column: auto;
    }

    .admin-form-panel,
    .admin-table-section {
        padding: 23px 18px;
    }
}

/* =========================
   Player Image Uploads
========================= */

.admin-form-group input[type="file"] {
    width: 100%;
    padding: 12px;

    background: #050505;
    color: white;

    border: 1px solid #666;
    border-radius: 5px;

    font: inherit;
}

.admin-upload-preview {
    margin-top: 12px;

    display: block;

    background: #080808;

    border: 1px solid #555;
    border-radius: 8px;

    object-fit: cover;
}

.profile-preview {
    width: 110px;
    height: 110px;

    border-radius: 50%;
}

.banner-preview {
    width: 100%;
    max-width: 360px;
    height: 140px;
}