/* =====================================================
   KAF Mentörlük Sistemi - Ana Stil Dosyası
   ===================================================== */

:root {
  --primary: #5c4ee8;
  --primary-light: #ede9fb;
  --primary-dark: #3d30c4;
  --accent: #7c6ff0;
  --danger: #e84e4e;
  --danger-light: #fdeaea;
  --success: #27ae60;
  --success-light: #e8f8f0;
  --warning: #f39c12;
  --warning-light: #fef9ec;
  --bg: #f2f3f7;
  --surface: #ffffff;
  --surface2: #f8f8fc;
  --border: #e4e4ef;
  --text-primary: #1a1a2e;
  --text-secondary: #6b6b8a;
  --text-muted: #a0a0b8;
  --shadow-sm: 0 1px 4px rgba(92,78,232,0.07);
  --shadow-md: 0 4px 16px rgba(92,78,232,0.10);
  --shadow-lg: 0 8px 32px rgba(92,78,232,0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --nav-h: 64px;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Yardımcı ── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =====================================================
   GİRİŞ SAYFASI
   ===================================================== */
#page-login {
  min-height: 100vh;
  display: flex;
}

.login-panel-left {
  flex: 0 0 42%;
  background: linear-gradient(145deg, #5c4ee8 0%, #9b8ff4 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: #fff;
  gap: 2rem;
}

.login-logo-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.login-logo-wrap .brand-icon {
  width: 56px; height: 56px;
  fill: #fff;
}

.login-logo-wrap span {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.login-panel-left h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

.login-panel-left p {
  font-size: 1rem;
  opacity: .85;
  text-align: center;
  max-width: 320px;
}

.login-panel-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: #fff;
  gap: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.login-card h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.login-tab-bar {
  display: flex;
  border-bottom: 2px solid var(--border);
  gap: 1.5rem;
}

.login-tab {
  padding: .5rem 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}

.login-tab.active {
  color: var(--primary);
  border-color: var(--primary);
}

.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-secondary); }

.form-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(92,78,232,.12);
}

.form-input::placeholder { color: var(--text-muted); }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text-secondary);
}

.checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.checkbox-row a { color: var(--primary); text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.4rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background .18s, transform .1s, box-shadow .18s, color .18s;
  outline: none;
  text-decoration: none;
}

