/* FullCalendar özel stiller */

/* ========== Bildirim Alanı Stilleri - Tatil Yapısıyla Aynı ========== */
/* Orta toolbar chunk - yazdır butonuna doğru yasla */
.fc-header-toolbar .fc-toolbar-chunk:nth-child(2) {
  flex: 0 0 auto !important;
  margin-left: 12px !important;
  margin-right: auto !important;
  justify-content: flex-start !important;
  display: flex !important;
  align-items: center !important;
}

/* Bildirimler toolbar içinde sola yaslı dursun */
.fc-header-toolbar .notification-toolbar-chunk {
  flex: 1 1 auto !important;
  margin-left: 12px !important;
  margin-right: auto !important;
  justify-content: flex-start !important;
  display: flex !important;
  align-items: center !important;
}

.notification-toolbar-chunk .notification-area {
  justify-content: flex-start !important;
  width: 100% !important;
}

.notification-toolbar-chunk .notification-scroll-container {
  justify-content: flex-start !important;
}

.notification-area {
  display: flex;
  align-items: center;
  position: relative;
  max-width: 500px;
  overflow: hidden;
}

/* Bildirim kaydırma container */
.notification-scroll-container {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 2px 0;
}

/* Kaydırma ok butonları */
.notification-scroll-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
  transition: all 0.2s ease;
  z-index: 10;
}

.notification-scroll-btn:hover {
  background: #495057;
  transform: scale(1.1);
}

.notification-scroll-btn.scroll-left {
  margin-right: 4px;
}

.notification-scroll-btn.scroll-right {
  margin-left: 4px;
}

/* Kaydırma butonu görünürlüğü */
.notification-area.has-overflow .notification-scroll-btn {
  display: flex;
}

/* İki satırlı bildirim kartı - Tatil yapısıyla aynı font değerleri */
.notification-card {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2px 8px;
  font-size: 11px;
  line-height: 1.3;
  cursor: pointer;
  vertical-align: middle;
}

.notification-card:hover {
  opacity: 0.8;
}

/* Üst satır - Icon ve başlık (tatil-info-name ile aynı) */
.notification-header {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #e74c3c;
  font-size: 11px;
}

.notification-header .notification-icon {
  font-size: 11px;
}

.notification-header .notification-title {
  white-space: nowrap;
}

/* Alt satır - Öğrenci isimleri (holiday-info-date ile aynı) */
.notification-body {
  font-weight: 400;
  color: #888;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

/* ========== / Bildirim Alanı Stilleri ========== */

/* Takvim view container - Tab menüsünün üzerinde kalması için yükseklik sınırı */
.fc-view-harness {
  position: relative !important;
  overflow: hidden !important;
  max-height: calc(100vh - 200px) !important; /* Tab menüsü için alan bırak */
}

/* Tatil medya overlay - takvim alanı içinde kalması için */
.holiday-media-overlay {
  pointer-events: none !important;
  z-index: 1 !important;
}

.holiday-media-overlay video,
.holiday-media-overlay img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 0.35 !important;
}

/* Tercih butonu - başlangıçta gizli (Settings tarafından kontrol edilir) */
.fc-preferenceButton-button {
  display: none;
}
.fc-multiMonthYear-view .fc-daygrid-day {
    height: 90px !important;
    min-height: 90px !important;
}
/* Gizli events için CSS class - DAHA GÜÇLÜ SELECTOR */
.fc-event.fc-event-hidden,
.fc-timeline-event.fc-event-hidden,
.fc-h-event.fc-event-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Haftalık grid - Farklı aya ait günlerin gri gösterimi */
.fc-timegrid-col.other-month-day {
  background-color: #f5f5f5 !important;
}

.fc-timegrid-col.other-month-day .fc-col-header-cell-cushion {
  opacity: 0.5;
}

