:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --bg-color: #f3f4f6;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --glass-blur: blur(16px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 800px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.5s ease-out;
}

h1, h2, h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    line-height: 1.6;
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

button.danger {
    background: var(--danger-color);
}
button.danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

input, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: rgba(255, 255, 255, 0.9);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.slot-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slot-item:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.slot-item.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.slot-item.past {
    background: #f9fafb;
    color: var(--text-muted);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.slot-item.past:hover {
    background: #f9fafb;
    border-color: var(--border-color);
}

.hidden {
    display: none !important;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: rgba(0, 0, 0, 0.02);
    font-weight: 600;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge.pending { background: #fef3c7; color: #92400e; }
.badge.confirmed { background: #d1fae5; color: #065f46; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

.modal {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.nav-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.nav-tabs button {
    background: transparent;
    color: var(--text-muted);
    box-shadow: none;
    padding: 0.5rem 1rem;
    border-radius: 0;
}

.nav-tabs button.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.nav-tabs button:hover {
    color: var(--primary-color);
    transform: none;
}

.calendar-nav {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.calendar-grid {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    padding-bottom: 1rem;
}
.calendar-day {
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}
.calendar-day-header {
    background: rgba(0,0,0,0.03);
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px 8px 0 0;
}
.slots-list {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Promo styles */
.badge.promo {
    background: #dbeafe;
    color: #1e40af;
}

.promo-banner {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border: 1px solid #7dd3fc;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    color: #0369a1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease-out;
}

.promo-banner h4 {
    color: #0369a1;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.promo-banner p {
    color: #0c4a6e;
    font-size: 0.95rem;
    margin: 0;
}

.promo-banner.expired {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #d1d5db;
    color: #4b5563;
}

.promo-banner.expired h4 {
    color: #4b5563;
}

.promo-banner.expired p {
    color: #374151;
}

.promo-notice-modal {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

@media (max-width: 600px) {
    .calendar-nav {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        text-align: center;
    }
    .calendar-nav button {
        width: 100%;
    }
    .calendar-grid {
        flex-direction: column;
        gap: 15px;
    }
}