.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(92,78,232,.3);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-danger {
  background: var(--danger-light);
  color: var(--danger);
  border: 1.5px dashed var(--danger);
}
.btn-danger:hover { background: #fbd5d5; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--bg); }

.btn-sm { padding: .45rem 1rem; font-size: .83rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-icon { padding: .5rem; border-radius: 50%; }

/* =====================================================
   NAVBAR
   ===================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  margin-right: 1rem;
}

.nav-logo .brand-icon { width: 36px; height: 36px; fill: var(--primary); }
.nav-logo .brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .04em;
}

.nav-links {
  display: flex;
  gap: .5rem;
  list-style: none;
  flex: 1;
}

.nav-links a {
  padding: .45rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .18s, background .18s;
}

.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active { color: var(--primary); font-weight: 700; background: var(--primary-light); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: .65rem;
  cursor: pointer;
  position: relative;
  padding: .4rem .75rem;
  border-radius: var(--radius-md);
  transition: background .18s;
}

.nav-user:hover { background: var(--bg); }

.nav-user-name {
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-primary);
}

.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: .9rem;
  border: 2px solid var(--primary-light);
  overflow: hidden;
}

.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 200;
}

.dropdown-menu.open { display: flex; }

.dropdown-item {
  padding: .7rem 1.1rem;
  font-size: .9rem;
  color: var(--text-primary);
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--font);
  font-weight: 500;
  transition: background .15s, color .15s;
  text-decoration: none;
  display: block;
}

.dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: var(--danger-light); }

/* =====================================================
   ANA LAYOUT
   ===================================================== */
.app-body {
  margin-top: var(--nav-h);
  padding: 2rem;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.page-section { display: none; }
.page-section.active { display: block; }

/* =====================================================
   KART
   ===================================================== */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

/* =====================================================
   DASHBOARD (GÖREV LİSTESİ)
   ===================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.filter-card { position: sticky; top: calc(var(--nav-h) + 1.5rem); }

.filter-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}

.radio-list { display: flex; flex-direction: column; gap: .1rem; }

.radio-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s;
}

.radio-item:hover { background: var(--bg); }
.radio-item.selected { background: var(--primary-light); }

.radio-circle {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .2s;
}

.radio-item.selected .radio-circle {
  border-color: var(--primary);
  background: var(--primary);
}

.radio-item.selected .radio-circle::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
}

.radio-label { font-size: .9rem; color: var(--text-primary); }

.task-feed { display: flex; flex-direction: column; gap: 1.5rem; }

.task-day-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.task-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s;
  cursor: pointer;
}

.task-item:hover { box-shadow: var(--shadow-md); }

.task-item-left { display: flex; flex-direction: column; gap: .25rem; flex: 1; }

.task-item-title { font-size: .95rem; font-weight: 600; color: var(--text-primary); }

.task-item-sub {
  font-size: .82rem;
  color: var(--text-secondary);
}

.task-item-sub .tag-link {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

.task-item-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
  color: var(--text-muted);
}

.empty-state svg { opacity: .35; }
.empty-state p { font-size: .95rem; }

/* =====================================================
   ÖĞRENCİLERİM
   ===================================================== */
.students-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.students-count {
  font-size: .9rem;
  color: var(--text-secondary);
  text-align: right;
  margin-bottom: .75rem;
}

.students-count span { font-weight: 700; color: var(--text-primary); }

.student-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: box-shadow .18s, border-color .18s;
  margin-bottom: .75rem;
  position: relative;
}

.student-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }

.student-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.student-avatar img { width: 100%; height: 100%; object-fit: cover; }

.student-info { flex: 1; min-width: 0; }

.student-name {
  font-size: .98rem;
  font-weight: 700;
  color: var(--text-primary);
}

.student-school {
  font-size: .8rem;
  color: var(--text-secondary);
  margin-top: .1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .18rem .55rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
}

.tag.gray { background: var(--bg); color: var(--text-secondary); }
.tag.green { background: var(--success-light); color: var(--success); }

.student-meta {
  font-size: .78rem;
  color: var(--primary);
  margin-top: .3rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.student-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: auto;
}

.search-input-wrap {
  position: relative;
  margin-bottom: .75rem;
}

.search-input-wrap svg {
  position: absolute;
  left: .8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input-wrap .form-input { padding-left: 2.4rem; }

.collapse-group { border-top: 1px solid var(--border); }

.collapse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 0;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-primary);
  border: none;
  background: none;
  width: 100%;
  font-family: var(--font);
}

.collapse-header svg {
  transition: transform .2s;
  color: var(--text-muted);
}

.collapse-header.open svg { transform: rotate(180deg); }

.collapse-body { padding-bottom: .5rem; }

.collapse-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem .25rem;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background .15s;
}

.collapse-option:hover { background: var(--bg); }
.collapse-option input[type="checkbox"] { accent-color: var(--primary); }

/* =====================================================
   HAFTALIK TAKVİM
   ===================================================== */
.calendar-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.week-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.week-display {
  padding: .5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--surface);
  min-width: 160px;
  text-align: center;
}

.week-cols {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .75rem;
  min-width: 0;
}