/* Resource label'lardaki avatar'ları yuvarlak yap */
.fc-resource-cell img,
.fc-datagrid-cell img {
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Aylık görünümde yatay scroll'u engelle ve dikey scroll alanını artır */
.fc-resourceTimelineMonth-view {
  overflow-x: hidden !important; /* Yatay scroll engellendi */
}

.fc-resourceTimelineMonth-view .fc-scroller-liquid-absolute {
  overflow-x: hidden !important; /* Yatay scroll engellendi */
  overflow-y: auto !important; /* Dikey scroll aktif */
  max-height: calc(100vh - 310px) !important; /* Dikey scroll alanı artırıldı */
}

.fc-resourceTimelineMonth-view .fc-timeline-body {
  overflow-x: hidden !important; /* Yatay scroll engellendi */
}

/* Aylık görünüm için özel stiller - 50px satır yüksekliği */
.fc-resourceTimelineMonth-view .fc-timeline-lane {
  min-height: 50px !important;
  height: 50px !important;
}

.fc-resourceTimelineMonth-view .fc-resource-cell {
  padding: 4px 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  height: 50px !important;
  min-height: 50px !important;
}

.fc-resourceTimelineMonth-view .fc-timeline-slot {
  height: 50px !important;
  min-height: 50px !important;
}

.fc-resourceTimelineMonth-view .fc-datagrid-cell {
  height: 25px !important;
  min-height: 25px !important;
}

.fc-resourceTimelineMonth-view .fc-datagrid-cell-frame {
  height: 50px !important;
  min-height: 50px !important;
}

/* Timeline header - saat slotları 50px */
.fc-resourceTimelineMonth-view .fc-timeline-header-row {
  height: 25px !important;
}

.fc-resourceTimelineMonth-view .fc-timeline-header-row th {
  height: 50px !important;
  line-height: 50px !important;
  padding: 0 4px !important;
  font-size: 11px !important;
}

.fc-resourceTimelineMonth-view .fc-timeline-slot-cushion {
  height: 50px !important;
  line-height: 50px !important;
  padding: 0 2px !important;
}

/* Resource header - SOL TARAF: TAMAMEN GİZLE */
.fc-resourceTimelineMonth-view .fc-datagrid-header {
  display: none !important;
}

.fc-resourceTimelineMonth-view .fc-datagrid-header .fc-datagrid-cell {
  height: 25px !important;
  vertical-align: middle !important;
}

.fc-resourceTimelineMonth-view .fc-datagrid-header .fc-datagrid-cell-frame {
  height: 25px !important;
  padding: 0 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

.fc-resourceTimelineMonth-view .fc-datagrid-header .fc-datagrid-cell-cushion {
  height: 25px !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  white-space: pre-line !important;
  line-height: 1.3 !important;
  padding: 2px !important;
}

/* Aylık görünümde event'lerin tam hücreyi kaplaması - 50px */
.fc-resourceTimelineMonth-view .fc-timeline-event {
  height: 50px !important;
  top: 0 !important;
  margin-bottom: 0 !important;
}

.fc-resourceTimelineMonth-view .fc-event-main {
  height: 50px !important;
  padding: 2px !important;
}

.fc-resourceTimelineMonth-view .fc-timeline-event-harness {
  height: 50px !important;
  top: 0 !important;
  margin-bottom: 0 !important;
}

/* Aynı saatteki eventler için lane içi düzenleme */
.fc-resourceTimelineMonth-view .fc-timeline-lane-frame {
  display: flex !important;
  flex-direction: column !important;
  height: 50px !important;
}

/* Ders etkinliklerinde hover sil butonu */
.fc-event {
    position: relative !important;
}

.fc-event-hover-delete {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    width: 18px !important;
    height: 18px !important;
    background: #dc3545 !important;
    color: white !important;
    border-radius: 50% !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 1000 !important;
    border: 1px solid white !important;
    line-height: 1 !important;
}

/* Event'lerin tam hücreyi kaplaması için */
.fc-event {
    /* width: 100% !important; */
    height: 100% !important;
}

.fc-event-title {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 2px 4px !important;
    box-sizing: border-box !important;
}

.fc-event:hover .fc-event-hover-delete {
    display: flex !important;
}

/* Grup derslerine misafir öğrenci ekleme butonu */
.fc-event-hover-add {
    position: absolute !important;
    top: 22px !important; /* Silme butonunun altında */
    right: 2px !important;
    width: 18px !important;
    height: 18px !important;
    background: #28a745 !important; /* Yeşil renk */
    color: white !important;
    border-radius: 50% !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 1000 !important;
    border: 1px solid #121111 !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

/* EVDE DESTEK EĞİTİMİ DERS GÖRSELLERİ */

/* Evde destek eğitimi olan dersler için özel stil */
.fc-event.home-support-lesson {
    position: relative !important;
    border-left: 4px solid #28a745 !important; /* Yeşil sol border */
}

/* Evde destek eğitimi dersleri için özel arka plan */
.fc-event.home-support-lesson .fc-event-main {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3) !important;
}

/* Evde destek eğitimi ikonunu başlıkta vurgulamak için */
.fc-event.home-support-lesson .fc-event-title {
    font-weight: 600 !important;
    color: white !important;
}

/* Evde destek eğitimi dersleri için özel hover efekti */
.fc-event.home-support-lesson:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
    transition: all 0.2s ease !important;
}

/* Evde destek eğitimi grup dersleri için ek stil */
.fc-event.group-lesson.home-support-lesson {
    border-left: 6px solid #155724 !important; /* Daha koyu yeşil */
}

/* Evde destek eğitimi bireysel dersleri için ek stil */
.fc-event.individual-lesson.home-support-lesson {
    border-left: 4px solid #155724 !important;
}

/* Timeline view'da evde destek eğitimi derslerini optimize et */
.fc-timeline-event.home-support-lesson .fc-event-main {
    padding: 2px 6px !important;
}

/* Day/Week view'da evde destek eğitimi derslerini optimize et */
.fc-timegrid-event.home-support-lesson .fc-event-main {
    padding: 4px 8px !important;
    min-height: 20px !important;
}

/* Küçük ekranlarda evde destek ikon boyutu */
@media (max-width: 768px) {
    .fc-event.home-support-lesson .fc-event-title {
        font-size: 11px !important;
    }

    .fc-event.home-support-lesson {
        border-left-width: 3px !important;
    }
}

/* Print görünümünde evde destek dersleri */
@media print {
    .fc-event.home-support-lesson {
        background: #e8f5e8 !important;
        color: #155724 !important;
        border-left: 4px solid #28a745 !important;
    }
}

.fc-event-hover-add:hover {
    background: #1e7e34 !important;
    transform: scale(1.1) !important;
}

/* Grup eventlerde artı butonu görünür - sadece grup dersleri için */
.fc-event:hover .fc-event-hover-add,
.group-event-content:hover .fc-event-hover-add {
    display: flex !important;
}

/* Hover'da artı butonu görünür */
.fc-event:hover .fc-event-hover-add {
    display: flex !important;
}

.fc-event-hover-delete:hover {
    background: #c82333 !important;
    transform: scale(1.1) !important;
}

/* Resource timeline'daki öğretmen kartları */
.fc-resource-cell {
    padding: 6px !important;
}

.fc-resource-cell .teacher-card img {
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Timeline view'da öğretmen isimlerinin yanındaki avatarlar */
.fc-datagrid-body .fc-datagrid-cell {

}

.fc-datagrid-body .fc-datagrid-cell img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-right: 8px !important;
}

/* Tüm toolbar butonları için uniform styling */
.fc-button-primary,
.fc-button-group .fc-button,
.fc-toolbar-chunk .fc-button {
  height: 34px !important;
  min-width: 80px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 3px !important;
  padding: 0 12px !important;
  border: 4px solid !important;
  transition: all 0.2s ease !important;
}

/* Navigasyon butonları (önceki/sonraki) */
.fc-prev-button, .fc-next-button {
  min-width: 40px !important;
  background: #495057 !important;
  border-color: #495057 !important;
  color: white !important;
}

.fc-prev-button:hover, .fc-next-button:hover {
  background: #343a40 !important;
  border-color: #343a40 !important;
}

/* Today butonu */
.fc-today-button {
  background: #6c757d !important;
  border-color: #6c757d !important;
  color: white !important;
}

.fc-today-button:hover {
  background: #5a6268 !important;
  border-color: #5a6268 !important;
}

/* View butonları - renkli */
.fc-dayGridMonth-button {
  background: #17a2b8 !important;
  border-color: #17a2b8 !important;
  color: white !important;
}

.fc-timeGridWeek-button {
  background: #28a745 !important;
  border-color: #28a745 !important;
  color: white !important;
}

.fc-timeGridDay-button {
  background: #007bff !important;
  border-color: #007bff !important;
  color: white !important;
}

.fc-listWeek-button {
  background: #6f42c1 !important;
  border-color: #6f42c1 !important;
  color: white !important;
}

.fc-dayGridYear-button {
  background: #fd7e14 !important;
  border-color: #fd7e14 !important;
  color: white !important;
}

/* Print butonu */
.fc-printButton-button {
  background: #20c997 !important;
  border-color: #20c997 !important;
  color: white !important;
}

/* Hover efektleri */
.fc-dayGridMonth-button:hover {
  background: #138496 !important;
  border-color: #138496 !important;
}

.fc-timeGridWeek-button:hover {
  background: #218838 !important;
  border-color: #218838 !important;
}

.fc-timeGridDay-button:hover {
  background: #0056b3 !important;
  border-color: #0056b3 !important;
}

.fc-listWeek-button:hover {
  background: #5a32a3 !important;
  border-color: #5a32a3 !important;
}

.fc-dayGridYear-button:hover {
  background: #e65100 !important;
  border-color: #e65100 !important;
}

.fc-printButton-button:hover {
  background: #1aa179 !important;
  border-color: #1aa179 !important;
}

/* List view özel stilleri */
.fc-list-view {
  background: white;
  border: 1px solid #e0e6ed;
  border-radius: 2px;
}

.fc-list-table {
  width: 100%;
}

.fc-list-day-cushion {
  background: #f8f9fa !important;
  color: #495057 !important;
  font-weight: 600 !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid #e0e6ed !important;
}

.fc-list-event {
  background: white !important;
  border-bottom: 1px solid #f1f3f4 !important;
  transition: background-color 0.2s ease;
}

.fc-list-event:hover {
  background: #f8f9fa !important;
}

.fc-list-event-time {
  color: #007bff !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  padding: 12px 16px !important;
  min-width: 80px !important;
}

.fc-list-event-title {
  color: #495057 !important;
  font-size: 14px !important;
  padding: 12px 16px !important;
}

.fc-list-empty {
  background: white !important;
  color: #6c757d !important;
  text-align: center !important;
  padding: 40px 20px !important;
  font-style: italic !important;
}

/* Year view özel stilleri */
.fc-daygrid-year-view .fc-daygrid-day {
  min-height: 110px !important;
  height: 110px !important;
}

.fc-daygrid-year-view .fc-daygrid-day-number {
  font-size: 11px !important;
  color: #495057 !important;
}

.fc-daygrid-year-view .fc-event {
  font-size: 10px !important;
  padding: 1px 3px !important;
  margin: 1px 0 !important;
}

.fc-daygrid-year-view .fc-more-link {
  font-size: 10px !important;
  color: #007bff !important;
  text-decoration: none !important;
}

.fc-daygrid-year-view .fc-more-link:hover {
  text-decoration: underline !important;
}

/* Resmi tatil günleri için gelişmiş stil */
.fc-day.resmi-tatil {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}

.fc-day.resmi-tatil::before {
  content: '🎌' !important;
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  font-size: 18px !important;
  opacity: 1 !important;
  z-index: 2 !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
}

.fc-day.resmi-tatil .fc-daygrid-day-number {
  color: white !important;
  font-weight: bold !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
  font-size: 16px !important;
  background: rgba(220, 53, 69, 0.8) !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
}

/* Kar tatili için özel stil */
.fc-day.kar-tatili {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}

.fc-day.kar-tatili::before {
  content: '❄️' !important;
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  font-size: 18px !important;
  opacity: 1 !important;
  z-index: 2 !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
}

.fc-day.kar-tatili .fc-daygrid-day-number {
  color: white !important;
  font-weight: bold !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
  font-size: 16px !important;
  background: rgba(21, 101, 192, 0.8) !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
}

/* Özel tatil için genel stil */
.fc-day.ozel-tatil {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%) !important;
  position: relative !important;
  overflow: hidden !important;
}

