/* Scheduler Styles */
.scheduler-table td { position: relative; min-width: 150px; }

.appointment-card {
    border-radius: 6px;
    border-left: 4px solid rgba(0,0,0,0.3) !important;
    padding: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    font-size: 11px;
}

/* Hover Efekti: Genişleyip Detay Gösterme */
.appointment-card:hover {
    z-index: 100 !important;
    transform: scale(1.03);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1) !important;
    height: auto !important; /* Tüm bilgiyi göster */
    min-height: 80px;
}

.appointment-card .app-detail {
    display: none; /* Normalde gizli */
}

.appointment-card:hover .app-detail {
    display: block; /* Üzerine gelince göster */
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 4px;
}

/* Durum Gölgeleri */
.shadow-blue { box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2); }
.shadow-green { box-shadow: 0 4px 6px rgba(25, 135, 84, 0.2); }

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .scheduler-table th { min-width: 120px !important; font-size: 10px; }
    .appointment-card { padding: 3px; font-size: 10px; }
    .name-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* --- TAKVİM ANA KONTEYNER --- */
.calendar-split-container {
    display: flex;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    min-height: 420px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

/* --- SOL PANEL (TAKVİM) --- */
.cal-left-panel {
    flex: 1.4;
    padding: 25px;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

/* --- SAĞ PANEL (DETAYLAR) --- */
.cal-right-panel {
    flex: 1;
    padding: 25px;
    background: #fcfcfd;
    display: flex;
    flex-direction: column;
}

/* --- GÜN HÜCRELERİ GENEL --- */
.cal-day {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    position: relative;
    color: #444;
    margin-bottom: 2px;
}

.cal-day:hover:not(.empty) {
    background-color: #f0f7ff;
    color: #0d6efd;
}

.cal-day.empty {
    cursor: default;
}

/* --- SEÇİLİ GÜN --- */
.cal-day.selected-day {
    background-color: #0d6efd !important;
    color: #fff !important;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

/* --- DOLU (REZERVE) GÜN --- */
.cal-day.occupied {
    background-color: #fff5f5;
    color: #dc3545;
}

.cal-day.occupied::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 5px;
    height: 5px;
    background-color: #dc3545;
    border-radius: 50%;
}

.cal-day.selected-day.occupied::after {
    background-color: #fff; /* Seçiliyken nokta beyaz olsun */
}

/* --- REZERVASYON KARTI (SAĞ PANEL) --- */
#calResDetail .card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #edf2f7 !important;
    cursor: pointer;
}

#calResDetail .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important;
    border-color: #0d6efd !important;
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 768px) {
    .calendar-split-container {
        flex-direction: column;
    }
    .cal-left-panel {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .cal-day {
        height: 55px; /* Mobilde daha kolay tıklama için */
    }
}

/* --- ANİMASYON --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#calResDetail > div {
    animation: fadeIn 0.3s ease forwards;
}