.week-col {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 1rem .75rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.week-col.today {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.week-col-header { text-align: center; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }

.week-day-name {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.week-day-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  margin: .4rem auto 0;
  color: var(--text-primary);
}

.week-col.today .week-day-num {
  background: var(--primary);
  color: #fff;
}

.week-event-item {
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  padding: .45rem .6rem;
  font-size: .78rem;
  color: var(--text-primary);
}

.week-event-item strong { color: var(--primary); display: block; font-weight: 700; }
.week-event-item span { color: var(--text-secondary); }

.week-event-item.status-done {
  background: var(--success-light);
}
.week-event-item.status-done strong { color: var(--success); }

.week-event-item.status-pending {
  background: var(--warning-light);
}
.week-event-item.status-pending strong { color: var(--warning); }

.week-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0;
  gap: .5rem;
  flex: 1;
}
.week-empty svg { opacity: .25; }
.week-empty span { font-size: .75rem; color: var(--text-muted); text-align: center; }

/* =====================================================
   ÖĞRENCİ PROFİL MODAL
   ===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 1rem;
  backdrop-filter: blur(2px);
}

.modal-overlay.hidden { display: none !important; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none;
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--danger-light); color: var(--danger); }

.modal-body {
  overflow-y: auto;
  flex: 1;
  padding: 1.5rem;
}

.student-modal-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.modal-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.6rem;
  overflow: hidden;
}

.modal-avatar img { width: 100%; height: 100%; object-fit: cover; }

.modal-student-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-student-school {
  font-size: .85rem;
  color: var(--text-secondary);
}

.modal-student-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .25rem;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.action-btn {
  padding: .85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color .18s, background .18s, color .18s;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

.action-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.action-btn.done {
  border-color: var(--success);
  background: var(--success-light);
  color: var(--success);
}

/* =====================================================
   ÖĞRENCİ DETAY SAYFASI (TABLOLAR / NOTLAR / TANIM FORMU)
   ===================================================== */
.detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.detail-back-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.detail-back-btn:hover { background: var(--primary-light); color: var(--primary); }

.detail-header-info { flex: 1; }

.detail-header-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-header-sub {
  font-size: .8rem;
  color: var(--text-secondary);
}

.detail-tab-bar {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
}

.detail-tab {
  padding: .65rem 1.2rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .18s, border-color .18s;
  font-family: var(--font);
}

.detail-tab.active { color: var(--primary); border-color: var(--primary); }

.detail-tab-content { display: none; padding-top: 1.5rem; }
.detail-tab-content.active { display: block; }

/* ─ TABLOLAR (haftalık program) ─ */
.schedule-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.schedule-week-cols {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .65rem;
}

.sched-col {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: .85rem .7rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  box-shadow: var(--shadow-sm);
}

.sched-col-head {
  text-align: center;
  padding-bottom: .6rem;
  margin-bottom: .2rem;
  border-bottom: 1.5px solid var(--border);
}

.sched-col-day {
  font-size: .75rem;
  font-weight: 800;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.sched-col-date {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-top: .15rem;
}

.sched-col.today { }
.sched-col.today .sched-col-head { }
.sched-col.today .sched-col-date { color: var(--text-primary); }

.sched-col-total {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  background: var(--primary-light);
  border-radius: 99px;
  padding: .22rem .6rem;
  margin: 0 auto;
  width: fit-content;
  letter-spacing: .01em;
}

.sched-add-btn {
  width: 100%;
  padding: .35rem;
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s;
}
.sched-add-btn:hover { background: var(--primary-light); }

.sched-clear-btn {
  width: 100%;
  padding: .3rem;
  border: 1.5px dashed var(--danger);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--danger);
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s;
}
.sched-clear-btn:hover { background: var(--danger-light); }

.task-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .55rem .65rem .55rem .7rem;
  position: relative;
  cursor: default;
  transition: box-shadow .15s;
}
.task-card:hover { box-shadow: var(--shadow-sm); }

.task-card-title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Mentor tamamladı — açık yeşil arka plan */
.task-card.completed {
  background: var(--success-light);
  border-color: #b7ead0;
}
.task-card.completed .task-card-title { color: var(--success); }