.fc-day.ozel-tatil::before {
  content: '🏖️' !important;
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  font-size: 18px !important;
  opacity: 1 !important;
  z-index: 2 !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
}

.fc-day.ozel-tatil .fc-daygrid-day-number {
  color: white !important;
  font-weight: bold !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
  font-size: 16px !important;
  background: rgba(123, 31, 162, 0.8) !important;
  border-radius: 4px !important;
  padding: 2px 6px !important;
}

/* Tatil background eventi - sadece 13:00 saatinde göster */
.fc-event.resmi-tatil,
.fc-event.kar-tatili,
.fc-event.ozel-tatil {
  opacity: 0.9 !important;
  border: 2px solid rgba(255,255,255,0.6) !important;
  font-weight: bold !important;
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
  font-size: 16px !important;
  text-align: center !important;
  line-height: 1.2 !important;
  padding: 4px !important;
}

/* Tatil animasyonu kaldırıldı - statik görünüm */

/* Yarım gün tatili için stil */
.fc-event.yarim-gun-tatil {
  height: 50% !important;
  margin-top: 25% !important;
  border-radius: 8px !important;
}

/* Tatil tooltip'i için gelişmiş stil */
.holiday-tooltip {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
  color: white !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  max-width: 250px !important;
  text-align: center !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
  border: 2px solid rgba(255,255,255,0.2) !important;
}

