/* Genel Sıfırlama ve Kutu Modeli Ayarı */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Sayfanın tamamı için temel stiller (dipmo.net referans alındı) */
body {
    font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: #050d18;
    padding: 20px;
}

h2, h3 {
    font-weight: 600;
    margin-bottom: 20px;
}

/* Ana konteyner, her şeyi ortalar ve maksimum genişlik verir */
.container {
    max-width: 900px;
    margin: 40px auto;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* İki sütunlu yapıyı oluşturan anahtar sınıf */
.scheduler {
    display: flex;
    flex-wrap: wrap; 
}

/* Sütunlar için genel ayarlar */
.calendar-container, .details-container {
    padding: 30px;
}

/* Sol Sütun (Takvim) */
.calendar-container {
    flex: 1; 
    min-width: 320px;
    border-right: 1px solid #e9ecef;
}

/* Sağ Sütun (Detaylar) */
.details-container {
    flex: 1; 
    min-width: 320px;
}

/* Form elemanlarını daha düzenli hale getirelim */
form label {
    display: block; 
    width: 100%;    
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

form input, 
form select, 
form textarea {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
    background-color: #f8f9fa;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

form button {
    background-color: #3b82f6;
    color: white;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

form button:hover {
    background-color: #050d18;
}

/* -- TAKVİM STİLLERİ -- */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#month-year {
    font-size: 1.2rem;
    font-weight: 600;
}

#prev-month, #next-month {
    background: none;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
#prev-month:hover, #next-month:hover {
    background-color: #f0f0f0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day, .day-name {
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

.day-name {
    font-weight: 600;
    color: #888;
}

.day {
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}
.day:hover:not(.disabled) {
    background-color: #e9ecef;
}

.day.weekend, .day.disabled {
    color: #ccc;
    cursor: not-allowed;
}
.day.disabled:hover {
    background-color: transparent;
}

.day.selected {
    background-color: #050d18;
    color: white;
}

/* -- SAAT SEÇİMİ STİLLERİ -- */
#time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); /* Esnek sütun yapısı */
    gap: 10px;
    margin-bottom: 30px;
}

.time-slot-btn {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.time-slot-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.time-slot-btn.selected {
    background-color: #050d18;
    color: white;
    border-color: #050d18;
}

/* -- ONAY MODAL STİLLERİ -- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 13, 24, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

#modal-summary p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
}

#modal-summary strong {
    color: #050d18;
    margin-right: 8px;
}

.modal-actions {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-actions button {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    width: auto; /* Genel form kuralını ezmek için */
    margin-bottom: 0; /* Genel form kuralını ezmek için */
}

#cancel-btn {
    background-color: #f0f0f0;
    border-color: #ddd;
    color: #333;
}
#cancel-btn:hover {
    background-color: #e0e0e0;
}

#confirm-btn {
    background-color: #050d18;
    color: white;
}
#confirm-btn:hover {
    background-color: #3b82f6;
}