/* Extracted from business/book_now.php */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f4f6f9;
    padding: 0;
}

.reception-nav {
    background: white;
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.reception-nav a {
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    background: #eef4ff;
    color: #004080;
    font-weight: 600;
    transition: all .2s ease;
}

.reception-nav a:hover {
    transform: translateY(-2px);
    background: #dbeafe;
}

.page-header {
    margin: 20px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.page-title {
    margin: 0 0 15px 0;
    font-size: 28px;
}

.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.filter-group label {
    margin-bottom: 6px;
    font-weight: bold;
}

.filter-group select,
.filter-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 14px;
}

#scheduleContainer {
    margin: 20px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 10px;
}

.slot-card {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.slot-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.slot-card .slot-time {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #1e3a8a; /* Dark blue for better readability */
}

.slot-card.available {
    border-color: #22c55e;
    background: #f0fdf4;
}

.slot-card.booked {
    border-color: #ef4444;
    background: #fef2f2;
}

.slot-card strong {
    display: block;
    margin-bottom: 4px;
}

.stats-bar {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.stat-card {
    background: #f7f7f7;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 14px;
}

.fc-event.available {
    background-color: #22c55e !important;
    border-color: #22c55e !important;
    color: #ffffff !important;
}

.fc-event.booked {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

.fc-timegrid-event {
    border-radius: 999px !important;
    padding: 4px 8px !important;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-size: 20px;
    font-weight: bold;
}

.loading-overlay.show {
    display: flex;
}

.debug-panel {
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    font-size: 12px;
    font-family: monospace;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.debug-panel.show {
    display: block;
}

.debug-panel pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.success-message {
    position: fixed;
    top: 90px;
    right: 25px;
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #86efac;
    padding: 16px 22px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
    font-weight: 600;
    z-index: 30000;
    display: none;
    animation: slideIn .3s ease;
}

.success-message i {
    margin-right: 8px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