/* Tatil ekleme butonu */
.tatil-ekle-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 16px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin: 4px !important;
}

.tatil-ekle-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4) !important;
}

/* Gelişmiş tarih navigasyonu */
.fc-toolbar-chunk .fc-button-group {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* Hızlı tarih geçiş butonları */
.quick-date-nav {
  display: flex;
  align-items: center;
  margin-left: 12px;
}

.quick-date-btn {
  color: white;
  border: none;
  border-radius: 3px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Buton renkleri */
.quick-date-btn.today-btn {
  background: #28a745;
}

.quick-date-btn.today-btn:hover {
  background: #218838;
  transform: translateY(-1px);
}

.quick-date-btn.week-btn {
  background: #17a2b8;
}

.quick-date-btn.week-btn:hover {
  background: #138496;
  transform: translateY(-1px);
}

.quick-date-btn.month-btn {
  background: #6f42c1;
}

.quick-date-btn.month-btn:hover {
  background: #5a32a3;
  transform: translateY(-1px);
}

.quick-date-input {
  background: white;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 12px;
  color: #333;
  transition: border-color 0.2s ease;
  width: 130px;
  cursor: pointer;
  margin-bottom: 8px;
}

.quick-date-input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.15);
}

/* Toolbar title'ı tıklanabilir yap */
.fc-toolbar-title {
  cursor: pointer !important;
  transition: color 0.2s ease !important;
  padding-right: 30px;
}

.fc-toolbar-title:hover {
  color: #007bff !important;
}

/* Hızlı butonlar konteyneri */
.quick-buttons {
  display: flex;
  gap: 6px;
  margin-left: 8px;
  transition: all 0.3s ease;
  opacity: 1;
  transform: scaleX(1);
  transform-origin: left;
}

.quick-buttons.hidden {
  opacity: 0;
  transform: scaleX(0);
  width: 0;
  overflow: hidden;
}

/* Date picker calendar'ını hızlıca kapat */
.quick-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: 2px;
}

.quick-date-input[type="date"]::-webkit-calendar-picker-indicator:hover {
  background-color: rgba(102, 126, 234, 0.1);
  border-radius: 2px;
}

/* Weekly view optimizations */
.fc-resourceTimelineWeek-view {
  /* Ana haftalık görünüm konteyneri */
}

/* Öğretmen resource alanı optimizasyonları */
.fc-resourceTimelineWeek-view .fc-resource-area {
  max-height: 400px !important;
  overflow-y: auto !important;
  border-right: 2px solid #e9ecef !important;
}

