* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
}

h2 {
    color: #34495e;
    margin-bottom: 1.5rem;
}

h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.search-section {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.doctors-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.doctor-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doctor-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
}

.doctor-info h3 {
    margin-bottom: 0.5rem;
}

.doctor-specialization {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.booking-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.booking-form.hidden {
    display: none;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 0.3rem;
}

.booking-form textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

.hidden {
    display: none !important;
}

/* Stili per il modale */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.modal-close-btn {
    background-color: #e74c3c;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-close-btn:hover {
    background-color: #c0392b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .doctors-list {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .booking-form {
        padding: 1rem;
    }

    .calendar-container {
        padding: 1rem;
    }

    .calendar-day {
        font-size: 0.9rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }
}

.no-doctors-message {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.no-doctors-message h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.no-doctors-message p {
    margin-bottom: 1.5rem;
}

.no-doctors-message .submit-btn {
    display: inline-block;
    max-width: 300px;
    text-decoration: none;
}

.nav-buttons {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    background-color: #3498db;
    transition: background-color 0.3s ease;
}

.nav-btn:hover {
    background-color: #2980b9;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-actions .submit-btn {
    margin: 0;
    padding: 0.8rem 1.5rem;
    width: auto;
}

/* Calendar Styles */
.calendar-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #3498db;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.calendar-header button:hover {
    background-color: #f0f0f0;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:hover:not(.disabled) {
    background-color: #f0f0f0;
    border-color: #3498db;
}

.calendar-day.selected {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.calendar-day.disabled {
    background-color: #f5f5f5;
    color: #bbb;
    cursor: not-allowed;
}

.calendar-day.today {
    font-weight: bold;
    border-color: #3498db;
}

.change-doctor-btn {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.change-doctor-btn p {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.change-doctor-btn strong {
    color: #3498db;
}

.change-doctor-btn .submit-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .change-doctor-btn {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.selected-doctor-info {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.doctor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.doctor-header h2 {
    margin: 0;
    color: #2c3e50;
}

.change-doctor-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.change-doctor-btn:hover {
    background-color: #2980b9;
}

.doctor-details {
    display: grid;
    gap: 0.8rem;
}

.doctor-details p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #34495e;
}

.doctor-details i {
    color: #3498db;
    width: 20px;
}

.doctor-details strong {
    color: #2c3e50;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .doctor-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .selected-doctor-info {
        padding: 1rem;
    }
} 