.ped-booking-container { max-width: 1200px; margin: 20px auto; font-family: sans-serif; }
.ped-form-group { margin-bottom: 15px; }
.ped-form-group label { display: block; font-weight: bold; margin-bottom: 5px; }
.ped-form-group input, .ped-form-group textarea { width: 100%; padding: 8px; box-sizing: border-box; }

/* Nawigacja tygodniowa */
.ped-calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    background: #fff;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}
.ped-nav-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}
.ped-nav-btn:hover { background: #2980b9; }
.ped-nav-btn:disabled { background: #bdc3c7; cursor: not-allowed; }
#ped-current-week-label { font-weight: bold; font-size: 1.1em; color: #2c3e50; }

/* Kontener z poziomym przewijaniem dla urządzeń mobilnych */
.ped-calendar-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    background: #f9f9f9; 
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Wymuszenie dokładnie 7 kolumn w jednej linii */
.ped-week-calendar { 
    display: grid; 
    grid-template-columns: repeat(7, minmax(130px, 1fr)); 
    gap: 10px; 
    padding: 15px; 
    min-width: 950px; /* Zapewnia, że kolumny nie ścisną się zbyt mocno */
}

.ped-day-column { 
    background: #fff; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    padding: 10px; 
    text-align: center; 
}

.ped-day-header { 
    font-weight: bold; 
    padding-bottom: 8px; 
    margin-bottom: 10px; 
    border-bottom: 2px solid #3498db; 
    font-size: 0.9em;
    background: #f8f9fa;
    margin: -10px -10px 10px -10px;
    padding: 10px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.ped-day-header span { display: block; color: #7f8c8d; font-size: 0.85em; font-weight: normal; margin-top: 3px; }

/* Stylizacja kafelków godzin */
.ped-slot { 
    padding: 8px 4px; 
    margin-bottom: 8px; 
    text-align: center; 
    border-radius: 4px; 
    cursor: pointer; 
    font-weight: bold; 
    border: 1px solid #ccc; 
    font-size: 0.85em;
    transition: all 0.2s ease;
}

/* Statusy kolorów */
.ped-slot.available { background-color: #2ecc71; color: white; border-color: #27ae60; }
.ped-slot.pending { background-color: #f39c12; color: white; border-color: #d35400; }
.ped-slot.confirmed { background-color: #e74c3c; color: white; border-color: #c0392b; cursor: not-allowed; opacity: 0.7; }
.ped-slot.not-working { background-color: #e5e7eb; color: #9ca3af; border-color: #d1d5db; cursor: not-allowed; font-weight: normal; }

.ped-slot.selected { outline: 3px solid #3498db; transform: scale(1.03); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }

#ped-booking-message { margin-top: 15px; padding: 10px; display: none; border-radius: 4px; font-weight: bold; }
.ped-msg-success { background: #d4edda; color: #155724; }
.ped-msg-error { background: #f8d7da; color: #721c24; }

/* Sekcja formularza danych pacjenta */
#ped-appointment-fields { display: none; margin-top: 25px; padding: 20px; border: 1px solid #ddd; border-radius: 6px; background: #fff; }