/* Öğretmen satır yüksekliklerini küçült */
.fc-resourceTimelineWeek-view .fc-datagrid-cell {
  height: 35px !important;
  min-height: 35px !important;
  padding: 4px 8px !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

/* Öğretmen kartı yüksekliklerini küçült */
.fc-resourceTimelineWeek-view .teacher-card {
  height: 30px !important;
  min-height: 30px !important;
  padding: 2px 4px !important;
  display: flex !important;
  align-items: center !important;
}

/* Öğretmen avatar'larını küçült */
.fc-resourceTimelineWeek-view .teacher-avatar img {
  width: 24px !important;
  height: 24px !important;
  margin-right: 6px !important;
}

/* Öğretmen isim alanını optimize et */
.fc-resourceTimelineWeek-view .teacher-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.fc-resourceTimelineWeek-view .teacher-name {
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin-bottom: 1px !important;
}

.fc-resourceTimelineWeek-view .teacher-title {
  font-size: 9px !important;
  color: #666 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Öğretmen istatistiklerini gizle veya küçült */
.fc-resourceTimelineWeek-view .teacher-stats {
  display: none !important;
}

/* Öğretmen kontrol butonlarını küçült */
.fc-resourceTimelineWeek-view .teacher-controls {
  margin-left: 4px !important;
}

.fc-resourceTimelineWeek-view .visibility-toggle {
  width: 20px !important;
  height: 20px !important;
  font-size: 10px !important;
  padding: 2px !important;
}

/* Online status'u küçült */
.fc-resourceTimelineWeek-view .online-status {
  width: 8px !important;
  height: 8px !important;
  top: -2px !important;
  right: -2px !important;
}

/* Timeline ana alanını genişlet */
.fc-resourceTimelineWeek-view .fc-timeline-body {
  overflow-x: auto !important;
}

/* Gün başlıklarını optimize et */
.fc-resourceTimelineWeek-view .fc-col-header-cell {
  min-width: 140px !important;
  padding: 8px 4px !important;
}

.fc-resourceTimelineWeek-view .fc-col-header-cell-cushion {
  font-size: 12px !important;
  font-weight: 600 !important;
  text-align: center !important;
}

/* Timeline slot'larını optimize et */
.fc-resourceTimelineWeek-view .fc-timeline-slot {
  min-width: 140px !important;
  border-right: 1px solid #e9ecef !important;
}

/* Event'lerin öğrenci isimlerini tam göster */
.fc-resourceTimelineWeek-view .fc-event {
  min-width: 120px !important;
  font-size: 11px !important;
  padding: 2px 4px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  z-index: 10 !important;
}

.fc-resourceTimelineWeek-view .fc-event:hover {
  z-index: 100 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
  transform: scale(1.02) !important;
}

/* Scroll bar styling */
.fc-resourceTimelineWeek-view .fc-resource-area::-webkit-scrollbar {
  width: 8px;
}

.fc-resourceTimelineWeek-view .fc-resource-area::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.fc-resourceTimelineWeek-view .fc-resource-area::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.fc-resourceTimelineWeek-view .fc-resource-area::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 10+ öğretmen için scroll göstergesi */
.fc-resourceTimelineWeek-view .fc-resource-area.many-teachers::before {
  content: '↕️ Kaydır';
  position: absolute;
  top: 5px;
  right: 15px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  z-index: 100;
  animation: fadeInOut 3s infinite;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Resource header sticky */
.fc-resourceTimelineWeek-view .fc-resource-area-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  background: #495057 !important;
}

/* Timeline saat başlıklarını optimize et */
.fc-resourceTimelineWeek-view .fc-timeline-header-row {
  height: 30px !important;
}

.fc-resourceTimelineWeek-view .fc-timeline-slot-label {
  font-size: 10px !important;
  padding: 2px !important;
}

/* Aylık Takvim - Ders olan günler için mavi badge */
.fc-daygrid-day-number.has-lessons {
  position: relative !important;
}

.lesson-badge {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  width: 12px !important;
  height: 12px !important;
  background: #007bff !important;
  border: 2px solid white !important;
  border-radius: 50% !important;
  z-index: 10 !important;
  box-shadow: 0 2px 4px rgba(0,123,255,0.3) !important;
}

/* Hover efekti */
.fc-daygrid-day-number.has-lessons:hover .lesson-badge {
  background: #0056b3 !important;
  transform: scale(1.1) !important;
  transition: all 0.2s ease !important;
}

/* Yıllık görünümde gün numaralarını merkeze al */
.fc-dayGridYear-view .fc-daygrid-day-number {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  font-weight: 500 !important;
}

/* Özel Datepicker Stilleri */
.custom-datepicker-container {
  position: relative;
  display: inline-block;
}

.custom-datepicker {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
  width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 2px;
}

.datepicker-portal {
  position: fixed !important;
  z-index: 2147483000 !important;
  isolation: isolate !important;
  pointer-events: auto !important;
  width: 200px !important;
}

.datepicker-day.has-holiday {
  background: #dc3545 !important;
  color: white !important;
  font-weight: bold !important;
  border-radius: 50% !important;
}

.datepicker-day.has-holiday:hover {
  background: #c82333 !important;
}

.datepicker-day.today.has-holiday {
  background: #ffc107 !important;
  color: #333 !important;
}

.datepicker-day.today.has-holiday:hover {
  background: #ffb300 !important;
}

.datepicker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

.datepicker-title {
  font-weight: 600;
  color: #333;
  font-size: 13px;
}

.datepicker-nav {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  color: #666;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.datepicker-nav:hover {
  background: #f0f0f0;
  color: #333;
}

.datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.datepicker-day-header {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: #666;
  padding: 4px 2px;
  background: #f8f9fa;
}

.datepicker-day {
  position: relative;
  text-align: center;
  padding: 6px 2px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 11px;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.datepicker-day:hover {
  background: #e3f2fd;
}

.datepicker-day.empty {
  cursor: default;
  opacity: 0;
}

.datepicker-day.today {
  background: #007bff;
  color: white;
  font-weight: bold;
}

.datepicker-day.today:hover {
  background: #0056b3;
}

.datepicker-day.has-lessons {
  background: #007bff !important;
  color: white !important;
  font-weight: bold !important;
  border-radius: 50% !important;
}

.datepicker-day.has-lessons:hover {
  background: #0056b3 !important;
}

.datepicker-day.today.has-lessons {
  background: #ffc107 !important;
  color: #333 !important;
}

.datepicker-day.today.has-lessons:hover {
  background: #ffb300 !important;
}

/* ========== ÖĞRETMENİÇİN SAYFALAMA BUTONLARI ========== */
.teacher-pagination-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.teacher-pagination-nav:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.05);
}

.teacher-pagination-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.teacher-pagination-nav svg {
  width: 20px;
  height: 20px;
  color: #555;
}

.teacher-pagination-prev {
  left: 10px;
}

.teacher-pagination-next {
  right: 10px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .teacher-pagination-nav {
    width: 32px;
    height: 32px;
  }

  .teacher-pagination-nav svg {
    width: 16px;
    height: 16px;
  }

  .teacher-pagination-prev {
    left: 5px;
  }

  .teacher-pagination-next {
    right: 5px;
  }
}

/* ========================================
   ÖĞRENCİ TERCİH BAZLI UYUMLULUK STİLLERİ
   ======================================== */

/* Uyumlu öğretmen kolonu - Yeşil */
.teacher-column-allowed {
  background-color: rgba(76, 175, 80, 0.1) !important;
  border-left: 3px solid #4CAF50 !important;
}

.teacher-column-allowed .fc-col-header-cell-cushion {
  color: #2e7d32 !important;
  font-weight: 600 !important;
}

/* Uyumsuz öğretmen kolonu - Kırmızı */
.teacher-column-blocked {
  background-color: rgba(244, 67, 54, 0.08) !important;
  border-left: 3px solid #f44336 !important;
  opacity: 0.6 !important;
}

.teacher-column-blocked .fc-col-header-cell-cushion {
  color: #c62828 !important;
  font-weight: 600 !important;
}

/* Uyumlu zaman slotu - Yeşil */
.teacher-slot-allowed {
  background-color: rgba(76, 175, 80, 0.15) !important;
  border: 2px solid #4CAF50 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.teacher-slot-allowed:hover {
  background-color: rgba(76, 175, 80, 0.25) !important;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3) !important;
}

