:root {
    --bg: #0b1220;
    --bg-soft: #111827;
    --card: rgba(255, 255, 255, 0.08);
    --card-solid: #121a2b;
    --text: #f8fafc;
    --muted: #94a3b8;
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --secondary: #38bdf8;
    --danger: #ef4444;
    --warning: #f59e0b;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --radius: 20px;
    --max-width: 1100px;
}

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

body {
    font-family: "Inter", sans-serif;
    background:
        radial-gradient(
            circle at top left,
            rgba(34, 197, 94, 0.18),
            transparent 28%
        ),
        radial-gradient(
            circle at top right,
            rgba(56, 189, 248, 0.15),
            transparent 30%
        ),
        linear-gradient(180deg, #08101d 0%, #0b1220 100%);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(92%, var(--max-width));
    margin: 0 auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(8, 16, 29, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
}

.brand-badge {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: grid;
    place-items: center;
    color: white;
    font-weight: 800;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    transition: 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--border);
    color: white;
    background: rgba(255, 255, 255, 0.04);
}

.page-header {
    padding: 60px 0 30px;
}

.page-header h1 {
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.1;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--muted);
    max-width: 760px;
}

.booking-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 24px;
    padding: 20px 0 80px;
}

.booking-card,
.summary-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.summary-card h3,
.booking-card h3 {
    font-size: 22px;
    margin-bottom: 18px;
}

.court-preview {
    border-radius: 20px;
    overflow: hidden;
    height: 240px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: 18px;
    position: relative;
}

.court-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
}

.court-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.court-type,
.summary-text {
    color: var(--muted);
    font-size: 14px;
}

.info-list {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.info-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-item strong {
    display: block;
    margin-bottom: 6px;
    color: white;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #dbeafe;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
    font-family: inherit;
}

.form-control:focus {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.slot-item {
    padding: 12px;
    border-radius: 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: 0.25s ease;
    user-select: none;
}

.slot-item small {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
}

.slot-item.available {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.25);
    color: #bbf7d0;
    cursor: pointer;
}

.slot-item.partial {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
    color: #fde68a;
    cursor: pointer;
}

.slot-item.full {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.2);
    color: #fecaca;
    cursor: not-allowed;
    opacity: 0.75;
}

.slot-item.selected {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}

.slot-item.selectable:hover {
    transform: translateY(-2px);
}

.slot-empty {
    padding: 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-available {
    background: var(--primary);
}
.dot-partial {
    background: var(--warning);
}
.dot-full {
    background: var(--danger);
}

.booking-summary-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.booking-summary-box h4 {
    margin-bottom: 12px;
    font-size: 16px;
}

.booking-summary-box p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 6px;
}

.helper-text {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.time-slot.past {
    opacity: 0.45;
    cursor: not-allowed !important;
    background: #e9ecef !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
}

.time-slot.past small {
    color: #6c757d;
}

.time-slot.past::after {
    content: "Sudah lewat";
    display: block;
    font-size: 11px;
    margin-top: 3px;
}
.slot-item.past {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #6c757d;
    cursor: not-allowed;
}

.slot-item.past small {
    color: #6c757d;
}

footer {
    padding: 30px 0 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

@media (max-width: 992px) {
    .booking-layout {
        grid-template-columns: 1fr;
    }
}

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

    .slot-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .actions .btn {
        width: 100%;
    }
}
