:root {
    --bg: #001f1f;
    --card: rgba(1, 59, 59, 0.7);
    --accent: #22c55e;
    --text: #f0fdfa;
    --muted: #a3b8b8;
    --border: #085454;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.booking-container {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 0;
}

.booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.booking-logo {
    height: 80px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.booking-header p {
    color: var(--muted);
    font-size: 1.1rem;
}

.slots-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.loading,
.no-slots,
.error {
    text-align: center;
    padding: 40px;
    background: var(--card);
    border-radius: 12px;
    border: 1px dashed var(--border);
    color: var(--muted);
}

.slot-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slot-card:hover:not(.full) {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.slot-card.full {
    opacity: 0.6;
    background: rgba(1, 59, 59, 0.3);
}

.slot-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.slot-date .day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.slot-date .month {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
}

.slot-info {
    flex-grow: 1;
}

.slot-time {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge.available {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge.full {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    border: 1px solid var(--border);
}

.btn {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-book {
    background: var(--accent);
    color: var(--bg);
}

.btn-book:disabled {
    background: var(--border);
    color: var(--muted);
    cursor: not-allowed;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 2rem;
    cursor: pointer;
}

.modal h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

#modal-slot-details {
    color: var(--accent);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--muted);
}

.form-group input {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.btn-confirm {
    background: var(--accent);
    color: var(--bg);
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.form-message {
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.form-message.error {
    display: block;
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid #ff4444;
}

@media (max-width: 480px) {
    .slot-card {
        flex-direction: column;
        text-align: center;
    }

    .slot-date {
        width: 100%;
        height: auto;
        padding: 15px;
    }

    .btn-book {
        width: 100%;
    }
}