/* Uyumsuz zaman slotu - Kırmızı */
.teacher-slot-blocked {
  background-color: rgba(244, 67, 54, 0.1) !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* ========================================
   TATİL OVERLAY STİLLERİ (DUAL-EVENT)
   ======================================== */

/* Tatil Background Event - Tüm günü renklendir */
.fc-holiday-background {
  opacity: 0.4 !important;
  z-index: 1 !important;
}

/* Tatil Banner Event - Boydan boya büyük yazı */
.fc-event.fc-holiday-banner {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  max-width: none !important;
  margin-left: -50vw !important;
  transform: translateX(50%) !important;
  z-index: 1000 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  pointer-events: none !important;
  cursor: default !important;
}

.fc-holiday-banner .fc-event-main {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  height: 100% !important;
}

.fc-holiday-banner-content {
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
  white-space: nowrap !important;
}

/* Resmi Tatil - Kırmızı tonları */
.fc-holiday-resmi {
  background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%) !important;
}

/* Özel Tatil - Kullanıcının seçtiği renk (dinamik) */
.fc-holiday-ozel {
  background: linear-gradient(135deg, var(--holiday-color, #ff6b6b) 0%, color-mix(in srgb, var(--holiday-color, #ff6b6b) 80%, #000) 100%) !important;
}

/* Tatil günlerinde tüm hücrelerin arka planı */
.fc-timegrid-col.fc-day-holiday,
.fc-daygrid-day.fc-day-holiday {
  position: relative;
}

.fc-timegrid-col.fc-day-holiday::before,
.fc-daygrid-day.fc-day-holiday::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: inherit;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

/* Tatil günlerindeki normal eventleri soluklaştır */
.fc-day-holiday .fc-event:not(.fc-holiday-banner):not(.fc-holiday-background) {
  opacity: 0.5 !important;
  filter: grayscale(30%) !important;
}

/* Resource Timeline görünümünde tatil banner */
.fc-resourceTimelineWeek-view .fc-holiday-banner,
.fc-resourceTimelineDay-view .fc-holiday-banner {
  height: 40px !important;
  min-height: 40px !important;
}

/* TimeGrid görünümünde tatil banner */
.fc-timegrid .fc-holiday-banner {
  min-height: 35px !important;
}

/* Mobil responsive */
@media (max-width: 768px) {
  .fc-holiday-banner-content {
    font-size: 14px !important;
    letter-spacing: 1px !important;
  }
}
.fc-bkdsButton-button {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
  color: #fff !important;
  font-weight: 800 !important;
}

.fc-bkdsButton-button:hover {
  background: #b91c1c !important;
  border-color: #991b1b !important;
  color: #fff !important;
}

/* Günlük takvim: son saat satırının boş alanı doldurup uzamasını engelle. */
.fc-resourceTimeGridDay-view .fc-timegrid-slots table {
  height: auto !important;
}

/* Öğretmen kolon katmanı tüm slot yüksekliğini kaplamalıdır.
   Aksi halde zemin rengi ilk slota sıkışır ve dikey hücre çizgileri kaybolur. */
.fc-resourceTimeGridDay-view .fc-timegrid-cols,
.fc-resourceTimeGridDay-view .fc-timegrid-cols table,
.fc-resourceTimeGridDay-view .fc-timegrid-cols tbody,
.fc-resourceTimeGridDay-view .fc-timegrid-cols tr {
  height: 100% !important;
}

.fc-resourceTimeGridDay-view .fc-timegrid-slot,
.fc-resourceTimeGridDay-view .fc-timegrid-slot-label-frame {
  height: 50px !important;
  min-height: 50px !important;
}

/* Manuel saat düzeninde FullCalendar 10 dakikalık teknik satırlar kullanır.
   Bu satırlar yalnız konumlandırma içindir; ders içindeki çizgiler gizlenir. */
.manual-lesson-schedule .fc-resourceTimeGridDay-view .fc-timegrid-slot,
.manual-lesson-schedule .fc-resourceTimeGridDay-view .fc-timegrid-slot-label-frame,
.manual-lesson-schedule .fc-resourceDayGridWeekCustom-view .fc-timegrid-slot,
.manual-lesson-schedule .fc-resourceDayGridWeekCustom-view .fc-timegrid-slot-label-frame {
  height: 12px !important;
  min-height: 12px !important;
  line-height: 12px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.manual-lesson-schedule .fc-resourceTimeGridDay-view .fc-timegrid-slots tr,
.manual-lesson-schedule .fc-resourceDayGridWeekCustom-view .fc-timegrid-slots tr {
  height: 12px !important;
  min-height: 12px !important;
  line-height: 12px !important;
}

.manual-lesson-schedule .fc-timegrid-slot.manual-time-slot-inside {
  border-top-color: transparent !important;
}

.manual-lesson-schedule .fc-timegrid-slot.manual-time-slot-start {
  border-top-style: solid !important;
}

/* Manuel ders etiketi teknik ilk satırın üstünde değil, ders bloğunun ortasında görünsün. */
.manual-lesson-schedule .fc-timegrid-slot-label.manual-time-slot-start .fc-timegrid-slot-label-frame {
  position: relative;
  z-index: 2;
  transform: translateY(18px);
}

/* FullCalendar koordinat hesabı için boş zaman satırını DOM'da tut, ancak
   kullanıcıya ayrı bir zaman satırı/çizgisi olarak gösterme. */
.manual-lesson-schedule .fc-resourceTimeGridDay-view .fc-timegrid-slots tr:has(.manual-time-slot-gap),
.manual-lesson-schedule .fc-resourceDayGridWeekCustom-view .fc-timegrid-slots tr:has(.manual-time-slot-gap),
.manual-lesson-schedule .fc-timegrid-slot.manual-time-slot-gap {
  display: table-row !important;
  height: 0.25px !important;
  min-height: 0.25px !important;
  line-height: 0 !important;
  padding: 0 !important;
  border-top-color: transparent !important;
}

.manual-lesson-schedule .fc-timegrid-slot.manual-time-slot-gap {
  display: table-cell !important;
}

/* Satırın label/axis hücreleri varsayılan yazı yüksekliğiyle boşluğu yeniden
   büyütmesin; boş zaman satırındaki tüm tablo hücrelerini birlikte daralt. */
.manual-lesson-schedule .fc-timegrid-slots tr:has(.manual-time-slot-gap) > *,
.manual-lesson-schedule .fc-timegrid-slots tr:has(.manual-time-slot-gap) .fc-timegrid-slot-label-frame,
.manual-lesson-schedule .fc-timegrid-slots tr:has(.manual-time-slot-gap) .fc-timegrid-slot-label-cushion {
  height: 0.25px !important;
  min-height: 0 !important;
  max-height: 0.25px !important;
  line-height: 0 !important;
  font-size: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top-color: transparent !important;
  overflow: hidden !important;
}

.manual-lesson-schedule .fc-resourceTimeGridDay-view .fc-timegrid-slot-label-cushion,
.manual-lesson-schedule .fc-resourceDayGridWeekCustom-view .fc-timegrid-slot-label-cushion {
  line-height: 12px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}



/* 13:10'da biten son sabah dersinin alt sınırını görünür tut. */
.manual-lesson-schedule .fc-timegrid-slot.manual-time-slot-lunch-start {
  border-top-color: #d8dee6 !important;
  border-top-style: solid !important;
}
/* Kullanıcı öğle arasını açtıysa yalnız öğle boşluğunu normal bir bant olarak göster. */
.manual-lesson-schedule .fc-timegrid-slots tr:has(.manual-time-slot-lunch-gap),
.manual-lesson-schedule .fc-timegrid-slots tr:has(.manual-time-slot-lunch-gap) > *,
.manual-lesson-schedule .fc-timegrid-slot.manual-time-slot-lunch-gap,
.manual-lesson-schedule .fc-timegrid-slots tr:has(.manual-time-slot-lunch-gap) .fc-timegrid-slot-label-frame {
  height: 12px !important;
  min-height: 12px !important;
  max-height: none !important;
  line-height: 12px !important;
  font-size: inherit !important;
}
.manual-lesson-schedule .fc-timegrid-slots tr:has(.manual-time-slot-lunch-gap) {
  display: table-row !important;
}

/* Öğle arası yazısı kendi bandının tam ortasında kalsın. */
.manual-lesson-schedule .calendar-lunch-break-event,
.manual-lesson-schedule .calendar-lunch-break-event .fc-event-main,
.manual-lesson-schedule .calendar-lunch-break-event .fc-event-main-frame {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Öğle başlangıç sınırı, boş satırın genel şeffaf kenarlık kuralını ezmelidir. */
.manual-lesson-schedule .fc-timegrid-slots tr:has(.manual-time-slot-lunch-start) > * {
  border-top-color: #d8dee6 !important;
  border-top-style: solid !important;
  box-shadow: inset 0 1px 0 #d8dee6 !important;
}
/* Öğretmenler üstteyken günlük ve haftalık yükler en altta tek satırdır. */
.teacher-load-summary-row {
  position: relative;
  z-index: 6;
  display: grid;
  min-width: 100%;
  min-height: 48px;
  border: 1px solid #d8dee6;
  border-top: 0;
  background: #f8fafc;
  color: #334155;
  box-sizing: border-box;
}

.teacher-load-summary-title,
.teacher-load-summary-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  margin-bottom:30px;
  padding: 7px 5px;
  border-right: 1px solid #d8dee6;
  box-sizing: border-box;
  font-size: 11px;
  white-space: nowrap;
}

.teacher-load-summary-title {
  color: #166534;
  font-weight: 800;
  background: #ecfdf3;
}

.teacher-load-summary-cell:last-child { border-right: 0; }
.teacher-load-summary-cell b { color: #166534; }

/* Öğretmenler soldayken saatlerin ardından sağda sabit toplamlar sütunu. */
.fc-resourceTimelineDayLoad-view {
  position: relative;
  min-height: 0;
}

.fc-resourceTimelineDayLoad-view.has-teacher-load-side-column > .fc-scrollgrid {
  width: calc(100% - 116px) !important;
}

.teacher-load-summary-side {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  bottom: 0;
  width: 116px;
  overflow: hidden;
  border: 1px solid #d8dee6;
  border-left: 0;
  background: #f8fafc;
  box-sizing: border-box;
}

.teacher-load-summary-side-header {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #166534;
  background: #ecfdf3;
  border-bottom: 1px solid #d8dee6;
  font-size: 12px;
  font-weight: 800;
  box-sizing: border-box;
}

.teacher-load-summary-side-cell {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 4px 8px;
  border-bottom: 1px solid #d8dee6;
  background: #f8fafc;
  box-sizing: border-box;
  color: #334155;
  font-size: 11px;
  white-space: nowrap;
}

.teacher-load-summary-side-cell b { color: #166534; }

.fc-resourceTimelineDayLoad-view .fc-scroller-liquid-absolute {
  overflow-y: auto !important;
}

/* Öğretmenler solda: günlük timeline görünümünü uygulamanın kompakt
   takvim tasarımıyla eşleştir. FullCalendar varsayılanı büyük yazı ve
   satır sarması kullandığı için ders kutuları dağınık görünüyordu. */
.fc-resourceTimelineDayLoad-view .fc-timeline-header-row,
.fc-resourceTimelineDayLoad-view .fc-datagrid-header {
  background: #f8fafc !important;
}

.fc-resourceTimelineDayLoad-view .fc-timeline-slot-frame {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
}

.fc-resourceTimelineDayLoad-view .fc-timeline-slot-cushion {
  padding: 5px 4px !important;
  color: #475569 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 16px !important;
  white-space: nowrap !important;
}

.fc-resourceTimelineDayLoad-view .fc-datagrid-body tr,
.fc-resourceTimelineDayLoad-view .fc-timeline-body tr {
  height: 68px !important;
  min-height: 68px !important;
}

.fc-resourceTimelineDayLoad-view .fc-datagrid-body .fc-datagrid-cell-frame,
.fc-resourceTimelineDayLoad-view .fc-timeline-lane,
.fc-resourceTimelineDayLoad-view .fc-timeline-lane-frame {
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  overflow: hidden !important;
}

/* Öğle arası normal event olarak kalsa da çakışmada yeni bir görsel kat/satır
   oluşturmasın; ders kutuları her zaman öğle arasının üzerinde görünsün. */
.fc-resourceTimelineDayLoad-view .fc-timeline-event-harness.calendar-lunch-break-harness {
  z-index: 1 !important;
}

.fc-resourceTimelineDayLoad-view .fc-timeline-event-harness.calendar-lesson-harness {
  z-index: 3 !important;
}

.fc-resourceTimelineDayLoad-view .fc-timeline-event-harness {
  top: 4px !important;
  height: 60px !important;
  margin: 0 !important;
}

.fc-resourceTimelineDayLoad-view .fc-timeline-event {
  height: 60px !important;
  min-height: 60px !important;
  margin: 0 2px !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.fc-resourceTimelineDayLoad-view .fc-timeline-event .fc-event-main,
.fc-resourceTimelineDayLoad-view .fc-timeline-event .fc-event-main-frame {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.fc-resourceTimelineDayLoad-view .timeline-day-lesson-content {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 2px !important;
  padding: 5px 18px 5px 7px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.fc-resourceTimelineDayLoad-view .timeline-day-lesson-title,
.fc-resourceTimelineDayLoad-view .timeline-day-lesson-subtitle {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.fc-resourceTimelineDayLoad-view .timeline-day-lesson-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 14px !important;
}

.fc-resourceTimelineDayLoad-view .timeline-day-lesson-subtitle {
  font-size: 9px !important;
  font-style: italic !important;
  line-height: 11px !important;
  opacity: .95;
}

.fc-resourceTimelineDayLoad-view .timeline-day-delete-button {
  position: absolute !important;
  z-index: 12 !important;
  top: 3px !important;
  right: 3px !important;
  display: flex !important;
  width: 15px !important;
  height: 15px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #dc2626 !important;
  color: #fff !important;
  font-size: 12px !important;
  line-height: 15px !important;
  opacity: 0 !important;
  cursor: pointer !important;
}

.fc-resourceTimelineDayLoad-view .fc-timeline-event:hover .timeline-day-delete-button {
  opacity: 1 !important;
}

.fc-resourceTimelineDayLoad-view .fc-event-resizer-end {
  right: 0 !important;
  width: 8px !important;
  cursor: ew-resize !important;
}

@media (max-width: 900px) {
  .teacher-load-summary-cell {
    flex-direction: column;
    gap: 1px;
  }
}

/* Öğretmenler solda günlük görünümdeki Saatler düğmesi, üstteki görünümle aynı
   yeşil işlem düğmesi olarak görünür. */
.fc-resourceTimelineDayLoad-view .timeline-hours-header-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 26px !important;
  margin: 4px 6px !important;
  padding: 3px 8px !important;
  background: #28a745 !important;
  color: #fff !important;
  border: 1px solid #28a745 !important;
  border-radius: 2px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.1) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}
.fc-resourceTimelineDayLoad-view .timeline-hours-header-btn:hover {
  background: #218838 !important;
  border-color: #218838 !important;
}
.fc-resourceTimelineDayLoad-view .fc-datagrid-header .fc-datagrid-cell-cushion:has(.timeline-hours-header-btn) {
  display: flex !important;
  align-items: center !important;
  min-height: 36px !important;
  padding: 0 !important;
}