/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* === NAVBAR === */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}
.tagline {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* === BOOKING PAGE === */
.booking-header {
    text-align: center;
    padding: 40px 20px;
    color: white;
}
.booking-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.booking-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.booking-panel {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.booking-panel h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #1e293b;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}
.booking-panel.sticky {
    position: sticky;
    top: 100px;
}

/* === ITEM CARDS === */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.item-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.item-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37,99,235,0.15);
}
.item-card.selected {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 5px 20px rgba(37,99,235,0.2);
}
.item-image {
    flex-shrink: 0;
}
.placeholder-img {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
}
.item-info {
    flex: 1;
}
.item-info h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 5px;
}
.item-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.4;
}
.item-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}
.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2563eb;
}
.duration {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
}
.variations {
    margin-bottom: 12px;
}
.variations label {
    display: block;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 5px;
    font-weight: 500;
}
.variations select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
}
.quantity-selector {
    margin-bottom: 15px;
}
.quantity-selector label {
    display: block;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 5px;
    font-weight: 500;
}
.qty-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}
.qty-buttons button {
    width: 32px;
    height: 32px;
    border: none;
    background: #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.qty-buttons button:hover {
    background: #cbd5e1;
}
.qty-input {
    width: 50px;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 5px;
    font-weight: 600;
}

/* === BUTTONS === */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
}
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(37,99,235,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}
.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}
.btn-secondary:hover {
    background: #e2e8f0;
}
.btn-select {
    background: #10b981;
    color: white;
    width: 100%;
}
.btn-select:hover {
    background: #059669;
}
.btn-block {
    width: 100%;
    text-align: center;
}
.btn-large {
    padding: 15px;
    font-size: 1.1rem;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}
.btn-success {
    background: #10b981;
    color: white;
}
.btn-danger {
    background: #ef4444;
    color: white;
}

/* === FORM ELEMENTS === */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.promo-row {
    display: flex;
    gap: 10px;
}
.promo-row input {
    flex: 1;
}

/* === CALENDAR & TIME === */
.calendar-section,
.time-section,
.customer-section {
    margin-bottom: 25px;
}
.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.time-slot {
    padding: 10px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.time-slot:hover {
    border-color: #2563eb;
    background: #eff6ff;
}
.time-slot.selected {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}
.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
}
.time-slot .availability {
    display: block;
    font-size: 0.75rem;
    margin-top: 2px;
    opacity: 0.8;
}

/* === SUMMARY === */
.summary-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}
.summary-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #1e293b;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}
.summary-line.subtotal {
    font-weight: 600;
    color: #1e293b;
}
.summary-line.discount {
    color: #10b981;
}
.summary-line.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    border-top: 2px solid #cbd5e1;
    border-bottom: none;
    padding-top: 12px;
    margin-top: 5px;
}
.secure-note {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 10px;
}

/* === SUCCESS PAGE === */
.success-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}
.success-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    max-width: 500px;
    width: 100%;
}
.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}
.success-card h1 {
    color: #1e293b;
    margin-bottom: 10px;
}
.subtitle {
    color: #64748b;
    margin-bottom: 30px;
}
.booking-summary {
    text-align: left;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.booking-summary h3 {
    margin-bottom: 15px;
    color: #1e293b;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}
.detail-row:last-child {
    border-bottom: none;
}
.status-confirmed {
    color: #10b981;
}
.status-pending {
    color: #f59e0b;
}
.location-info {
    margin-bottom: 20px;
}
.location-info h3 {
    margin-bottom: 8px;
}
.email-note {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* === ADMIN === */
.admin-login-page {
    background: linear-gradient(135deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}
.login-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-card h1 {
    text-align: center;
    color: #2563eb;
    margin-bottom: 5px;
}
.login-card h2 {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 30px;
}
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.admin-header h1 {
    font-size: 1.5rem;
    color: #1e293b;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}
.stat-card h3 {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 5px;
}
.stat-card p {
    color: #64748b;
    font-size: 0.9rem;
}

.admin-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}
.admin-section h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #1e293b;
}
.admin-section h3 {
    font-size: 1rem;
    margin: 20px 0 10px;
    color: #475569;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th {
    text-align: left;
    padding: 12px;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}
.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}
.admin-table tr:hover {
    background: #f8fafc;
}
.admin-table.compact td,
.admin-table.compact th {
    padding: 8px;
    font-size: 0.85rem;
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-confirmed {
    background: #d1fae5;
    color: #065f46;
}
.badge-pending {
    background: #fef3c7;
    color: #92400e;
}
.badge-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.admin-form {
    max-width: 600px;
    margin-bottom: 20px;
}
.admin-form .form-group {
    margin-bottom: 15px;
}
.admin-form input,
.admin-form select {
    padding: 10px;
    font-size: 0.9rem;
}

.blockout-list {
    list-style: none;
}
.blockout-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.inline-edit {
    padding: 6px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
}
.inline-edit.short {
    width: 80px;
}

.empty-state {
    color: #94a3b8;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* === LOADING OVERLAY === */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === FOOTER === */
footer {
    text-align: center;
    padding: 30px;
    color: white;
    opacity: 0.8;
    font-size: 0.85rem;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }
    .booking-panel.sticky {
        position: static;
    }
    .admin-two-col {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .item-card {
        flex-direction: column;
    }
    .placeholder-img {
        width: 100%;
        height: 150px;
    }
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
