@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap);
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #172033;
    background: #ffffff;
}

body.modal-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #eee;
    backdrop-filter: blur(10px);
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    text-decoration: none;
    color: #172033;
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

nav a {
    color: #596174;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

nav a:hover {
    color: #172033;
}

nav .text-button {
    color: #596174;
    font-size: 14px;
    font-weight: 500;
}

nav .text-button:hover {
    color: #172033;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 13px 20px;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform .15s ease,
        opacity .15s ease,
        background .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: .6;
    transform: none;
}

.btn-primary {
    background: #172033;
    color: #fff;
}

.btn-primary:hover {
    background: #252f45;
}

.btn-secondary {
    margin-left: 10px;
    background: #eef0f4;
    color: #172033;
}

.btn-secondary:hover {
    background: #e2e5eb;
}

.btn-light {
    background: #fff;
    color: #172033;
}

.btn-light:hover {
    background: #f2f3f5;
}

.btn-large {
    padding: 16px 24px;
}

.btn-full {
    width: 100%;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    padding: 10px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 70px;
}

.hero-content {
    max-width: 620px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #687083;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 580px;
    margin: 25px 0 30px;
    color: #687083;
    line-height: 1.7;
    font-size: 17px;
}

.hero-image {
    min-height: 480px;
}

.hero-placeholder {
    width: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: #f1f3f6;
    text-align: center;
     background-image: url('/images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-placeholder span {
    font-size: 72px;
    margin-bottom: 20px;
}

.hero-placeholder h3 {
    margin: 0;
    font-size: 30px;
}

.hero-placeholder p {
    margin: 10px 0 0;
    font-size: 15px;
}


/* =========================================================
   TRUST
========================================================= */

.trust-bar {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.trust-grid > div {
    padding: 28px;
    text-align: center;
    border-right: 1px solid #eee;
}

.trust-grid > div:last-child {
    border-right: 0;
}

.trust-grid strong,
.trust-grid span {
    display: block;
}

.trust-grid strong {
    font-size: 20px;
}

.trust-grid span {
    margin-top: 5px;
    color: #747b8b;
    font-size: 14px;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 100px 0;
}

.section-light {
    background: #f7f8fa;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 50px;
}

.section-heading h2 {
    margin: 0;
    font-size: 42px;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin-top: 15px;
    color: #6d7483;
    line-height: 1.7;
}


/* =========================================================
   COURTS
========================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.service-card {
    padding: 32px;
    border: 1px solid #e7e8eb;
    border-radius: 18px;
    background: #fff;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(23, 32, 51, .08);
}

.service-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f0f1f4;
    margin-bottom: 25px;
    font-size: 23px;
}

.service-card h3 {
    margin: 0 0 10px;
    font-size: 23px;
}

.service-card p {
    min-height: 50px;
    color: #707786;
    line-height: 1.6;
}

.service-card > span {
    display: block;
    margin: 20px 0;
    font-size: 14px;
    font-weight: 700;
}

.text-button {
    border: 0;
    background: none;
    padding: 0;
    color: #172033;
    font-weight: 700;
}

.text-button:hover {
    text-decoration: underline;
}


/* =========================================================
   OPEN PLAY
========================================================= */

.open-play-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.open-play-card > div {
    padding: 25px;
    border-right: 1px solid #e5e7eb;
}

.open-play-card > div:last-child {
    border-right: 0;
}

.open-play-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.open-play-card p {
    margin: 0;
    color: #707786;
    line-height: 1.5;
}

.section-action {
    margin-top: 30px;
}


/* =========================================================
   OPEN PLAY MODAL DETAILS
========================================================= */

.open-play-details {
    display: grid;
    gap: 18px;
}

.open-play-details > div {
    padding: 18px;
    border-radius: 12px;
    background: #f7f8fa;
}

.open-play-details strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.open-play-details p {
    margin: 0;
    color: #687083;
    line-height: 1.6;
}


/* =========================================================
   STEPS
========================================================= */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step {
    padding: 30px;
    border-top: 2px solid #172033;
}

.step > span {
    font-size: 13px;
    font-weight: 700;
}

.step h3 {
    margin-bottom: 10px;
}

.step p {
    color: #707786;
    line-height: 1.6;
}


/* =========================================================
   CTA
========================================================= */

.cta {
    padding: 90px 0;
    text-align: center;
    background: #172033;
    color: #fff;
}

.cta h2 {
    margin: 0 0 15px;
    font-size: 42px;
    letter-spacing: -.03em;
}

.cta p {
    margin-bottom: 30px;
    color: #cbd0da;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.footer h3,
.footer h4 {
    margin-top: 0;
}

.footer p {
    color: #737a89;
    line-height: 1.6;
}

.copyright {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 13px;
}


/* =========================================================
   MODAL
========================================================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 25, .65);
}

.modal-dialog {
    position: relative;
    width: min(680px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    border-radius: 20px;
    background: #fff;
    z-index: 2;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    width: 35px;
    height: 35px;
    border: 0;
    background: #f2f3f5;
    border-radius: 50%;
    font-size: 22px;
    color: #172033;
}

.modal-close:hover {
    background: #e6e8ec;
}

.modal-header {
    margin-bottom: 30px;
    padding-right: 35px;
}

.modal-header h2 {
    margin: 0 0 8px;
    font-size: 32px;
}

.modal-header p {
    margin: 0;
    color: #747b89;
    line-height: 1.6;
}


/* =========================================================
   FORM
========================================================= */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dddfe4;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: #172033;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #172033;
    box-shadow: 0 0 0 3px rgba(23, 32, 51, .06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}


/* =========================================================
   TIME SLOTS
========================================================= */

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.time-slot {
    min-height: 48px;
    padding: 10px;
    border: 1px solid #dddfe4;
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #172033;
    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.time-slot:hover {
    border-color: #172033;
}

.time-slot.selected {
    background: #172033;
    border-color: #172033;
    color: #fff;
}

.time-slot.disabled {
    opacity: .45;
    cursor: not-allowed;
    background: #f3f4f6;
    text-decoration: line-through;
}

.time-slot.disabled:hover {
    border-color: #dddfe4;
}

.slot-message {
    margin: 5px 0;
    color: #777;
    font-size: 13px;
}


/* =========================================================
   BOOKING MESSAGE
========================================================= */

.booking-message {
    min-height: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.booking-message.error {
    color: #b42318;
}

.booking-message.success {
    color: #087443;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .container {
        width: min(100% - 30px, 1120px);
    }

    .nav {
        min-height: 68px;
    }

    nav {
        gap: 12px;
    }

    nav a {
        display: none;
    }

    nav .text-button {
        display: block;
    }

    nav .btn {
        padding: 11px 14px;
        font-size: 13px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: clamp(40px, 12vw, 58px);
    }

    .hero p {
        font-size: 16px;
    }

    .hero-image,
    .hero-placeholder {
        min-height: 320px;
    }

    .hero-placeholder span {
        font-size: 58px;
    }

    .services-grid,
    .steps,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid > div {
        border-right: 0;
        border-bottom: 1px solid #eee;
    }

    .trust-grid > div:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 70px 0;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .service-card {
        padding: 25px;
    }

    .open-play-card {
        grid-template-columns: 1fr 1fr;
    }

    .open-play-card > div:nth-child(2) {
        border-right: 0;
    }

    .open-play-card > div:nth-child(-n+2) {
        border-bottom: 1px solid #e5e7eb;
    }

    .open-play-card > div:nth-child(3) {
        border-right: 1px solid #e5e7eb;
    }

    .cta {
        padding: 70px 0;
    }

    .cta h2 {
        font-size: 34px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .modal {
        padding: 12px;
    }

    .modal-dialog {
        max-height: 94vh;
        padding: 25px 20px;
        border-radius: 16px;
    }

    .modal-header h2 {
        font-size: 28px;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }
}


@media (max-width: 480px) {

    .logo {
        font-size: 17px;
    }

    .nav {
        gap: 10px;
    }

    nav {
        gap: 8px;
    }

    nav .text-button {
        font-size: 12px;
    }

    nav .btn {
        font-size: 12px;
        padding: 10px 11px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-placeholder {
        min-height: 260px;
    }

    .services-grid {
        gap: 15px;
    }

    .open-play-card {
        grid-template-columns: 1fr;
    }

    .open-play-card > div,
    .open-play-card > div:nth-child(3) {
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .open-play-card > div:last-child {
        border-bottom: 0;
    }

    .time-slots {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================
   CALENDAR / AVAILABILITY
======================================== */

.availability-section {
    padding: 90px 0;
    background: #f8f9fb;
}

.calendar-card {
    max-width: 850px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 28px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.calendar-header h3 {
    margin: 0;
    font-size: 22px;
}

.calendar-nav {
    width: 42px;
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 20px;
}

.calendar-nav:hover {
    background: #f1f3f6;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-weekdays {
    margin-bottom: 8px;
}

.calendar-weekdays div {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    padding: 8px 0;
}

.calendar-day {
    min-height: 65px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    padding: 8px;
    text-align: left;
    position: relative;
}

.calendar-day:hover {
    border-color: #111827;
}

.calendar-day.empty {
    border: none;
    background: transparent;
    cursor: default;
}

.calendar-day.today {
    box-shadow: inset 0 0 0 2px #111827;
}

.calendar-day.selected {
    background: #111827;
    color: #fff;
}

.calendar-day-number {
    font-size: 14px;
    font-weight: 600;
}

.calendar-day-status {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 10px;
    background: #d1d5db;
}

.calendar-day-status.available {
    background: #22c55e;
}

.calendar-day-status.booked {
    background: #ef4444;
}

.calendar-day-status.blocked {
    background: #f59e0b;
}

.calendar-day-status.closed {
    background: #6b7280;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #4b5563;
}

.legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.daily-status {
    max-width: 850px;
    margin: 25px auto 0;
}

.daily-status-header {
    margin-bottom: 18px;
}

.daily-status-header h3 {
    margin: 5px 0 0;
}

.court-status-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.court-status-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
}

.court-status-card h4 {
    margin: 0 0 15px;
}

.status-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-top: 1px solid #f0f1f3;
}

.status-slot:first-child {
    border-top: none;
}

.status-slot-time {
    font-size: 14px;
}

.status-label {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 999px;
}

.status-label.available {
    background: #dcfce7;
    color: #166534;
}

.status-label.booked {
    background: #fee2e2;
    color: #991b1b;
}

.status-label.blocked {
    background: #fef3c7;
    color: #92400e;
}

.status-message {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    color: #6b7280;
}

@media (max-width: 800px) {

    .court-status-grid {
        grid-template-columns: 1fr;
    }

    .calendar-card {
        padding: 18px;
    }

    .calendar-day {
        min-height: 55px;
    }
}

@media (max-width: 480px) {

    .calendar-weekdays,
    .calendar-days {
        gap: 4px;
    }

    .calendar-weekdays div {
        font-size: 11px;
    }

    .calendar-day {
        min-height: 48px;
        padding: 5px;
    }

    .calendar-day-number {
        font-size: 12px;
    }

    .calendar-day-status {
        width: 6px;
        height: 6px;
        margin-top: 6px;
    }

    .calendar-legend {
        gap: 10px;
    }
}

.status-label.open_play {
    background: #dbeafe;
    color: #1d4ed8;
}

.calendar-day-status.open_play {
    background: #3b82f6;
}
.legend-dot.open_play {
    background: #3b82f6;
}
.legend-dot.available {
    background: #22c55e;
}

.legend-dot.booked {
    background: #ef4444;
}

.legend-dot.blocked {
    background: #f59e0b;
}

.legend-dot.closed {
    background: #6b7280;
}

.legend-dot.open_play {
    background: #3b82f6;
}

/* =========================================
   ADMIN LAYOUT
========================================= */

.admin-shell {
    min-height: 100vh;
    display: flex;
    background: #f5f7fa;
}

.admin-sidebar {
    width: 250px;
    min-height: 100vh;
    background: #111827;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
}

.admin-sidebar-brand {
    padding: 26px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-brand-title {
    font-size: 20px;
    font-weight: 700;
}

.admin-brand-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: #9ca3af;
}

.admin-sidebar-nav {
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 8px;
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.admin-sidebar-nav a:hover {
    background: #1f2937;
    color: #ffffff;
}

.admin-sidebar-nav a.active {
    background: #2563eb;
    color: #ffffff;
}

.admin-nav-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.admin-sidebar-footer {
    margin-top: auto;
    padding: 18px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-sidebar-footer a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
}

.admin-sidebar-footer a:hover {
    color: #ffffff;
}

.admin-main {
    width: calc(100% - 250px);
    margin-left: 250px;
    min-height: 100vh;
    padding: 30px;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.admin-page-header h1 {
    margin: 0;
    font-size: 28px;
}

.admin-page-header p {
    margin: 6px 0 0;
    color: #6b7280;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.admin-stat-card span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 8px;
}

.admin-stat-card strong {
    font-size: 28px;
    color: #111827;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 22px;
}

.admin-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.admin-section-header h2,
.admin-form-card h2 {
    margin: 0;
    font-size: 18px;
}

.admin-section-header p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.dashboard-booking-row,
.dashboard-open-play-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #e5e7eb;
}

.dashboard-open-play-row {
    grid-template-columns: 1fr auto;
}

.dashboard-booking-row strong,
.dashboard-open-play-row strong {
    display: block;
    color: #111827;
}

.dashboard-booking-row span,
.dashboard-open-play-row span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}

.dashboard-booking-row a,
.admin-section-header a {
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.admin-empty-state {
    padding: 30px 10px;
    text-align: center;
}

.admin-empty-state h3 {
    margin: 0 0 6px;
}

.admin-empty-state p {
    margin: 0;
    color: #6b7280;
}

.admin-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.admin-btn:hover {
    background: #f3f4f6;
}

.admin-btn.confirm {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.admin-alert {
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.admin-alert.success {
    background: #dcfce7;
    color: #166534;
}

.admin-alert.error {
    background: #fee2e2;
    color: #991b1b;
}


/* =========================================
   ADMIN MOBILE
========================================= */

@media (max-width: 900px) {

    .admin-sidebar {
        width: 210px;
    }

    .admin-main {
        width: calc(100% - 210px);
        margin-left: 210px;
        padding: 20px;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }

    .admin-sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-sidebar-footer {
        margin-top: 0;
    }

    .admin-main {
        width: 100%;
        margin-left: 0;
        padding: 16px;
    }

    .admin-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-booking-row,
    .dashboard-open-play-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

}
/* =========================================
   ADMIN LOGIN
========================================= */

.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f5f7fa;
}

.admin-login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 25px;
}

.admin-login-header h1 {
    margin: 0;
    font-size: 26px;
}

.admin-login-header p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.admin-login-button {
    width: 100%;
    margin-top: 8px;
}

.admin-login-back {
    display: block;
    margin-top: 20px;
    text-align: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
}

.admin-login-back:hover {
    color: #111827;
}

.admin-logout-button {
    width: 100%;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
}

.admin-logout-button:hover {
    color: #ffffff;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.admin-form-grid label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.admin-form-grid input[type="text"],
.admin-form-grid input[type="number"],
.admin-form-grid textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.admin-form-grid textarea {
    resize: vertical;
}

.admin-form-grid input:focus,
.admin-form-grid textarea:focus {
    outline: none;
    border-color: #111827;
}

@media (max-width: 700px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
}

.booking-payment-section {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.booking-payment-section h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.booking-payment-section p {
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 14px;
}

.gcash-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.gcash-details > div {
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.gcash-details span {
    display: block;
    margin-bottom: 5px;
    color: #6b7280;
    font-size: 12px;
}

.gcash-details strong {
    display: block;
    font-size: 16px;
}

.booking-payment-section input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
}

.booking-payment-section small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
}

@media (max-width: 700px) {
    .gcash-details {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   BOOKING DETAILS
========================================= */

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.admin-page-header h1 {
    margin: 0 0 6px;
}

.admin-page-header p {
    margin: 0;
    color: #6b7280;
}


.booking-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}


.admin-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
}


.admin-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-card-header h2 {
    margin: 0 0 5px;
}

.admin-card-header p {
    margin: 0;
    color: #6b7280;
}


.booking-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}


.booking-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px;
    background: #f9fafb;
    border-radius: 10px;
}

.booking-info-item span {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.booking-info-item strong {
    color: #111827;
    word-break: break-word;
}


.booking-info-full {
    grid-column: 1 / -1;
}


/* STATUS */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background: #dcfce7;
    color: #166534;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}


/* PAYMENT PROOF */

.payment-proof-section {
    margin-top: 25px;
}

.payment-proof-section h3 {
    margin: 0 0 15px;
}


.payment-proof {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.payment-proof a {
    display: block;
}

.payment-proof img {
    display: block;
    width: 100%;
    max-height: 500px;
    -o-object-fit: contain;
       object-fit: contain;
    border-radius: 8px;
    cursor: zoom-in;
}

.payment-proof p {
    margin: 10px 0 0;
    font-size: 13px;
    color: #6b7280;
}


.payment-proof-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 25px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    text-align: center;
}

.payment-proof-empty span {
    font-size: 30px;
    margin-bottom: 10px;
}

.payment-proof-empty p {
    margin: 0;
    color: #6b7280;
}


/* ACTIONS */

.booking-actions-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.booking-actions-card h2 {
    margin: 0 0 6px;
}

.booking-actions-card p {
    margin: 0;
    color: #6b7280;
    max-width: 700px;
}


.booking-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}


/* BUTTONS */

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.admin-btn:hover {
    opacity: 0.88;
}


.admin-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}


.admin-btn-success {
    background: #16a34a;
    color: #ffffff;
}


.admin-btn-danger {
    background: #dc2626;
    color: #ffffff;
}


/* CONFIRMED / CANCELLED */

.booking-confirmed-card {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.booking-confirmed-card h2 {
    color: #166534;
    margin: 0 0 5px;
}

.booking-confirmed-card p {
    margin: 0;
    color: #166534;
}


.booking-cancelled-card {
    border-color: #fecaca;
    background: #fef2f2;
}

.booking-cancelled-card h2 {
    color: #991b1b;
    margin: 0 0 5px;
}

.booking-cancelled-card p {
    margin: 0;
    color: #991b1b;
}


/* ALERTS */

.admin-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.admin-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.admin-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .booking-details-grid {
        grid-template-columns: 1fr;
    }

    .booking-actions-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-actions {
        width: 100%;
        flex-direction: column;
    }

    .booking-actions form,
    .booking-actions .admin-btn {
        width: 100%;
    }

}


@media (max-width: 600px) {

    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-info-list {
        grid-template-columns: 1fr;
    }

    .booking-info-full {
        grid-column: auto;
    }

    .admin-card {
        padding: 18px;
    }

    .admin-card-header {
        flex-direction: column;
    }

}

.status-label.available {
    border: 0;
    cursor: pointer;
}

.status-label.available:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .08);
}

.status-label.open_play {
    border: 0;
}

.status-label.booked,
.status-label.blocked,
.status-label.closed {
    cursor: default;
}


/* =========================================
   ADMIN BOOKINGS TABLE
========================================= */

.admin-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.admin-bookings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1050px;
}

.admin-bookings-table th {
    padding: 15px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.admin-bookings-table td {
    padding: 17px 16px;
    border-bottom: 1px solid #eef0f2;
    color: #374151;
    font-size: 14px;
    vertical-align: middle;
}

.admin-bookings-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-bookings-table tbody tr:hover {
    background: #fafafa;
}


/* CUSTOMER */

.booking-customer strong {
    display: block;
    color: #111827;
    font-size: 14px;
}


/* CONTACT */

.booking-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.booking-contact span {
    color: #6b7280;
    font-size: 13px;
}


/* PAYMENT */

.booking-payment-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.booking-payment-info strong {
    color: #111827;
    font-size: 13px;
}

.booking-payment-info span {
    color: #6b7280;
    font-size: 12px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* TIME */

.booking-time {
    white-space: nowrap;
    color: #374151;
}


/* STATUS */

.booking-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.booking-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.booking-status.confirmed {
    background: #dcfce7;
    color: #166534;
}

.booking-status.cancelled {
    background: #fee2e2;
    color: #991b1b;
}


/* REVIEW BUTTON */

.admin-table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 7px;
    background: #111827;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: .15s ease;
}

.admin-table-action:hover {
    background: #2563eb;
    color: #ffffff;
}


/* PAGINATION */

.admin-pagination {
    margin-top: 20px;
}


/* MOBILE */

@media (max-width: 900px) {

    .admin-table-wrapper {
        border-radius: 10px;
    }

    .admin-bookings-table {
        min-width: 950px;
    }

}

/* =========================================
   ADMIN BOOKING TABS
========================================= */

.admin-booking-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.admin-booking-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 10px 18px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all .15s ease;
}

.admin-booking-tabs a:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.admin-booking-tabs a.active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.admin-booking-tabs a.active:hover {
    background: #1f2937;
    border-color: #1f2937;
}


/* MOBILE */

@media (max-width: 600px) {

    .admin-booking-tabs {
        width: 100%;
        gap: 8px;
    }

    .admin-booking-tabs a {
        flex: 1;
        min-width: 0;
        padding: 10px 8px;
        font-size: 12px;
    }

}

/* =========================================
   OPEN PLAY ADMIN
========================================= */

.open-play-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.open-play-dashboard-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 9px 16px;

    border: 1px solid #d7dce3;
    border-radius: 8px;

    background: #fff;
    color: #374151;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;

    transition: .15s ease;
}

.open-play-dashboard-link:hover {
    background: #f8fafc;
    border-color: #c5cad2;
}


/* =========================================
   LIST
========================================= */

.open-play-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;

    width: 100% !important;
}


/* =========================================
   OPEN PLAY CARD
========================================= */

.open-play-card {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    box-sizing: border-box;

    overflow: hidden;

    border: 1px solid #e3e7ec;
    border-radius: 14px;

    background: #fff;

    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.open-play-card:hover {
    border-color: #d4d9e0;

    box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
}


/* =========================================
   CARD TOP
========================================= */

.open-play-card-top {
    display: flex !important;

    align-items: flex-start;
    justify-content: space-between;

    width: 100%;
    box-sizing: border-box;

    padding: 22px 24px 20px;

    border-bottom: 1px solid #eef0f3;
}

.open-play-title-area {
    display: flex !important;

    align-items: flex-start;
    gap: 14px;

    min-width: 0;
}

.open-play-icon {
    display: flex !important;

    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    flex-shrink: 0;

    border-radius: 11px;

    background: #f4f5f7;

    font-size: 21px;
}

.open-play-title-area h2 {
    margin: 2px 0 5px;

    color: #111827;

    font-size: 17px;
    font-weight: 700;

    line-height: 1.3;
}

.open-play-title-area p {
    margin: 0;

    color: #6b7280;

    font-size: 13px;
    line-height: 1.5;

    max-width: 600px;
}


/* =========================================
   STATUS
========================================= */

.open-play-status {
    display: inline-flex !important;

    align-items: center;
    gap: 7px;

    flex-shrink: 0;

    padding: 7px 11px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 600;
}

.open-play-status span {
    display: block;

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: currentColor;
}

.open-play-status.active {
    background: #ecfdf3;
    color: #15803d;
}

.open-play-status.inactive {
    background: #f3f4f6;
    color: #6b7280;
}


/* =========================================
   SCHEDULE
========================================= */

.open-play-schedule {
    display: flex !important;

    align-items: center;

    width: auto;
    box-sizing: border-box;

    margin: 18px 24px 0;

    padding: 17px 20px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #fafbfc;
}

.open-play-date-box,
.open-play-time-box {
    flex: 0 0 auto;
}

.open-play-date-box {
    width: 150px;
}

.open-play-time-box {
    width: 220px;
}

.open-play-date-label {
    display: block;

    margin-bottom: 6px;

    color: #9ca3af;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: .08em;
}

.open-play-date-box strong {
    display: block;

    color: #111827;

    font-size: 18px;
    font-weight: 700;
}

.open-play-time-box strong {
    display: inline-block;

    color: #111827;

    font-size: 17px;
    font-weight: 700;
}

.open-play-date-box small,
.open-play-time-box small {
    display: block;

    margin-top: 2px;

    color: #6b7280;

    font-size: 11px;
}

.open-play-time-box small {
    display: inline-block;
    margin-left: 6px;
}

.open-play-schedule-divider {
    width: 1px;
    height: 42px;

    margin: 0 24px;

    background: #e1e5ea;
}


/* =========================================
   DETAILS
========================================= */

.open-play-details {
    display: flex !important;

    align-items: stretch;

    width: auto;
    box-sizing: border-box;

    margin: 18px 24px 0;

    border-top: 1px solid #eef0f3;
    border-bottom: 1px solid #eef0f3;
}

.open-play-detail {
    flex: 1;

    padding: 14px 8px;
}

.open-play-detail + .open-play-detail {
    padding-left: 24px;

    border-left: 1px solid #eef0f3;
}

.open-play-detail-label {
    display: block;

    margin-bottom: 5px;

    color: #9ca3af;

    font-size: 10px;
    font-weight: 600;
}

.open-play-detail strong {
    color: #374151;

    font-size: 14px;
    font-weight: 700;
}


/* =========================================
   ACTIONS
========================================= */

.open-play-card-actions {
    display: flex !important;

    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    padding: 16px 24px;
}

.open-play-card-actions form {
    margin: 0;
}

.open-play-edit-btn,
.open-play-delete-btn {
    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    min-width: 68px;
    min-height: 35px;

    box-sizing: border-box;

    padding: 7px 13px;

    border-radius: 7px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition: .15s ease;
}

.open-play-edit-btn {
    border: 1px solid #d1d5db;

    background: #fff;
    color: #374151;
}

.open-play-edit-btn:hover {
    background: #f8fafc;
    border-color: #9ca3af;
}

.open-play-delete-btn {
    border: 1px solid #fecaca;

    background: #fff;
    color: #dc2626;
}

.open-play-delete-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}


/* =========================================
   EMPTY STATE
========================================= */

.open-play-empty {
    width: 100%;
    box-sizing: border-box;

    padding: 70px 30px;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    background: #fff;

    text-align: center;
}

.open-play-empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin: 0 auto 18px;

    border-radius: 16px;

    background: #f3f4f6;

    font-size: 28px;
}

.open-play-empty h2 {
    margin: 0 0 8px;

    color: #111827;

    font-size: 19px;
}

.open-play-empty p {
    max-width: 420px;

    margin: 0 auto 22px;

    color: #6b7280;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 700px) {

    .open-play-header-actions {
        width: 100%;

        flex-direction: column;
        align-items: stretch;
    }

    .open-play-header-actions a {
        width: 100%;
        box-sizing: border-box;
    }

    .open-play-card-top {
        flex-direction: column !important;
        gap: 14px;
    }

    .open-play-status {
        align-self: flex-start;
    }

    .open-play-schedule {
        flex-direction: column !important;
        align-items: stretch;

        gap: 14px;
    }

    .open-play-date-box,
    .open-play-time-box {
        width: auto;
    }

    .open-play-schedule-divider {
        width: 100%;
        height: 1px;

        margin: 0;
    }

    .open-play-time-box small {
        margin-left: 5px;
    }

    .open-play-details {
        flex-direction: column;
    }

    .open-play-detail + .open-play-detail {
        padding-left: 8px;

        border-left: 0;
        border-top: 1px solid #eef0f3;
    }

    .open-play-card-actions {
        justify-content: stretch;
    }

    .open-play-edit-btn,
    .open-play-delete-btn {
        flex: 1;
    }

}

.open-play-detail {
    margin-bottom: 18px;
}

.open-play-courts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.open-play-court {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 700;
}

.open-play-rules {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.open-play-rules > strong {
    display: block;
    margin-bottom: 8px;
}

.open-play-rules p {
    margin-bottom: 0;
    white-space: normal;
}

.open-play-action {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.open-play-join-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    padding: 14px 30px;
    border: none;
    background-color: #087443;
    color:white;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}

.open-play-join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.open-play-join-btn:active {
    transform: translateY(0);
}

.admin-btn-success {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.admin-btn-success:hover {
    background: #15803d;
    color: #fff;
    border-color: #15803d;
}

.admin-btn-success:focus,
.admin-btn-success:active {
    background: #15803d;
    color: #fff;
    border-color: #15803d;
}

.admin-btn-danger {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}

.admin-btn-danger:hover {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}

.admin-btn-danger:focus,
.admin-btn-danger:active {
    background: #b91c1c;
    color: #fff;
    border-color: #b91c1c;
}

/* =========================================
   CREATE BOOKING
========================================= */

.booking-create-card {
    padding: 0;
    overflow: hidden;
}

.booking-form-section {
    padding: 28px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.booking-form-section:last-of-type {
    border-bottom: 0;
}

.booking-form-section-header {
    margin-bottom: 22px;
}

.booking-form-section-header h2 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.booking-form-section-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.required {
    color: #dc2626;
}

.optional {
    font-weight: 400;
    color: #9ca3af;
    font-size: 13px;
}

.booking-create-card .admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.booking-create-card .admin-form-group {
    margin: 0;
}

.booking-create-card .admin-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.booking-create-card input,
.booking-create-card select,
.booking-create-card textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    padding: 11px 13px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.booking-create-card input,
.booking-create-card select {
    height: 44px;
}

.booking-create-card textarea {
    min-height: 110px;
    resize: vertical;
}

.booking-create-card input::-moz-placeholder, .booking-create-card textarea::-moz-placeholder {
    color: #9ca3af;
}

.booking-create-card input::placeholder,
.booking-create-card textarea::placeholder {
    color: #9ca3af;
}

.booking-create-card input:focus,
.booking-create-card select:focus,
.booking-create-card textarea:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .10);
}

.booking-email-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    cursor: pointer;
}

.booking-email-option input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    flex-shrink: 0;
}

.booking-email-option span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.booking-email-option strong {
    font-size: 14px;
    color: #374151;
}

.booking-email-option small {
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
}

.booking-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 22px 30px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}


