:root {
  --sidebar-bg: #0f1c3f;
  --sidebar-bg-2: #142451;
  --sidebar-active: #2f5bff;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  font-family: var(--font);
}

html, body {
  height: 100%;
  margin: 0;
}

/* ============ SIDEBAR ============ */
.sidebar {
  width: 264px;
  min-width: 264px;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
  color: #cbd5f5;
  display: flex;
  flex-direction: column;
  transition: width 0.25s ease, min-width 0.25s ease;
}
.sidebar.collapsed {
  width: 76px;
  min-width: 76px;
}
.sidebar.collapsed .logo-title,
.sidebar.collapsed .logo-subtitle,
.sidebar.collapsed .menu-item span,
.sidebar.collapsed .menu-chevron,
.sidebar.collapsed .sidebar-exam-box {
  display: none;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  background: #2f5bff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}
.logo-title {
  font-weight: 800;
  font-size: 14px;
  color: white;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.logo-subtitle {
  font-size: 10px;
  color: #8fa3d6;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.sidebar-menu {
  padding: 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #a9b8dd;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.menu-item:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}
.menu-item-active {
  background: var(--sidebar-active);
  color: white;
  box-shadow: 0 4px 12px rgba(47, 91, 255, 0.4);
}
.menu-icon {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}
.menu-chevron {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.5;
}

.sidebar-exam-box {
  margin: 12px 16px 20px;
  padding: 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}
.exam-box-label {
  font-size: 11px;
  color: #8fa3d6;
  font-weight: 600;
  margin-bottom: 4px;
}
.exam-box-date {
  font-size: 16px;
  font-weight: 700;
  color: white;
}
.exam-box-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 12px 0;
}
.exam-box-sub {
  font-size: 11px;
  color: #8fa3d6;
}
.exam-box-count {
  font-size: 26px;
  font-weight: 800;
  color: white;
  margin: 2px 0 12px;
}
.exam-box-link {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #6fa8ff;
  font-weight: 600;
  text-decoration: none;
}
.exam-box-link:hover { text-decoration: underline; }

/* ============ TOPBAR ============ */
.topbar {
  height: 68px;
  background: white;
  border-bottom: 1px solid #e6e9f2;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
}
.topbar-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #e6e9f2;
  background: #f8fafc;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.topbar-icon-btn:hover { background: #eef2ff; }
.notif-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #ef4444;
  color: white;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid #e6e9f2;
  cursor: pointer;
}
.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f5bff, #6366f1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.topbar-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}
.topbar-user-role {
  font-size: 11px;
  color: #94a3b8;
}

/* ============ TOPBAR DROPDOWNS (Bildirim / Kullanıcı) ============ */
.topbar-dropdown-wrap { position: relative; }
.topbar-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: white;
  border: 1px solid #e6e9f2;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15,23,42,0.14);
  z-index: 50;
  overflow: hidden;
}
.topbar-dropdown.hidden { display: none; }
.topbar-dropdown-header {
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 1px solid #eef1f6;
  display: flex;
  align-items: center;
  gap: 8px;
}
.notif-count-badge {
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #f4f6fa;
}
.notif-item:hover { background: #f8fafc; }
.notif-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
}
.notif-icon.danger { background: #ef4444; }
.notif-icon.warning { background: #f59e0b; }
.notif-icon.success { background: #22c55e; }
.notif-text { font-size: 12.5px; color: #334155; font-weight: 600; line-height: 1.4; }
.notif-time { font-size: 11px; color: #94a3b8; margin-top: 2px; }
.topbar-dropdown-footer {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #2f5bff;
  text-decoration: none;
  border-top: 1px solid #eef1f6;
}
.topbar-dropdown-footer:hover { background: #f8fafc; }

.user-dropdown { width: 240px; }
.user-dropdown-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-dropdown-divider { height: 1px; background: #eef1f6; }
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
}
.user-dropdown-item i { width: 16px; color: #94a3b8; }
.user-dropdown-item:hover { background: #f8fafc; }
.user-dropdown-item.logout-item { color: #ef4444; }
.user-dropdown-item.logout-item i { color: #ef4444; }

/* ============ TOPBAR ŞUBE SEÇİCİ ============ */
.topbar-sube-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #e6e9f2;
  background: #f8fafc;
  color: #1e293b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.topbar-sube-btn:hover { background: #eef2ff; }
.topbar-sube-btn i.fa-building { color: #2f5bff; }
.sube-dropdown { width: 300px; left: 0; right: auto; }
.sube-list { max-height: 320px; overflow-y: auto; padding: 6px; }
.sube-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.sube-item:hover { background: #f8fafc; }
.sube-item-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sube-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.sube-item-name { font-size: 13.5px; font-weight: 700; color: #1e293b; }
.sube-item-sub { font-size: 11.5px; color: #94a3b8; margin-top: 1px; }
.sube-item-check {
  color: #2f5bff;
  font-size: 13px;
  opacity: 0;
  flex-shrink: 0;
}
.sube-item.active { background: #eef2ff; }
.sube-item.active .sube-item-check { opacity: 1; }

.sube-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}
.sube-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sube-color, #94a3b8);
  flex-shrink: 0;
}

/* ============ GREETING ============ */
.greeting-title {
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
}
.greeting-sub {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
}
.date-picker-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

/* ============ STAT CARDS ============ */
.stat-card {
  border-radius: 16px;
  padding: 18px;
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-bottom: 10px;
}
.stat-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  opacity: 0.92;
}
.stat-card-value {
  font-size: 22px;
  font-weight: 800;
  margin-top: 2px;
  line-height: 1.2;
}
.stat-card-change {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.92;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}
.stat-blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-green  { background: linear-gradient(135deg, #22c55e, #16a34a); }
.stat-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.stat-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.stat-teal   { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.stat-red    { background: linear-gradient(135deg, #f87171, #dc2626); }

/* ============ PANELS ============ */
.panel {
  background: white;
  border-radius: 16px;
  border: 1px solid #eef1f6;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
}
/* Panels placed inside a CSS grid row should stretch to match the tallest
   sibling in that row (grid's default align-items:stretch already resizes
   the grid item itself; this just makes the panel fill that allotted box). */
.grid > .panel {
  height: 100%;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.panel-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}
.panel-select {
  font-size: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 5px 10px;
  color: #64748b;
  background: #f8fafc;
}
.panel-link {
  display: block;
  text-align: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 12.5px;
  font-weight: 600;
  color: #2f5bff;
  text-decoration: none;
}
.panel-link:hover { text-decoration: underline; }
.panel-footer-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 12.5px;
  color: #64748b;
}
.panel-footer-total strong {
  color: #1e293b;
  font-size: 14px;
}

/* ============ DONUT CHARTS ============ */
.donut-wrapper {
  position: relative;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.donut-wrapper.small { height: 160px; }
.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.donut-center-value {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
}
.donut-center-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}
.donut-center-value-sm {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
}
.donut-center-amount {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  margin-top: 2px;
}

.legend-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-top: 14px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
}
.legend-item .legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.legend-item .legend-pct {
  margin-left: auto;
  font-weight: 700;
  color: #1e293b;
}

.bar-legend {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 8px;
}
.legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}
.bar-wrapper {
  height: 190px;
}

/* ============ PATRON MODU PANEL ============ */
.patron-mode-panel {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 55%);
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.patron-mode-header {
  display: flex;
  align-items: center;
}
.patron-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #16a34a;
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 999px;
}
.patron-mode-quote {
  font-size: 16px;
  font-weight: 800;
  color: #14532d;
  margin-top: 10px;
}
.patron-mode-subtitle {
  font-size: 11.5px;
  color: #16a34a;
  font-weight: 600;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.patron-insights-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.patron-insight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: white;
  border: 1px solid #e5f5ea;
  border-radius: 10px;
  padding: 9px 12px;
}
.patron-insight-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}
.patron-insight-icon.green { background: #22c55e; }
.patron-insight-icon.orange { background: #f97316; }
.patron-insight-icon.red { background: #ef4444; }
.patron-insight-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
}
.patron-insight-text {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 1px;
  line-height: 1.35;
}
.patron-mode-btn {
  margin-top: 14px;
  width: 100%;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 11px 0;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease;
}
.patron-mode-btn:hover { background: #15803d; }

/* ============ SINAV DURUMU PANEL ============ */
.sinav-durumu-body {
  display: flex;
  align-items: center;
  gap: 16px;
}
.donut-wrapper.sinav-donut {
  height: 160px;
  width: 160px;
  flex-shrink: 0;
}
.sinav-legend-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sinav-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #475569;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.sinav-legend-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sinav-legend-row .legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sinav-legend-row .sinav-legend-count {
  margin-left: auto;
  font-weight: 700;
  color: #1e293b;
  min-width: 26px;
  text-align: right;
}
.sinav-legend-row .sinav-legend-pct {
  font-weight: 600;
  color: #94a3b8;
  min-width: 34px;
  text-align: right;
}

.basari-orani-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.basari-orani-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}
.basari-orani-value {
  font-size: 22px;
  font-weight: 800;
  color: #16a34a;
  margin-top: 2px;
}
.basari-orani-change {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  text-align: right;
}
.basari-orani-change i {
  color: #16a34a;
  margin: 0 2px;
}
.basari-orani-change.trend-down i {
  color: #ef4444;
}

/* ============ GELECEK TAHSİLATLAR ============ */
.future-payments-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.future-payment-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
}
.future-payment-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  flex-shrink: 0;
}
.future-payment-label {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}
.future-payment-amount {
  margin-left: auto;
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
}

/* ============ KAYNAKLARA GÖRE KAYITLAR ============ */
.sources-body {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.donut-wrapper.sources-donut {
  height: 160px;
  width: 160px;
  flex-shrink: 0;
}

/* ============ SRC KÂRLILIK TABLOSU ============ */
.table-wrapper {
  overflow-x: auto;
}
.profit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.profit-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
}
.profit-table thead th:not(:first-child),
.profit-table tbody td:not(:first-child),
.profit-table tfoot td:not(:first-child) {
  text-align: right;
}
.profit-table tbody td {
  padding: 10px 10px;
  border-bottom: 1px solid #f8fafc;
  color: #334155;
  font-weight: 600;
}
.profit-table tbody tr:hover { background: #f8fafc; }
.profit-src-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profit-src-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.profit-oran-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #16a34a;
}
.profit-table tfoot td {
  padding: 12px 10px 4px;
  font-weight: 800;
  color: #1e293b;
  border-top: 2px solid #f1f5f9;
}

.panel-select-link {
  font-size: 12px;
  font-weight: 600;
  color: #2f5bff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.panel-select-link:hover { text-decoration: underline; }

.quick-actions-grid-wide {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 640px) {
  .quick-actions-grid-wide { grid-template-columns: repeat(2, 1fr); }
}

/* ============ SIMPLE LISTS ============ */
.simple-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.simple-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 6px;
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
}
.simple-list li:hover { background: #f8fafc; }
.list-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.list-badge {
  margin-left: auto;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.list-chevron {
  color: #cbd5e1;
  font-size: 11px;
}
.avatar-mini {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.name-src-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  margin-left: 6px;
}
.list-sub {
  font-size: 11px;
  color: #94a3b8;
}
.list-main-col { display: flex; flex-direction: column; }
.list-name-row { display: flex; align-items: center; }
.list-right-col {
  margin-left: auto;
  text-align: right;
}
.list-amount { font-weight: 700; color: #1e293b; font-size: 13px; }
.list-date { font-size: 11px; color: #94a3b8; }
.days-left-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
}

/* ============ QUICK ACTIONS ============ */
.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: 12px;
  border: 1px solid #eef1f6;
  background: #f8fafc;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15,23,42,0.08);
}
.quick-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}
.quick-action-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
}
.qa-blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.qa-green  { background: linear-gradient(135deg, #22c55e, #16a34a); }
.qa-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.qa-orange { background: linear-gradient(135deg, #fb923c, #ea580c); }
.qa-teal   { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.qa-red    { background: linear-gradient(135deg, #f87171, #dc2626); }

/* ============ ALERTS ============ */
.alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}
.alert-danger { background: #fef2f2; color: #b91c1c; }
.alert-warning { background: #fffbeb; color: #b45309; }
.alert-success { background: #f0fdf4; color: #15803d; }
.alert-item i { margin-top: 2px; }

/* ============ SCROLLBAR ============ */
.sidebar-menu::-webkit-scrollbar,
#main-content::-webkit-scrollbar {
  width: 6px;
}
.sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}
#main-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .sidebar { position: fixed; z-index: 40; height: 100%; left: -264px; }
  .sidebar.mobile-open { left: 0; }
}

/* ============ ORTAK BUTONLAR ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-secondary:hover { background: #e2e8f0; }

/* ============ FİLTRE ÇUBUĞU ============ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.filter-search {
  position: relative;
  flex: 1 1 220px;
  min-width: 180px;
}
.filter-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
}
.filter-search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  color: #334155;
  outline: none;
}
.filter-search input:focus { border-color: #93c5fd; }
.filter-select {
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  color: #334155;
  background: white;
  outline: none;
  min-width: 150px;
}
.filter-select:focus { border-color: #93c5fd; }
.filter-clear-btn {
  display: inline-flex;
  align-items: center;
  background: #f8fafc;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}
.filter-clear-btn:hover { background: #f1f5f9; }

/* ============ ÖĞRENCİLER TABLOSU ============ */
.students-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.students-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
}
.students-table tbody td {
  padding: 10px;
  border-bottom: 1px solid #f8fafc;
  color: #334155;
  vertical-align: middle;
}
.students-table tbody tr:hover { background: #f8fafc; }
.student-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.student-name-info { display: flex; flex-direction: column; }
.student-name { font-weight: 700; color: #1e293b; font-size: 13px; }
.student-name-sub { font-size: 11px; color: #94a3b8; }
.student-tc { font-size: 11px; color: #94a3b8; }
.src-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  white-space: nowrap;
}
.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-block;
}
.status-aktif { background: #dcfce7; color: #16a34a; }
.status-sinavi-bekliyor { background: #fef9c3; color: #a16207; }
.status-mezun { background: #dbeafe; color: #1d4ed8; }
.status-pasif { background: #f1f5f9; color: #64748b; }
.odeme-tamamlandi { background: #dcfce7; color: #16a34a; }
.odeme-kismi-odeme { background: #ffedd5; color: #c2410c; }
.odeme-gecikmis { background: #fee2e2; color: #b91c1c; }
.status-dosya-yandi { background: #1e293b; color: #f87171; }
.kalan-borc-cell { font-weight: 700; color: #1e293b; }
.kalan-borc-zero { color: #94a3b8; font-weight: 500; }
.row-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
.row-action-btn:hover { background: #e2e8f0; }
.row-action-btn.delete-btn:hover { background: #fee2e2; color: #b91c1c; }
.row-action-btn.edit-btn:hover { background: #dbeafe; color: #1d4ed8; }
.empty-state {
  text-align: center;
  padding: 40px 10px;
  color: #94a3b8;
  font-size: 13px;
}

/* ============ SAYFALAMA ============ */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 12.5px;
  color: #64748b;
}
.pagination-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}
.page-btn {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.page-btn:hover { background: #f8fafc; }
.page-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #f1f5f9;
}
.modal-header h3 {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
}
.modal-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
}
.modal-close-btn:hover { background: #e2e8f0; }
.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}
.form-field input,
.form-field select {
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  font-size: 13px;
  color: #334155;
  outline: none;
}
.form-field input:focus,
.form-field select:focus { border-color: #93c5fd; }
.form-field select:disabled {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

/* ==========================================================
   Raporlar Sayfası - Sekmeler / Grafik yardımcı sınıfları
   ========================================================== */
.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 8px;
}
.report-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.report-tab:hover { background: #f1f5f9; color: #334155; }
.report-tab.active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
}
.report-tab.active:hover { color: #ffffff; }
.report-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.report-panel.hidden { display: none; }
.chart-line-wrapper {
  position: relative;
  height: 280px;
}
.crm-funnel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 0;
}
.crm-funnel-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.crm-funnel-label {
  width: 110px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  flex-shrink: 0;
}
.crm-funnel-bar-wrap {
  flex: 1;
  background: #f1f5f9;
  border-radius: 8px;
  height: 26px;
  overflow: hidden;
}
.crm-funnel-bar {
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  transition: width 0.4s ease;
}

/* ------------------------------------------------------------------ */
/* Ayarlar (Settings) Page                                            */
/* ------------------------------------------------------------------ */
.settings-sube-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4338ca;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.settings-sube-notice i {
  margin-top: 2px;
  flex-shrink: 0;
  color: #4f46e5;
}
.settings-sube-notice-warning {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
.settings-sube-notice-warning i {
  color: #ea580c;
}
.settings-sube-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #eef2ff;
  color: #4338ca;
  vertical-align: middle;
}
.form-grid.form-grid-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.form-hint {
  display: block;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.4;
}

/* ------------------------------------------------------------------ */
/* WhatsApp Bağlantı Ayarları - Durum Rozetleri                       */
/* ------------------------------------------------------------------ */
.wa-conn-banner.wa-conn-yok {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}
.wa-conn-banner.wa-conn-yok i { color: #94a3b8; }
.wa-conn-banner.wa-conn-aktif {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.wa-conn-banner.wa-conn-aktif i { color: #22c55e; }
.wa-conn-banner.wa-conn-hata {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.wa-conn-banner.wa-conn-hata i { color: #ef4444; }
.settings-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.settings-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-section-title i { color: #4f46e5; }
.settings-section-desc {
  font-size: 12.5px;
  color: #94a3b8;
  margin-bottom: 18px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-row-text { display: flex; flex-direction: column; gap: 2px; }
.toggle-row-title { font-size: 13.5px; font-weight: 600; color: #334155; }
.toggle-row-desc { font-size: 11.5px; color: #94a3b8; }
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: left 0.2s ease;
}
.toggle-switch.on { background: #4f46e5; }
.toggle-switch.on::after { left: 23px; }
.settings-table {
  width: 100%;
  border-collapse: collapse;
}
.settings-table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
}
.settings-table td {
  padding: 10px 10px;
  font-size: 13px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.settings-table input[type="number"],
.settings-table input[type="text"] {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
}
.role-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.role-card-title { font-size: 13.5px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.role-perm-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #4338ca;
  background: #eef2ff;
  padding: 3px 10px;
  border-radius: 999px;
  margin: 2px 4px 2px 0;
}
.save-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #16a34a;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 999;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
}
.save-toast.show { opacity: 1; transform: translateY(0); }

/* ============ WHATSAPP MERKEZİ ============ */
.wa-panel { padding: 0; overflow: hidden; }
.wa-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: 600px;
  min-height: 0;
}
.wa-contacts {
  border-right: 1px solid #eef1f6;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.wa-contacts-search {
  position: relative;
  padding: 16px 16px 8px 16px;
}
.wa-contacts-search i {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-40%);
  color: #94a3b8;
  font-size: 12px;
}
.wa-contacts-search input {
  width: 100%;
  padding: 9px 12px 9px 32px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  outline: none;
}
.wa-contacts-search input:focus { border-color: #93c5fd; }
.wa-contacts-filter { padding: 0 16px 10px 16px; }
.wa-contacts-filter .filter-select { width: 100%; }
.wa-contact-list {
  flex: 1;
  overflow-y: auto;
  border-top: 1px solid #f1f5f9;
}
.wa-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f8fafc;
  transition: background 0.15s ease;
  position: relative;
}
.wa-contact-item:hover { background: #f8fafc; }
.wa-contact-item.active { background: #eef2ff; }
.wa-contact-avatar-wrap { position: relative; flex-shrink: 0; }
.wa-online-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #ffffff;
}
.wa-contact-info { flex: 1; min-width: 0; }
.wa-contact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.wa-contact-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-contact-time { font-size: 10.5px; color: #94a3b8; flex-shrink: 0; }
.wa-contact-sube { margin-top: 2px; }
.wa-contact-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 2px;
}
.wa-contact-preview {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.wa-unread-badge {
  background: #16a34a;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}
.wa-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #f8fafc;
}
.wa-chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #cbd5e1;
  text-align: center;
  padding: 20px;
}
.wa-chat-empty i { font-size: 48px; }
.wa-chat-empty p { font-size: 13px; color: #94a3b8; max-width: 260px; }
.wa-chat-active {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.wa-chat-active.hidden { display: none; }
.wa-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: #ffffff;
  border-bottom: 1px solid #eef1f6;
  flex-shrink: 0;
}
.wa-chat-header-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wa-chat-avatar { width: 36px; height: 36px; font-size: 13px; }
.wa-chat-name { font-size: 14px; font-weight: 700; color: #1e293b; }
.wa-chat-sub { font-size: 11.5px; color: #94a3b8; }
.wa-chat-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.wa-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wa-msg-row { display: flex; margin-bottom: 6px; }
.wa-msg-row.out { justify-content: flex-end; }
.wa-msg-row.in { justify-content: flex-start; }
.wa-bubble {
  max-width: 65%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  position: relative;
}
.wa-msg-row.out .wa-bubble {
  background: #dcf8c6;
  color: #1e293b;
  border-bottom-right-radius: 3px;
}
.wa-msg-row.in .wa-bubble {
  background: #ffffff;
  color: #1e293b;
  border-bottom-left-radius: 3px;
}
.wa-bubble-time {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
  text-align: right;
}
.wa-day-divider {
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  margin: 10px 0;
  position: relative;
}
.wa-chat-input-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid #eef1f6;
  flex-shrink: 0;
}
.wa-chat-input-bar input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 13px;
  outline: none;
}
.wa-chat-input-bar input:focus { border-color: #93c5fd; }
.wa-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #16a34a;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: filter 0.15s ease;
}
.wa-send-btn:hover { filter: brightness(1.1); }
.wa-source-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  margin-left: 6px;
}

@media (max-width: 900px) {
  .wa-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .wa-contacts {
    border-right: none;
    border-bottom: 1px solid #eef1f6;
    max-height: 320px;
  }
  .wa-chat { height: 480px; }
}

/* ============ ÖĞRENCİ DETAY SAYFASI (Kursiyer Detayı) ============ */
.detay-breadcrumb-link { color: #64748b; text-decoration: none; }
.detay-breadcrumb-link:hover { text-decoration: underline; }
.btn-whatsapp-outline { color: #16a34a; border-color: #bbf7d0; }
.btn-whatsapp-outline:hover { background: #f0fdf4; }

.detay-profile-panel { display: block; }
.detay-profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.detay-profile-main { display: flex; align-items: flex-start; gap: 16px; }
.detay-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  flex-shrink: 0;
}
.detay-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detay-name { font-size: 19px; font-weight: 800; color: #1e293b; }
.detay-sub-row { display: flex; align-items: center; gap: 6px; color: #64748b; font-size: 12.5px; margin-top: 3px; }
.detay-contact-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.detay-contact-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #475569; }
.detay-contact-item i { color: #94a3b8; width: 14px; text-align: center; }

.detay-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 14px;
  border-left: 1px solid #f1f5f9;
  padding-left: 20px;
}
.detay-meta-item .detay-meta-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.3px; color: #94a3b8; text-transform: uppercase; }
.detay-meta-item .detay-meta-value { font-size: 13px; font-weight: 700; color: #1e293b; margin-top: 3px; }

.detay-odeme-widget { min-width: 220px; }
.detay-odeme-widget-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.4px; color: #ea580c; text-transform: uppercase; margin-bottom: 6px; }
.detay-odeme-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffedd5;
  color: #c2410c;
  font-weight: 800;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 10px;
}
.detay-odeme-pill.is-tamamlandi { background: #dcfce7; color: #16a34a; }
.detay-odeme-pill.is-gecikmis { background: #fee2e2; color: #b91c1c; }
.detay-odeme-alert-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 12px;
  color: #9a3412;
}
.detay-odeme-alert-box.is-gecikmis { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.detay-odeme-alert-box i { font-size: 16px; }

/* ---- Ödeme Durumu paneli içi (3 mini kart + ilerleme çubuğu) ---- */
.detay-odeme-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.detay-odeme-stat-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
}
.detay-odeme-stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 8px;
}
.detay-odeme-stat-icon.blue { background: #dbeafe; color: #2563eb; }
.detay-odeme-stat-icon.green { background: #dcfce7; color: #16a34a; }
.detay-odeme-stat-icon.red { background: #fee2e2; color: #dc2626; }
.detay-odeme-stat-label { font-size: 10px; font-weight: 700; color: #94a3b8; letter-spacing: 0.3px; }
.detay-odeme-stat-value { font-size: 16px; font-weight: 800; color: #1e293b; margin-top: 2px; }
.detay-odeme-stat-value.green { color: #16a34a; }
.detay-odeme-stat-value.red { color: #dc2626; }

.detay-durum-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff7ed;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.detay-durum-banner.is-tamamlandi { background: #f0fdf4; }
.detay-durum-banner.is-gecikmis { background: #fef2f2; }
.detay-durum-banner-icon { font-size: 20px; color: #ea580c; }
.detay-durum-banner.is-tamamlandi .detay-durum-banner-icon { color: #16a34a; }
.detay-durum-banner.is-gecikmis .detay-durum-banner-icon { color: #dc2626; }
.detay-durum-banner-label { font-size: 10.5px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.3px; }
.detay-durum-banner-value { font-size: 14px; font-weight: 800; color: #ea580c; }
.detay-durum-banner.is-tamamlandi .detay-durum-banner-value { color: #16a34a; }
.detay-durum-banner.is-gecikmis .detay-durum-banner-value { color: #dc2626; }

.detay-progress-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.detay-progress-label { font-size: 12px; font-weight: 700; color: #475569; }
.detay-progress-pct { font-size: 15px; font-weight: 800; color: #ea580c; }
.detay-progress-pct.is-tamamlandi { color: #16a34a; }
.detay-progress-track { display: flex; gap: 4px; margin-bottom: 16px; }
.detay-progress-seg { flex: 1; height: 8px; border-radius: 4px; background: #e2e8f0; }
.detay-progress-seg.paid { background: #22c55e; }
.detay-progress-seg.next { background: #fb923c; }

.detay-action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.detay-btn-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.detay-btn-green:hover { filter: brightness(1.08); }

/* ---- Ödeme Planı tablosu ---- */
.detay-plan-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.detay-plan-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 8px 6px;
  border-bottom: 1px solid #f1f5f9;
}
.detay-plan-table td { padding: 10px 6px; border-bottom: 1px solid #f8fafc; color: #334155; }
.detay-plan-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}
.detay-plan-footer-label { font-size: 10.5px; color: #94a3b8; }
.detay-plan-footer-value { font-size: 14px; font-weight: 800; color: #1e293b; margin-top: 2px; }
.detay-plan-footer-value.green { color: #16a34a; }
.detay-plan-footer-value.red { color: #dc2626; }

.taksit-status-odendi { background: #dcfce7; color: #16a34a; }
.taksit-status-bekliyor { background: #fef9c3; color: #a16207; }
.taksit-status-gecikmis { background: #fee2e2; color: #b91c1c; }

.student-name-link { text-decoration: none; cursor: pointer; }
.student-name-link:hover .student-name { color: #2563eb; text-decoration: underline; }

/* Taksit planı düzenleme modalındaki satırlar */
.plan-taksit-row {
  display: grid;
  grid-template-columns: 32px 1fr 1fr 32px;
  align-items: center;
  gap: 8px;
}
.plan-taksit-idx { font-size: 12px; font-weight: 700; color: #94a3b8; text-align: center; }
.plan-taksit-remove {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: #fee2e2;
  color: #b91c1c;
  cursor: pointer;
}