/* Öğrenci tamamen tamamladı — kart tamamen koyu yeşil (mentor completed'ı ezer) */
.task-card.student-done {
  background: var(--success) !important;
  border-color: #1e9450 !important;
  box-shadow: 0 2px 8px rgba(39,174,96,.25);
}
.task-card.student-done .task-card-title,
.task-card.student-done .task-card-sub,
.task-card.student-done .task-card-menu { color: #fff !important; }
.task-card.student-done .progress-badge.done {
  background: rgba(255,255,255,.25);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}

/* Öğrenci yarım tamamladı — kart tamamen turuncu */
.task-card.student-partial {
  background: var(--warning) !important;
  border-color: #c87f00 !important;
  box-shadow: 0 2px 8px rgba(243,156,18,.25);
}
.task-card.student-partial .task-card-title,
.task-card.student-partial .task-card-sub,
.task-card.student-partial .task-card-menu { color: #fff !important; }
.task-card.student-partial .progress-badge.partial {
  background: rgba(255,255,255,.25);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}

.task-card-sub {
  font-size: .7rem;
  color: var(--text-secondary);
  margin-top: .15rem;
}

.task-card-menu {
  position: absolute;
  top: .4rem; right: .4rem;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .85rem;
  transition: background .15s;
}
.task-card-menu:hover { background: var(--bg); color: var(--text-primary); }

.task-card-actions {
  position: absolute;
  top: 1.8rem; right: .4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 50;
  display: none;
  flex-direction: column;
  min-width: 130px;
  overflow: hidden;
}

.task-card-actions.open { display: flex; }

.task-card-action-item {
  padding: .5rem .85rem;
  font-size: .8rem;
  color: var(--text-primary);
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--font);
  transition: background .12s;
}
.task-card-action-item:hover { background: var(--bg); }
.task-card-action-item.danger { color: var(--danger); }
.task-card-action-item.danger:hover { background: var(--danger-light); }

/* ─ NOTLAR ─ */
.notes-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.note-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  position: relative;
}

.note-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .5rem;
}

.note-date {
  font-size: .75rem;
  color: var(--text-muted);
}

.note-text {
  font-size: .9rem;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
}

.note-delete {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .8rem;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.note-delete:hover { background: var(--danger-light); color: var(--danger); }

.notes-empty {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ─ TANIM FORMU ─ */
.meet-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.meet-form .full { grid-column: 1 / -1; }

.form-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: .35rem;
}

.form-select {
  width: 100%;
  padding: .72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--surface);
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b8a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.2rem;
}
.form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(92,78,232,.12); }

.form-textarea {
  width: 100%;
  padding: .72rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--surface);
  outline: none;
  resize: vertical;
  min-height: 90px;
  transition: border-color .2s;
}
.form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(92,78,232,.12); }

.meet-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
  margin-top: .5rem;
}

.meet-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.meet-info-item { display: flex; flex-direction: column; gap: .2rem; }

.meet-info-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.meet-info-value {
  font-size: .9rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* =====================================================
   GÖREV EKLEME MODAL
   ===================================================== */
.task-modal {
  max-width: 480px;
}

.task-form { display: flex; flex-direction: column; gap: 1rem; }

/* =====================================================
   ÖĞRENCİ EKLE MODAL
   ===================================================== */
.add-student-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* =====================================================
   PROFİL SAYFASI
   ===================================================== */
.profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
}

.profile-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 2rem 1.5rem;
}

.profile-avatar-lg {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 2rem;
  border: 3px solid var(--primary-light);
  overflow: hidden;
  position: relative;
}

.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

.profile-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.profile-sub {
  font-size: .85rem;
  color: var(--text-secondary);
  text-align: center;
}

.profile-meta-list {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.profile-meta-row {
  display: flex;
  gap: .5rem;
  font-size: .83rem;
}

.profile-meta-key { color: var(--text-muted); width: 80px; flex-shrink: 0; }
.profile-meta-val { color: var(--text-primary); font-weight: 500; }

.profile-settings { display: flex; flex-direction: column; gap: 1.5rem; }

.settings-section-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .75rem;
}

/* =====================================================
   TOAST BİLDİRİMLERİ
   ===================================================== */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  pointer-events: none;
}