/* Error box */

.admin-alert-danger {
    margin-bottom: 20px;
    padding: 14px 18px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
}

.admin-alert-danger strong {
    display: block;
    margin-bottom: 6px;
}

.admin-alert-danger ul {
    margin: 0;
    padding-left: 20px;
}


/* Header buttons */

.admin-page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}


/* Mobile */

@media (max-width: 768px) {

    .admin-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .admin-page-header-actions {
        width: 100%;
        margin-left: 0;
    }

    .booking-create-card .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .booking-form-section {
        padding: 22px 20px;
    }

    .booking-form-actions {
        padding: 18px 20px;
        flex-direction: column-reverse;
    }

    .booking-form-actions .admin-btn {
        width: 100%;
        text-align: center;
    }

}

/* =========================================================
   MULTI-HOUR BOOKING
   ========================================================= */

.booking-time-header {
    margin-bottom: 12px;
}

.booking-time-hint {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.time-slot {
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 12px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s ease;
}

.time-slot:hover:not(:disabled) {
    border-color: #111827;
    transform: translateY(-1px);
}

.time-slot.selected {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.time-slot.disabled,
.time-slot:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.time-slot.open_play {
    background: #fff7ed;
    border-color: #fdba74;
    color: #c2410c;
    cursor: not-allowed;
}

.booking-summary {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 7px 0;
    font-size: 14px;
}

.summary-row span {
    color: #6b7280;
}

.summary-row strong {
    color: #111827;
}

.booking-total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 16px;
}

.booking-total strong {
    font-size: 20px;
}

@media (max-width: 600px) {
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}
