/* ═══════════════════════════════════════════════════════════
   08-TAKVİM + RAPORLAMA + AYARLAR CSS
   Aşama 8c
   ═══════════════════════════════════════════════════════════ */

/* ═══ TAKVİM ═══ */
.tk-wrap { padding: 24px; max-width: 1200px; margin: 0 auto; }

.tk-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.tk-nav { display: flex; align-items: center; gap: 8px; }
.tk-ay { font-size: 22px; font-weight: 800; color: #1e3a5f; margin: 0 12px; min-width: 180px; text-align: center; }
.tk-actions { display: flex; gap: 6px; }

.tk-btn {
  padding: 8px 14px; border: 1px solid #d1d5db; background: #fff;
  border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 600;
  color: #374151; transition: all .15s;
}
.tk-btn:hover { background: #f3f4f6; }
.tk-btn.active { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.tk-btn.tk-add { background: #16a34a; color: #fff; border-color: #16a34a; }
.tk-btn.tk-add:hover { background: #15803d; }
.tk-btn.tk-today { background: #2563eb; color: #fff; border-color: #2563eb; }
.tk-btn.tk-today:hover { background: #1d4ed8; }

/* Aylık Takvim Grid */
.tk-cal { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #f3f4f6; }
.tk-gunlar { display: grid; grid-template-columns: repeat(7, 1fr); background: #f8fafc; border-bottom: 1px solid #e5e7eb; }
.tk-gun-h { padding: 10px; text-align: center; font-size: 12px; font-weight: 700; color: #64748b; }
.tk-grid { display: grid; grid-template-columns: repeat(7, 1fr); }

.tk-cell {
  min-height: 90px; padding: 6px; border-right: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6;
  cursor: pointer; transition: background .15s; position: relative;
}
.tk-cell:hover { background: #f0f7ff; }
.tk-cell:nth-child(7n) { border-right: none; }
.tk-cell.tk-bos { background: #fafafa; cursor: default; }
.tk-cell.tk-bugun { background: #eff6ff; }
.tk-cell.tk-bugun .tk-gun-no { background: #2563eb; color: #fff; }
.tk-cell.tk-haftasonu { background: #fefce8; }

.tk-gun-no {
  font-size: 13px; font-weight: 700; color: #374151;
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; margin-bottom: 4px;
}

.tk-randevu-dot {
  font-size: 10px; color: #fff; padding: 1px 6px; border-radius: 4px;
  margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 3px;
}
.tk-r-saat { font-weight: 700; font-size: 9px; }
.tk-r-baslik { font-size: 10px; }
.tk-daha { font-size: 10px; color: #6b7280; font-weight: 600; text-align: center; }

.tk-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; justify-content: center; }
.tk-leg-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #6b7280; }
.tk-leg-dot { width: 10px; height: 10px; border-radius: 50%; }

/* Liste görünüm */
.tk-liste { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #f3f4f6; }
.tk-tarih-baslik {
  padding: 10px 18px; font-size: 13px; font-weight: 700; color: #374151;
  background: #f8fafc; border-bottom: 1px solid #e5e7eb;
}
.tk-tarih-baslik.tk-bugun-baslik { background: #eff6ff; color: #2563eb; }
.tk-tarih-baslik.tk-gecmis { color: #9ca3af; }

.tk-liste-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0; border-bottom: 1px solid #f3f4f6;
}
.tk-liste-item:last-child { border-bottom: none; }
.tk-liste-item.tk-tamamlandi { opacity: 0.5; }
.tk-liste-item.tk-tamamlandi .tk-l-baslik { text-decoration: line-through; }
.tk-liste-item.tk-gecmis-item { background: #fef2f2; }

.tk-l-sol { display: flex; align-items: center; gap: 12px; padding: 12px 18px; flex: 1; min-width: 0; }
.tk-l-saat { font-size: 14px; font-weight: 700; color: #1e3a5f; min-width: 50px; }
.tk-l-icerik { flex: 1; min-width: 0; }
.tk-l-baslik { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.tk-l-proje { font-size: 11px; color: #6b7280; margin-top: 2px; }
.tk-l-katilimci { font-size: 11px; color: #6b7280; }
.tk-l-not { font-size: 11px; color: #9ca3af; font-style: italic; margin-top: 2px; }
.tk-l-sag { display: flex; gap: 4px; padding: 12px; flex-shrink: 0; }

.tk-btn-sm {
  width: 32px; height: 32px; border: none; background: none; cursor: pointer;
  font-size: 16px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
.tk-btn-sm:hover { background: #f3f4f6; }
.tk-bos-msg { padding: 40px; text-align: center; font-size: 14px; color: #9ca3af; }

/* Modal */
.tk-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5); z-index: 10000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.tk-modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.tk-modal-head {
  padding: 18px 22px; font-size: 18px; font-weight: 700; color: #1e3a5f;
  border-bottom: 1px solid #f3f4f6; display: flex; justify-content: space-between; align-items: center;
}
.tk-modal-x { cursor: pointer; font-size: 20px; color: #9ca3af; padding: 4px; }
.tk-modal-x:hover { color: #dc2626; }
.tk-modal-body { padding: 18px 22px; }
.tk-modal-body label { display: block; font-size: 12px; font-weight: 600; color: #374151; margin-bottom: 4px; margin-top: 12px; }
.tk-modal-body label:first-child { margin-top: 0; }
.tk-modal-body input, .tk-modal-body select, .tk-modal-body textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 14px; box-sizing: border-box; font-family: inherit;
}
.tk-modal-body input:focus, .tk-modal-body select:focus, .tk-modal-body textarea:focus {
  outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.tk-modal-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.tk-modal-foot {
  padding: 14px 22px; border-top: 1px solid #f3f4f6;
  display: flex; justify-content: flex-end; gap: 8px;
}
.tk-btn-save { padding: 10px 20px; background: #16a34a; color: #fff; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 14px; }
.tk-btn-save:hover { background: #15803d; }
.tk-btn-cancel { padding: 10px 20px; background: #f3f4f6; color: #374151; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px; }
.tk-btn-del { padding: 10px 20px; background: #fef2f2; color: #dc2626; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 14px; margin-right: auto; }
.tk-btn-del:hover { background: #fee2e2; }

/* ═══ RAPORLAMA ═══ */
.rp-wrap { padding: 24px; max-width: 1200px; margin: 0 auto; }
.rp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.rp-header h2 { font-size: 22px; font-weight: 800; color: #1e3a5f; margin: 0; }
.rp-actions { display: flex; gap: 6px; }

.rp-bar-section { background: #fff; border-radius: 14px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #f3f4f6; }
.rp-bar-label { font-size: 14px; font-weight: 700; color: #374151; margin-bottom: 8px; }
.rp-bar { height: 12px; background: #e5e7eb; border-radius: 6px; overflow: hidden; }
.rp-bar-fill { height: 100%; border-radius: 6px; transition: width .5s ease; }
.rp-bar-sub { font-size: 12px; color: #6b7280; margin-top: 6px; text-align: right; }

.rp-table-wrap { background: #fff; border-radius: 14px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #f3f4f6; }
.rp-table-wrap h3 { font-size: 16px; font-weight: 700; color: #1e3a5f; margin: 0 0 12px; }
.rp-table { width: 100%; border-collapse: collapse; }
.rp-table th { text-align: left; padding: 8px 12px; font-size: 12px; font-weight: 700; color: #64748b; border-bottom: 2px solid #e5e7eb; background: #f8fafc; }
.rp-table td { padding: 10px 12px; font-size: 13px; border-bottom: 1px solid #f3f4f6; }
.rp-table tr:hover { background: #f0f7ff; }
.rp-num { text-align: right; font-variant-numeric: tabular-nums; }

.rp-section { background: #fff; border-radius: 14px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #f3f4f6; }
.rp-section h3 { font-size: 16px; font-weight: 700; color: #1e3a5f; margin: 0 0 16px; }

.rp-hbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rp-hbar-label { font-size: 13px; font-weight: 500; color: #374151; min-width: 140px; }
.rp-hbar-label span { color: #9ca3af; font-weight: 400; }
.rp-hbar-track { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.rp-hbar-fill { height: 100%; border-radius: 4px; transition: width .4s; }
.rp-hbar-pct { font-size: 12px; font-weight: 700; color: #64748b; min-width: 36px; text-align: right; }

/* ═══ AYARLAR ═══ */
.ay-card {
  background: #fff; border-radius: 14px; padding: 24px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid #f3f4f6;
}
.ay-card h3 { font-size: 16px; font-weight: 700; color: #1e3a5f; margin: 0 0 16px; }
.ay-row { margin-bottom: 14px; }
.ay-row label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 4px; }
.ay-input {
  width: 100%; max-width: 400px; padding: 10px 14px; border: 1px solid #d1d5db;
  border-radius: 8px; font-size: 14px; box-sizing: border-box;
}
.ay-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.ay-input:disabled { background: #f9fafb; color: #6b7280; }
.ay-toggle-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #f3f4f6;
}
.ay-toggle-row label { font-size: 14px; font-weight: 500; color: #374151; margin: 0; }
.ay-toggle-row input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; }
.ay-info { font-size: 13px; color: #6b7280; padding: 6px 0; }
.ay-info b { color: #1e3a5f; }
.ay-actions { display: flex; gap: 8px; margin-top: 16px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .tk-wrap, .rp-wrap { padding: 12px; }
  .tk-header { flex-direction: column; align-items: stretch; }
  .tk-nav { justify-content: center; }
  .tk-actions { justify-content: center; flex-wrap: wrap; }
  .tk-ay { font-size: 18px; min-width: 150px; }
  .tk-cell { min-height: 60px; padding: 4px; }
  .tk-gun-no { font-size: 11px; width: 22px; height: 22px; }
  .tk-randevu-dot { font-size: 8px; padding: 1px 3px; }
  .tk-r-saat { display: none; }
  .tk-modal-row { grid-template-columns: 1fr; }
  .rp-hbar-label { min-width: 100px; font-size: 12px; }
  .rp-table th, .rp-table td { padding: 6px 8px; font-size: 11px; }
}
@media (max-width: 480px) {
  .tk-cell { min-height: 44px; }
  .tk-randevu-dot { display: none; }
  .tk-cell.tk-bugun .tk-randevu-dot:first-child { display: flex; }
  .tk-daha { font-size: 8px; }
}