.toast {
  background: var(--text-primary);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: toast-in .3s ease;
  pointer-events: auto;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* ── Hamburger butonu (varsayılan gizli) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background .15s;
  margin-left: auto;
}
.nav-hamburger:hover { background: var(--bg); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 99px;
  transition: transform .25s, opacity .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobil açılır menü */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 99;
  flex-direction: column;
  padding: .75rem 1rem 1rem;
  gap: .25rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a,
.nav-mobile-menu button {
  display: block;
  width: 100%;
  padding: .75rem 1rem;
  text-align: left;
  border: none;
  background: none;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.nav-mobile-menu a:hover,
.nav-mobile-menu button:hover { background: var(--primary-light); color: var(--primary); }
.nav-mobile-menu a.active { background: var(--primary-light); color: var(--primary); }
.nav-mobile-menu .nav-mobile-divider {
  height: 1px;
  background: var(--border);
  margin: .4rem 0;
}
.nav-mobile-menu .nav-mobile-danger { color: var(--danger); }
.nav-mobile-menu .nav-mobile-danger:hover { background: var(--danger-light); color: var(--danger); }

/* ── 1100px — Geniş tablet ── */
@media (max-width: 1100px) {
  .app-body { padding: 1.5rem; }
  .schedule-week-cols { grid-template-columns: repeat(4, 1fr); }
  .week-cols { grid-template-columns: repeat(4, 1fr); }
  .dashboard-grid { grid-template-columns: 260px 1fr; }
  .students-grid  { grid-template-columns: 240px 1fr; }
  .profile-grid   { grid-template-columns: 240px 1fr; }
}

/* ── 860px — Tablet ── */
@media (max-width: 860px) {
  .dashboard-grid,
  .students-grid,
  .profile-grid { grid-template-columns: 1fr; }

  .filter-card { position: static; }

  .schedule-week-cols { grid-template-columns: repeat(3, 1fr); }
  .week-cols { grid-template-columns: repeat(3, 1fr); }

  .meet-form { grid-template-columns: 1fr; }
  .meet-info-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .meeting-schedule-grid { grid-template-columns: 1fr; }

  /* Detail header tab bar — tablet'te scroll */
  .detail-header {
    flex-wrap: wrap;
    gap: .75rem;
  }
  .detail-header > div[style] {
    margin-left: 0 !important;
    width: 100%;
  }
  .detail-tab-bar {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .detail-tab-bar::-webkit-scrollbar { display: none; }
}

/* ── 600px — Mobil ── */
@media (max-width: 600px) {
  .app-body { padding: .75rem; }

  /* Navbar: linkleri gizle, hamburger göster */
  #navbar { padding: 0 1rem; gap: .75rem; }
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }

  /* Giriş sayfası */
  .login-panel-left { display: none; }
  .login-panel-right { padding: 2rem 1.25rem; }
  .login-card h1 { font-size: 1.35rem; }

  /* Haftalık grid */
  .schedule-week-cols { grid-template-columns: repeat(2, 1fr); }
  .week-cols { grid-template-columns: repeat(2, 1fr); }

  /* Modal tam ekran */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    max-width: 100% !important;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 92vh;
  }

  /* Action grid tek kolon */
  .action-grid { grid-template-columns: 1fr; }

  /* Öğrenci kartı */
  .student-card { padding: .85rem 1rem; }

  /* Detail header */
  .detail-header {
    flex-wrap: wrap;
    padding: .75rem 1rem;
    gap: .6rem;
  }
  .detail-header-name { font-size: .95rem; }
  .detail-header > div[style] {
    margin-left: 0 !important;
    width: 100%;
  }
  .detail-tab { padding: .55rem .85rem; font-size: .83rem; }

  /* Profil */
  .profile-card-left { padding: 1.5rem 1rem; }
  .profile-avatar-lg { width: 80px; height: 80px; font-size: 1.6rem; }

  /* Takvim toolbar */
  .calendar-toolbar { flex-wrap: wrap; gap: .6rem; }
  .schedule-toolbar { flex-wrap: wrap; gap: .6rem; }
  .week-display { min-width: 120px; font-size: .82rem; }

  /* Toast */
  #toast-container { left: 1rem; right: 1rem; bottom: 1rem; }
  .toast { max-width: 100%; }

  /* Form row tek kolon (modal formları) */
  .form-row { grid-template-columns: 1fr; }
  .meeting-schedule-grid { grid-template-columns: 1fr; }

  /* Coach task */
  .coach-task-right { flex-wrap: wrap; gap: .4rem; }

  /* Haftalık kolon dar ekranda font küçült */
  .sched-col-date { font-size: 1.2rem; }
  .task-card-title { font-size: .75rem; }
}

/* ── 400px — Küçük mobil ── */
@media (max-width: 400px) {
  .schedule-week-cols { grid-template-columns: 1fr; }
  .week-cols { grid-template-columns: 1fr; }

  .app-body { padding: .5rem; }
  .card { padding: 1rem; }

  .week-display { min-width: 100px; font-size: .78rem; }
  .sched-col-date { font-size: 1rem; }
}

/* =====================================================
   KOÇUN GÖREV LİSTESİ (Dashboard)
   ===================================================== */

.today-label {
  color: var(--primary);
  font-weight: 800;
}

.coach-task-item {
  flex-direction: column;
  align-items: stretch;
  gap: .6rem;
  padding: 1rem 1.25rem;
  cursor: default;
}

.coach-task-item.task-done {
  opacity: .7;
  background: var(--surface2);
}

.coach-task-item.task-done .task-item-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.coach-task-type-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .22rem .7rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  width: fit-content;
}

