/* =========================================
   KOCKICA FOOTBALL
   ADMIN PANEL — PREMIUM RESPONSIVE
========================================= */

:root {
    --black: #080808;
    --dark: #101010;
    --dark-2: #171717;

    --yellow: #ffd400;
    --yellow-dark: #e4bd00;

    --white: #ffffff;
    --gray: #929292;
    --muted: #5f5f5f;

    --border: rgba(255, 255, 255, 0.09);

    --green: #35b968;
    --red: #e05252;
}

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

html {
    background: var(--black);
    color-scheme: dark;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at 75% 0%,
            rgba(255, 212, 0, 0.035),
            transparent 30%
        ),
        var(--black);
    color: var(--white);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   NAVBAR
========================================= */

.admin-navbar {
    min-height: 68px;
    padding: 0 clamp(20px, 5vw, 64px);

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

    border-bottom: 1px solid var(--border);
    background: rgba(8, 8, 8, 0.92);

    position: sticky;
    top: 0;
    z-index: 20;

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.admin-logo {
    width: 122px;
    flex-shrink: 0;
}

.admin-logo img {
    width: 100%;
    height: auto;
}

.back-button {
    min-height: 38px;
    padding: 0 14px;

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

    border: 1px solid var(--border);
    background: transparent;
    color: #aaa;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;

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

.back-button:hover {
    background: var(--yellow);
    color: var(--black);
    border-color: var(--yellow);
}

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

.admin-main {
    width: min(1120px, calc(100% - clamp(32px, 7vw, 120px)));
    margin: 0 auto;
    padding: clamp(48px, 7vw, 78px) 0;
}

/* =========================================
   INTRO
========================================= */

.admin-intro {
    max-width: 760px;
    margin-bottom: clamp(42px, 6vw, 68px);
}

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

    color: var(--yellow);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.admin-intro h1 {
    font-size: clamp(40px, 6vw, 76px);
    line-height: 0.94;
    letter-spacing: -3.5px;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-intro h1 span {
    color: var(--yellow);
}

.admin-intro > p:last-child {
    max-width: 510px;
    margin-top: 22px;

    color: var(--gray);

    font-size: 13px;
    line-height: 1.65;
}

/* =========================================
   GRID
========================================= */

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
    gap: 10px;

    margin-bottom: clamp(56px, 8vw, 86px);
}

.admin-card {
    min-width: 0;
    padding: clamp(22px, 3vw, 34px);

    background: var(--dark);
    border: 1px solid var(--border);
}

/* =========================================
   CARD HEADER
========================================= */

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 30px;
}

.card-number {
    display: block;
    margin-bottom: 8px;

    color: var(--yellow);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2px;
}

.admin-card h2 {
    font-size: clamp(20px, 2.4vw, 27px);
    line-height: 1;
    letter-spacing: -0.8px;
    text-transform: uppercase;
}

.card-label {
    flex-shrink: 0;

    padding: 7px 9px;

    background: var(--yellow);
    color: var(--black);

    font-size: 7px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================================
   FORM
========================================= */

.input-group {
    display: flex;
    flex-direction: column;
    gap: 7px;

    margin-bottom: 18px;
}

.input-group label {
    color: #737373;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.input-group input {
    width: 100%;
    height: 52px;

    padding: 0 15px;

    border: 1px solid #2b2b2b;
    border-radius: 0;

    outline: none;

    background: #0b0b0b;
    color: var(--white);

    font-size: 14px;

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

.input-group input:hover {
    border-color: #3a3a3a;
}

.input-group input:focus {
    border-color: var(--yellow);
    background: #0d0d0d;
}

.time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

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

.admin-submit {
    width: 100%;
    min-height: 52px;

    margin-top: 4px;
    padding: 0 17px;

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

    border: none;
    border-radius: 0;

    background: var(--yellow);
    color: var(--black);

    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.4px;
    text-transform: uppercase;

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

.admin-submit span {
    font-size: 19px;
    line-height: 1;

    transition: transform 0.2s ease;
}

.admin-submit:hover {
    background: var(--white);
}

.admin-submit:hover span {
    transform: translateX(5px);
}

.admin-submit:active {
    transform: scale(0.99);
}

.admin-cancel {
    width: 100%;
    min-height: 42px;

    margin-top: 8px;

    border: 1px solid #2d2d2d;
    background: transparent;
    color: #888;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;

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

.admin-cancel:hover {
    border-color: #555;
    color: var(--white);
}

/* =========================================
   INFO CARD
========================================= */

.info-card-admin {
    display: flex;
    flex-direction: column;

    background: var(--yellow);
    color: var(--black);
}

.info-card-admin .card-number {
    color: var(--black);
    opacity: 0.48;
}

.info-card-admin h2 {
    margin-bottom: 16px;
}

.info-card-admin > p {
    max-width: 270px;

    color: rgba(0, 0, 0, 0.62);

    font-size: 12px;
    line-height: 1.65;
}

.status-explanation {
    margin-top: auto;
    padding-top: 35px;

    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-explanation div {
    display: flex;
    align-items: center;
    gap: 9px;

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

.green-dot,
.red-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;

    border-radius: 50%;
}

.green-dot {
    background: var(--green);
}

.red-dot {
    background: var(--red);
}

/* =========================================
   EXISTING TERMINI
========================================= */

.existing-section {
    border-top: 1px solid var(--border);
}

.existing-header {
    min-height: 115px;

    padding: 28px 0;

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

.existing-header h2 {
    font-size: clamp(31px, 5vw, 54px);
    line-height: 0.92;
    letter-spacing: -2.5px;
    text-transform: uppercase;
}

.existing-count {
    flex-shrink: 0;

    color: #555;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

/* =========================================
   TERMINI LIST
========================================= */

.admin-termini {
    border-top: 1px solid var(--border);
}

.admin-termin {
    min-height: 76px;

    padding: 14px 0;

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

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

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

.admin-termin:hover {
    padding-left: 8px;
    border-color: rgba(255, 212, 0, 0.28);
}

.admin-termin-info {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 42px);
}

.admin-termin-date {
    min-width: 120px;

    color: #777;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;

    white-space: nowrap;
}

.admin-termin-time {
    color: var(--white);

    font-size: clamp(17px, 2vw, 21px);
    font-weight: 800;
    letter-spacing: -0.5px;

    white-space: nowrap;
}

.admin-termin-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.admin-termin-actions button {
    min-height: 34px;

    padding: 0 12px;

    border: none;
    border-radius: 0;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.9px;
    text-transform: uppercase;

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

.edit-button {
    background: var(--yellow);
    color: var(--black);
}

.edit-button:hover {
    background: var(--white);
}

.delete-button {
    background: #1f1f1f;
    color: #e96b6b;
}

.delete-button:hover {
    background: #303030;
}

/* =========================================
   EMPTY STATE
========================================= */

.empty-message {
    min-height: 150px;

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

    color: #505050;
    text-align: center;
}

.empty-message span {
    color: var(--yellow);
    font-size: 22px;
}

.empty-message p {
    font-size: 9px;
    letter-spacing: 1px;
}

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

.admin-footer {
    min-height: 76px;

    padding: 0 clamp(20px, 5vw, 64px);

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

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

    color: #4f4f4f;

    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

/* =========================================
   DATE / TIME INPUTS
========================================= */

input[type="date"],
input[type="time"] {
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    filter: invert(1);
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .info-card-admin {
        min-height: 260px;
    }

    .status-explanation {
        margin-top: 30px;
        padding-top: 0;
    }
}

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

@media (max-width: 700px) {
    .admin-navbar {
        min-height: 62px;
        padding: 0 18px;
    }

    .admin-logo {
        width: 105px;
    }

    .back-button {
        min-height: 34px;
        padding: 0 10px;

        font-size: 7px;
        letter-spacing: 1px;
    }

    .admin-main {
        width: calc(100% - 32px);
        padding: 42px 0 58px;
    }

    .admin-intro {
        margin-bottom: 38px;
    }

    .admin-eyebrow {
        margin-bottom: 11px;
        font-size: 8px;
        letter-spacing: 2.4px;
    }

    .admin-intro h1 {
        font-size: clamp(38px, 12vw, 54px);
        letter-spacing: -2.5px;
    }

    .admin-intro > p:last-child {
        margin-top: 17px;
        font-size: 12px;
        line-height: 1.6;
    }

    .admin-grid {
        gap: 8px;
        margin-bottom: 55px;
    }

    .admin-card {
        padding: 21px;
    }

    .card-top {
        margin-bottom: 25px;
    }

    .admin-card h2 {
        font-size: 20px;
    }

    .input-group {
        margin-bottom: 16px;
    }

    .input-group input {
        height: 50px;
        font-size: 14px;
    }

    .admin-submit {
        min-height: 50px;
    }

    .existing-header {
        min-height: auto;
        padding: 25px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .existing-header h2 {
        font-size: 35px;
        letter-spacing: -1.8px;
    }

    .admin-termin {
        min-height: auto;
        padding: 17px 0;

        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .admin-termin-info {
        width: 100%;

        align-items: center;
        justify-content: space-between;
        gap: 15px;
    }

    .admin-termin-date {
        min-width: 0;
        font-size: 8px;
    }

    .admin-termin-time {
        font-size: 18px;
    }

    .admin-termin-actions {
        width: 100%;
    }

    .admin-termin-actions button {
        flex: 1;
        min-height: 40px;
    }

    .admin-footer {
        min-height: auto;
        padding: 20px 16px;

        align-items: flex-start;
        flex-direction: column;
        gap: 7px;

        line-height: 1.4;
    }
}

/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 420px) {
    .admin-main {
        width: calc(100% - 26px);
    }

    .admin-card {
        padding: 18px;
    }

    .time-row {
        gap: 8px;
    }

    .input-group input {
        padding: 0 13px;
    }

    .admin-termin-info {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .admin-termin-actions button {
        font-size: 7px;
    }
}