.coach-task-item .task-item-left {
  flex-direction: row;
  align-items: baseline;
  gap: .4rem;
}

.coach-task-item .task-item-title {
  font-size: .95rem;
  line-height: 1.5;
}

.coach-task-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .1rem;
}

.coach-task-time {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg);
  padding: .2rem .6rem;
  border-radius: 99px;
}

.coach-task-actions {
  display: flex;
  gap: .4rem;
}

.coach-done-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .18s;
}

.coach-done-btn:hover {
  border-color: var(--success);
  color: var(--success);
  background: var(--success-light);
}

.coach-done-btn.done {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.coach-del-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .18s;
}

.coach-del-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-light);
}

/* =====================================================
   HAFTALIK TAKVİM — Görüşme Kartları
   ===================================================== */

.cal-meeting-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .55rem .65rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  transition: box-shadow .15s;
}

.cal-meeting-item:hover { box-shadow: var(--shadow-sm); }

.cal-meeting-item.cal-done {
  opacity: .65;
  background: var(--surface2);
}

.cal-meeting-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 700;
  padding: .18rem .55rem;
  border-radius: 99px;
  width: fit-content;
}

.cal-meeting-student {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: color .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-meeting-student:hover { color: var(--primary); }

.cal-meeting-item.cal-done .cal-meeting-student {
  text-decoration: line-through;
  color: var(--text-muted);
}

.cal-meeting-time {
  font-size: .75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.cal-meeting-done-tag {
  font-size: .7rem;
  color: var(--success);
  font-weight: 700;
}

/* =====================================================
   ÖĞRENCİ EKLE MODAL — Görüşme Takvimi Kutusu
   ===================================================== */

.meeting-schedule-box {
  background: var(--primary-light);
  border: 1.5px solid #d4ccf8;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: .5rem;
}

.meeting-schedule-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .85rem;
}

.meeting-schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1rem;
}

.meeting-audio-info {
  grid-column: 1 / -1;
}

.meeting-audio-badge {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid #b7ead0;
  border-radius: var(--radius-sm);
  padding: .55rem .85rem;
  font-size: .85rem;
  font-weight: 600;
}

/* =====================================================
   TABLOLAR — Sürükle & Kopyala (Drag & Drop)
   ===================================================== */

/* Kartın sol kenarındaki tutaç */
.task-card-drag-handle {
  position: absolute;
  top: 50%;
  left: -18px;
  transform: translateY(-50%);
  width: 16px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0;
  cursor: grab;
  transition: opacity .15s;
  border-radius: 4px;
}

.task-card:hover .task-card-drag-handle {
  opacity: 1;
}

.task-card-drag-handle:active { cursor: grabbing; }

/* Sürüklenen kart */
.task-card.dragging {
  opacity: .45;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg) scale(1.02);
  border: 1.5px dashed var(--primary);
  cursor: grabbing;
}

/* Drop hedefi olan kolon */
.sched-col.drag-over {
  background: var(--primary-light);
  border: 2px dashed var(--primary);
  box-shadow: 0 0 0 3px rgba(92,78,232,.12);
}

.sched-col.drag-over .task-empty-drop {
  color: var(--primary);
  opacity: .8;
}

/* Görev listesi sarmalayıcısı */
.task-list-wrap {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}

/* Kolonlarda overflow görünür olsun (tutaç için) — tarayıcı varsayılanı */

/* =====================================================
   TABLOLAR — Görüntülü Görüşme Günü / Bugün
   video-day ve today için ekstra görsel yok, tüm kolonlar aynı
   ===================================================== */
.video-day-dot { display: none; }

/* =====================================================
   ÖĞRENCİ KARTI — Kayıt Süresi Rozeti
   ===================================================== */

.student-meta-row {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .35rem;
  flex-wrap: wrap;
}

.enroll-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #d4ccf8;
}

.enroll-badge svg {
  flex-shrink: 0;
  opacity: .8;
}

/* =====================================================
   PROFİL — Admin: Mentor Listesi
   ===================================================== */
.admin-mentor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.admin-mentor-info {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.admin-mentor-info strong {
  font-size: .9rem;
  color: var(--text-primary);
}

.admin-mentor-info span {
  font-size: .78rem;
  color: var(--text-secondary);
}

/* =====================================================
   GÖREV KARTI — Öğrenci İlerleme Rozeti
   ===================================================== */

.task-progress-wrap {
  margin-top: .3rem;
  min-height: 0;
}

.progress-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .15rem .55rem;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 700;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-badge.done {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid #b7ead0;
}

.progress-badge.partial {
  background: var(--warning-light);
  color: #b07d00;
  border: 1px solid #f5d76e;
}

/* ── Öğrencinin kendi eklediği görevler — mentor ekranı ── */
.task-card.student-added {
  border-left: 3px solid var(--primary);
}

.student-added-badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .68rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 99px;
  padding: .1rem .5rem;
  margin-top: .2rem;
}

/* ── Mentor Günlük Sıralama Kartı ── */
.mlb-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .25rem;
}
.mlb-title {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .92rem;
  font-weight: 800;
  color: var(--primary);
}
.mlb-date {
  font-size: .75rem;
  color: var(--text-muted);
}
.mlb-loading {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.25rem .5rem;
  color: var(--text-muted);
  font-size: .83rem;
}
.mlb-list {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.mlb-row {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .5rem .25rem;
  border-radius: var(--radius-sm);
  transition: background .12s;
}
.mlb-row:hover { background: var(--bg); }
.mlb-row.mlb-ghost { background: #fdf6ff; }

.mlb-rank {
  font-size: .82rem;
  font-weight: 800;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.mlb-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 800;
  flex-shrink: 0;
}
.mlb-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: .35rem;
  flex-wrap: wrap;
}
.mlb-name {
  font-size: .84rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mlb-real-name {
  font-size: .72rem;
  color: var(--text-muted);
  font-style: italic;
  white-space: nowrap;
}
.mlb-bar-wrap {
  width: 70px;
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  flex-shrink: 0;
}
.mlb-bar {
  height: 100%;
  border-radius: 99px;
  background: var(--primary);
  transition: width .4s ease;
}
.mlb-bar.ghost { background: #9b59b6; }
.mlb-hours {
  font-size: .8rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  min-width: 42px;
  text-align: right;
}
.mlb-footer {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: .75rem;
  padding-top: .6rem;
  border-top: 1px solid var(--border);
}
