@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@400;500;700;800&display=swap');
:root {
  --primary-color: #0284c7; /* Sky 600 */
  --primary-hover: #0369a1;
  --bg-color: #424d72; /* Logo Rengi (Muted Blue/Slate) */
  --surface-color: #1e293b; /* Slate 800 */
  --surface-border: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-color: #38bdf8;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --font-main: 'Nunito', system-ui, -apple-system, sans-serif;
}

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

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #7dd3fc;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

/* Cards & Surfaces */
.glass-card {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
  color: #0f172a;
}
.stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  background-color: #ffffff; /* Beyaz */
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-family: inherit;
  transition: all 0.2s ease;
}
.form-control::placeholder {
  color: #94a3b8;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}
select.form-control option {
  background-color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
  font-size: 1rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.5);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-outline {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}
.btn-outline:hover {
  background: #f1f5f9;
}

/* Header/Nav */
.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--surface-border);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  color: #0f172a;
}
.app-header .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.header-left {
  display: flex;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #424d72;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.data-table th, .data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--surface-border);
}
.data-table th {
  font-weight: 600;
  color: #ffffff;
  background-color: #3b82f6; /* Soft Blue */
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.data-table tr {
  transition: background-color 0.15s ease;
  color: #0f172a; /* Make table rows text dark */
}
.data-table tr:hover {
  background-color: #f1f5f9;
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.hidden { display: none !important; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.w-full { width: 100%; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gap-6 { gap: 1.5rem; }
.justify-end { justify-content: flex-end; }
.mr-2 { margin-right: 0.5rem; }
.col-span-1 { grid-column: span 1; }
.col-span-2 { grid-column: span 2; }
.p-3 { padding: 0.75rem; }
.rounded { border-radius: 0.5rem; }
.flex-col { flex-direction: column; }

/* ===== SPEECH-TO-TEXT MICROPHONE BUTTON ===== */
.stt-wrapper {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.stt-wrapper .form-control {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.stt-mic-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 48px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-left: none;
  border-radius: 0 0.5rem 0.5rem 0;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
  flex-shrink: 0;
}
.stt-mic-btn:hover {
  background: #e2e8f0;
  color: #0284c7;
}
.stt-mic-btn.recording {
  background: #fef2f2;
  border-color: #ef4444;
  color: #ef4444;
  animation: stt-pulse 1.5s infinite;
}
.stt-mic-btn svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}
@keyframes stt-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}
/* For textareas — mic button in top-right corner */
.stt-wrapper-textarea {
  position: relative;
}
.stt-wrapper-textarea .stt-mic-btn {
  position: absolute;
  top: 0;
  right: 0;
  border: 1px solid #cbd5e1;
  border-radius: 0 0.5rem 0 0.5rem;
  z-index: 2;
}
.stt-wrapper-textarea .form-control {
  padding-right: 56px;
}
.stt-not-supported {
  display: none;
}

/* ===== AUTO-SAVE DRAFT BANNER ===== */
.auto-save-banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  animation: fadeIn 0.4s ease-out;
}
.auto-save-banner-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #92400e;
  font-weight: 500;
  font-size: 0.9rem;
}
.auto-save-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.auto-save-banner-actions button {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.15s ease;
}
.auto-save-restore-btn {
  background: #f59e0b;
  color: white;
}
.auto-save-restore-btn:hover {
  background: #d97706;
}
.auto-save-discard-btn {
  background: transparent;
  color: #92400e;
  border: 1px solid #d97706 !important;
}
.auto-save-discard-btn:hover {
  background: rgba(217, 119, 6, 0.1);
}
.auto-save-indicator {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: rgba(16, 185, 129, 0.9);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 100;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.auto-save-indicator.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== AUTO DATE BADGE ===== */
.auto-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border: 1px solid #bfdbfe;
}

/* ===== HAMBURGER MENU ===== */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #0f172a;
  z-index: 20;
}
.hamburger-btn svg {
  width: 28px;
  height: 28px;
}

/* ---- UX Loading States ---- */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(var(--primary-color-rgb), 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  display: inline-block;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-bg) 25%, var(--surface-border) 50%, var(--surface-bg) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Mobile nav overlay */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 260px;
  background: #ffffff;
  box-shadow: -4px 0 15px rgba(0,0,0,0.15);
  padding: 4.5rem 1.5rem 2rem;
  gap: 1rem;
  z-index: 15;
  animation: slideInRight 0.25s ease-out;
}
.nav-links.mobile-open a,
.nav-links.mobile-open span {
  font-size: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 12;
}
.nav-overlay.active {
  display: block;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ===== RESPONSIVE — TABLET (≤1024px) ===== */
@media (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .col-span-2 {
    grid-column: span 2;
  }
  .container {
    padding: 1.5rem;
  }
}

/* ===== RESPONSIVE — SMALL TABLET / LARGE PHONE (≤768px) ===== */
@media (max-width: 768px) {
  /* Header */
  .hamburger-btn {
    display: block;
  }
  .app-header {
    padding: 1rem;
  }
  .app-header .logo {
    position: static;
    transform: none;
    font-size: 1.1rem;
    flex: 1;
    text-align: center;
  }
  .nav-links {
    display: none;
  }

  /* Grid collapse */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  .col-span-1,
  .col-span-2 {
    grid-column: span 1;
  }

  /* Container */
  .container {
    padding: 1rem;
  }

  /* Cards */
  .glass-card {
    padding: 1.25rem;
    border-radius: 0.75rem;
  }
  .stat-card {
    padding: 1rem;
  }

  /* Tables — horizontal scroll */
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .data-table th,
  .data-table td {
    padding: 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* Forms — touch friendly */
  .form-control {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    min-height: 48px;
  }
  select.form-control {
    min-height: 48px;
  }
  .form-label {
    font-size: 0.9rem;
    color: #475569;
  }

  /* Buttons — full width on mobile */
  .btn {
    padding: 0.875rem 1.5rem;
    min-height: 48px;
    font-size: 1rem;
  }

  /* Typography */
  h2 {
    font-size: 1.35rem;
  }
  h3 {
    font-size: 1.1rem;
  }

  /* Specific page fixes */
  /* admin-dashboard teacher buttons grid */
  #teacherButtonsContainer {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* PDR tab buttons scroll */
  .tab-buttons {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
  }
  .tab-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }

  /* Student profile header */
  .student-header-flex {
    flex-direction: column;
    text-align: center;
  }

  /* Auto-save banner */
  .auto-save-banner {
    flex-direction: column;
    text-align: center;
  }
  .auto-save-banner-actions {
    width: 100%;
    justify-content: center;
  }

  /* Karne centered layout */
  .karne-container {
    padding: 1rem !important;
  }

  /* Full-width spans override */
  [style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }
}

/* ===== RESPONSIVE — PHONE (≤480px) ===== */
@media (max-width: 480px) {
  .app-header {
    padding: 0.75rem;
  }
  .app-header .logo {
    font-size: 0.95rem;
  }
  .header-left img {
    height: 36px !important;
  }

  .container {
    padding: 0.75rem;
  }

  .glass-card {
    padding: 1rem;
    border-radius: 0.5rem;
  }

  .stat-value {
    font-size: 1.35rem;
  }

  .form-control {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  /* Admin dashboard 4-col metrics */
  #teacherButtonsContainer {
    grid-template-columns: 1fr !important;
  }

  /* Login page */
  .login-container {
    padding: 0.5rem;
  }
  .login-container .glass-card {
    border-radius: 0.75rem;
  }

  /* Modals */
  #editModal > div,
  #veliListModal > div,
  #pdrModal > div {
    width: 95% !important;
    max-height: 90vh;
    overflow-y: auto;
  }

  /* STT mic button */
  .stt-mic-btn {
    width: 44px;
    min-height: 44px;
  }

  /* Karne */
  .karne-header [style*="gap: 2rem"] {
    flex-direction: column !important;
    gap: 0.25rem !important;
  }
}

/* ===== Tasarım güncellemesi (12 Ekim 2026): okunurluk ===== */
/* Koyu zemindeki açıklama yazıları daha açık; beyaz kart / üst bar içinde koyu gri (≥ 7:1 kontrast). */
:root { --text-secondary: #52514e; }
.glass-card, .app-header, .stat-card, .modal-content { --surface-border: #e2e8f0; }
main.container > p, main.container > .text-center p, main.container > h2 + p, main.container > h1 + p { color: #d5dbe5 !important; }
.data-table th, .data-table td { padding: .7rem .85rem; }
.data-table td { border-bottom-color: #e2e8f0; }
.tablo-kaydir { overflow-x: auto; }
/* Üst bar: ortadaki başlık sağdaki ada/rozete binmesin */
@media (min-width: 769px) {
  .app-header { gap: 1rem; }
  .app-header .logo { position: static; transform: none; flex: 1; text-align: center; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .app-header .nav-links { flex: 0 1 auto; min-width: 0; align-items: center; }
  .app-header #userNameDisplay { display: inline-block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
}
/* Izgara hücreleri içerik yüzünden taşmasın (geniş tablolar kendi içinde kayar) */
.grid > * { min-width: 0; }
canvas { max-width: 100%; }

/* ===== MOBİL KATMAN (18 Ekim 2026): taşma, dokunma alanı, sabit ad sütunu ===== */
@media (max-width: 768px) {
  /* Satır içi genişlik verilmiş alanlar ekrandan taşmasın */
  input[style*="width"], select[style*="width"], textarea[style*="width"] { max-width: 100%; }
  .container [style*="display: flex"], .container [style*="display:flex"] { flex-wrap: wrap; }
  .container [style*="display: flex"] > input.form-control,
  .container [style*="display: flex"] > select.form-control { flex: 1 1 140px; width: auto !important; min-width: 0; }
  .app-header .header-right, .app-header .header-left { flex-wrap: wrap; max-width: 100%; min-width: 0; }
  .app-header { flex-wrap: wrap; }
  .glass-card, .container { max-width: 100%; }
  /* Parmakla rahat basılsın */
  .btn, button.btn, a.btn, .tab-btn, .tab-buttons button { min-height: 44px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; }
  .hamburger-btn { min-width: 44px; min-height: 44px; max-width: 100%; }
  input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; }
  /* Giriş tablolarında öğrenci adı sabit kalsın, puanlar yana kaysın */
  #studentsTable { max-width: 100%; }
  #studentsTable th:first-child, #studentsTable td:first-child {
    position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: 2px 0 4px rgba(15,23,42,.12);
    width: 112px !important; min-width: 112px; max-width: 112px; white-space: normal; overflow-wrap: break-word; word-break: normal; font-size: .8rem;
  }
  #studentsTable th:first-child { background: #3b82f6; z-index: 3; }
  .data-table.dar th:first-child, .data-table.dar td:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
  .data-table.dar th:first-child { background: #3b82f6; }
}
@media (max-width: 768px) {
  main button, .container button { min-height: 40px; }
  td input:not([type="checkbox"]):not([type="radio"]), td select, td textarea { min-height: 38px; font-size: 16px; }
  a.t-ev, a.s-ogr { display: inline-block; padding: .5rem 0; min-height: 36px; }
}


/* ===== ŞEFTALİ TEMA (30 Ekim 2026) — varsayılan açık; kapatmak: ?tema=kapat ===== */
/* src/tema-seftali.css — ROTA Şeftali teması (30 Ekim 2026)
   Yalnız <html class="tema-sf"> iken çalışır (ust-arac.js ekler). Kapatmak: adreste ?tema=kapat
   Yazı tipi: Aptos varsa Aptos, yoksa Albert Sans, yoksa sistem yazı tipi. */
html:not(.tema-kapali) {
  --font-main: Aptos, 'Albert Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --primary-color: #C0501C;
  --primary-hover: #A94415;
  --bg-color: #FFF6EC;
  --text-primary: #4B3B2F;
  --text-secondary: #756250;
  --accent-color: #C2562A;
  --surface-border: #F3E4D6;
}
html:not(.tema-kapali) body { font-family: var(--font-main); background: #FFF6EC; color: #4B3B2F; }
html:not(.tema-kapali) a:not(.btn):not(.mp-kart):not(.oy-satir):hover { color: #B8441A; }

/* Üst bar */

/* Kartlar */
html:not(.tema-kapali) .glass-card, html:not(.tema-kapali) .stat-card { border: none; border-radius: 28px; box-shadow: 0 12px 30px rgba(242,139,91,.15); }

/* Formlar */
html:not(.tema-kapali) .form-control { border: 2px solid #F3E4D6; background: #FFFAF5; border-radius: 18px; transition: border-color .2s, box-shadow .2s, transform .2s; }
html:not(.tema-kapali) .form-control:focus { border-color: #F28B5B; box-shadow: 0 0 0 6px rgba(242,139,91,.22); transform: translateY(-1px); }

/* Butonlar */
html:not(.tema-kapali) .btn { border-radius: 999px; font-weight: 700; transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s, background-size .35s ease, color .25s; }
html:not(.tema-kapali) .btn-primary, html:not(.tema-kapali) a.btn-primary:hover, html:not(.tema-kapali) a.btn-primary:focus { color: #fff; }
html:not(.tema-kapali) .btn-primary { background: #C0501C; box-shadow: 0 8px 18px rgba(242,139,91,.35); }
html:not(.tema-kapali) .btn-primary:hover { background: #A94415; transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 26px rgba(242,139,91,.45); }
html:not(.tema-kapali) .btn-primary:active { transform: translateY(1px) scale(.96); }
html:not(.tema-kapali) .btn-outline { background-color: #fff; border: 2px solid #C0501C; color: #A94415; background-image: linear-gradient(#C0501C, #C0501C); background-repeat: no-repeat; background-size: 0% 100%; }
html:not(.tema-kapali) .btn-outline:hover { background-size: 100% 100%; color: #fff; transform: translateY(-2px); }
html:not(.tema-kapali) .btn-outline:active { transform: scale(.96); }
html:not(.tema-kapali) .btn:disabled { background: #EEE5DB; color: #9B8D80; box-shadow: none; cursor: not-allowed; transform: none; background-image: none; border-color: #EEE5DB; }
html:not(.tema-kapali) .btn:focus-visible, html:not(.tema-kapali) a:focus-visible, html:not(.tema-kapali) button:focus-visible { outline: 3px solid #4B3B2F; outline-offset: 3px; }

/* Tablolar */
html:not(.tema-kapali) .data-table th { background: #FFE3D0; color: #7A4A2A; }
html:not(.tema-kapali) .data-table tr:hover { background: #FFF3E8; }

/* Okunurluk düzeltmeleri (eski açık-gri yazı renkleri) */
html:not(.tema-kapali) main.container > p, html:not(.tema-kapali) main.container > .text-center p, html:not(.tema-kapali) main.container > h2 + p, html:not(.tema-kapali) main.container > h1 + p { color: #756250 !important; }
html:not(.tema-kapali) [style*="#94a3b8"], html:not(.tema-kapali) [style*="#898781"], html:not(.tema-kapali) [style*="#64748b"] { color: #6B5A4B !important; }
html:not(.tema-kapali) [style*="color: #2a78d6"], html:not(.tema-kapali) [style*="color:#2a78d6"] { color: #1F5FB0 !important; }
html:not(.tema-kapali) .oy-git, html:not(.tema-kapali) summary { color: #1F5FB0; }
html:not(.tema-kapali) .mp-grup h4 small { color: #6B5A4B; }

/* Modül kartları: dolgun, renkli, yumuşak */
html:not(.tema-kapali) .mp-ust h3 { color: #4B3B2F; font-size: 1.35rem; }
html:not(.tema-kapali) .mp-ara { border: 2px solid #F3E4D6; background: #FFFAF5; border-radius: 999px; padding: 0 1.1rem; }
html:not(.tema-kapali) .mp-grup { margin-top: 1.6rem; }
html:not(.tema-kapali) .mp-grup h4 { color: color-mix(in srgb, var(--r) 72%, #000); font-size: .9rem; letter-spacing: .04em; }
html:not(.tema-kapali) .mp-grup h4::before { width: 8px; height: 8px; border-radius: 50%; }
html:not(.tema-kapali) .mp-izgara { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
html:not(.tema-kapali) .mp-kart { position: relative; overflow: hidden; border: 2px solid color-mix(in srgb, var(--r) 22%, #fff); border-left-width: 2px; border-radius: 26px; padding: 1.1rem 1.1rem 1.1rem 1rem; min-height: 96px; gap: .9rem;
  background: linear-gradient(145deg, color-mix(in srgb, var(--r) 16%, #fff) 0%, #fff 78%);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--r) 18%, transparent);
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s, border-color .2s; }
html:not(.tema-kapali) .mp-kart::after { content: '›'; position: absolute; right: 14px; bottom: 12px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; line-height: 1; font-weight: 700;
  background: color-mix(in srgb, var(--r) 22%, #fff); color: color-mix(in srgb, var(--r) 70%, #000); transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .2s, color .2s; }
html:not(.tema-kapali) .mp-kart:hover { transform: translateY(-6px) rotate(-.8deg); border-color: color-mix(in srgb, var(--r) 55%, #fff); box-shadow: 0 20px 34px color-mix(in srgb, var(--r) 30%, transparent); }
html:not(.tema-kapali) .mp-kart:hover::after { transform: translateX(4px); background: color-mix(in srgb, var(--r) 70%, #000); color: #fff; }
html:not(.tema-kapali) .mp-kart:active { transform: translateY(-1px) scale(.97); }
html:not(.tema-kapali) .mp-ikon { width: 54px; height: 54px; flex: 0 0 54px; font-size: 1.7rem; border-radius: 20px; background: color-mix(in srgb, var(--r) 24%, #fff); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--r) 30%, transparent); }
html:not(.tema-kapali) .mp-kart:hover .mp-ikon { animation: sf-wig .6s ease; }
html:not(.tema-kapali) .mp-yazi { padding-right: 26px; }
html:not(.tema-kapali) .mp-yazi b { color: #3F3025; font-size: 1.02rem; line-height: 1.25; }
html:not(.tema-kapali) .mp-yazi small { color: #6B5A4B; font-size: .8rem; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-top: 2px; }

/* Önümdeki işler / Yaklaşan işlerim */
html:not(.tema-kapali) #oyKutu, html:not(.tema-kapali) .oy-kutu { border: none !important; }
html:not(.tema-kapali) .oy-satir { padding: .85rem 1.1rem; border: none; border-radius: 20px; box-shadow: 0 6px 16px rgba(242,139,91,.14); transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s; color: #3F3025; }
html:not(.tema-kapali) .oy-satir:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(242,139,91,.24); color: #3F3025; }
html:not(.tema-kapali) .oy-m { font-size: .98rem; font-weight: 600; }
html:not(.tema-kapali) .oy-ik { width: 30px; height: 30px; font-size: .95rem; background: #fff; }
html:not(.tema-kapali) .oy-bar { background: #F3E4D6; height: 9px; }
html:not(.tema-kapali) .oy-git { background: #fff; padding: .35rem .8rem; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
html:not(.tema-kapali) [style*="fff7ed"] { background: linear-gradient(145deg, #FFEBD6, #FFF7ED) !important; border: none !important; border-radius: 22px !important; padding: 1rem 1.2rem !important; box-shadow: 0 8px 20px rgba(242,139,91,.16); }

@keyframes sf-wig { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) {
  html:not(.tema-kapali) .btn, html:not(.tema-kapali) .mp-kart, html:not(.tema-kapali) .form-control { transition: none; }
  html:not(.tema-kapali) .mp-kart:hover .mp-ikon { animation: none; }
}

/* Satır içi renkli çerçeveli kutular (mavi/kırmızı çerçeveler) yumuşasın */
html:not(.tema-kapali) .glass-card[style*="solid #2a78d6"] { border: 3px solid #F6A77F !important; }
html:not(.tema-kapali) #yapilacakWidget { background: linear-gradient(160deg, #FFFFFF, #FFF3E6); }

/* Tailwind tarzı parlak satır içi yazı renkleri → beyaz/krem üstünde okunur koyu tonlar */
html:not(.tema-kapali) [style*="color: #10b981"], html:not(.tema-kapali) [style*="color:#10b981"] { color: #047857 !important; }
html:not(.tema-kapali) [style*="color: #f59e0b"], html:not(.tema-kapali) [style*="color:#f59e0b"] { color: #B45309 !important; }
html:not(.tema-kapali) [style*="color: #ef4444"], html:not(.tema-kapali) [style*="color:#ef4444"] { color: #B91C1C !important; }
html:not(.tema-kapali) [style*="color: #8b5cf6"], html:not(.tema-kapali) [style*="color:#8b5cf6"] { color: #6D28D9 !important; }
html:not(.tema-kapali) [style*="#d03b3b"] { color: #B72E2E !important; }
html:not(.tema-kapali) #sekmeler button.aktif { background: #C0501C; border-color: #C0501C; color: #fff; }
html:not(.tema-kapali) .nb-bos, html:not(.tema-kapali) [class*="nb-"] small, html:not(.tema-kapali) .nb-bos + small { color: #6B5A4B; }

/* ===== ÜST ÇUBUK ===== */
html:not(.tema-kapali) .app-header { position: sticky; overflow: hidden; padding: .9rem 2rem; gap: 1rem; border-bottom: none; border-radius: 0 0 34px 34px;
  background: linear-gradient(120deg, #FFFFFF 0%, #FFF4E8 55%, #FFE6D2 100%); box-shadow: 0 12px 30px rgba(242,139,91,.2); }
html:not(.tema-kapali) .app-header::before, html:not(.tema-kapali) .app-header::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
html:not(.tema-kapali) .app-header::before { width: 120px; height: 120px; right: 22%; top: -64px; background: rgba(246,167,127,.28); }
html:not(.tema-kapali) .app-header::after { width: 70px; height: 70px; left: 30%; bottom: -40px; background: rgba(214,232,208,.7); }
html:not(.tema-kapali) .app-header > * { z-index: 1; }
html:not(.tema-kapali) .app-header > .header-left, html:not(.tema-kapali) .app-header > .nav-links { position: relative; }
html:not(.tema-kapali) .app-header > .logo { position: relative; left: auto; transform: none; flex: 1; text-align: center; min-width: 0; }
html:not(.tema-kapali) .header-left img { height: 50px !important; border-radius: 16px !important; box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(242,139,91,.35); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
html:not(.tema-kapali) .header-left img:hover { transform: rotate(-6deg) scale(1.08); }
html:not(.tema-kapali) .app-header .logo { font-size: 1.55rem; font-weight: 800; letter-spacing: -.01em; background: linear-gradient(90deg, #A94415, #D2612E); -webkit-background-clip: text; background-clip: text; color: transparent; }
html:not(.tema-kapali) .app-header .nav-links { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
html:not(.tema-kapali) .app-header .ua-ara-btn { border: 2px solid #F6C9A8; background: #FFF3E8; color: #8A3A12; padding: .45rem 1rem; font-size: .85rem; border-radius: 999px; transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .2s, color .2s, box-shadow .2s; }
html:not(.tema-kapali) .app-header .ua-ara-btn:hover { background: #C0501C; border-color: #C0501C; color: #fff; transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 16px rgba(192,80,28,.3); }
html:not(.tema-kapali) .app-header .ua-ara-btn:active { transform: scale(.95); }
html:not(.tema-kapali) .app-header #userNameDisplay { margin: 0 !important; display: inline-flex; align-items: center; gap: .55rem; background: #fff; border-radius: 999px; padding: .25rem .9rem .25rem .3rem; box-shadow: 0 4px 12px rgba(242,139,91,.18); max-width: 320px; color: #3F3025; font-weight: 700; font-size: .9rem; }
html:not(.tema-kapali) .ua-av { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; color: #3F3025; background: linear-gradient(145deg, #FFD3B5, #F6A77F); box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
html:not(.tema-kapali) .ua-ad { display: inline-flex; flex-direction: column; min-width: 0; line-height: 1.15; }
html:not(.tema-kapali) .ua-ad b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
html:not(.tema-kapali) .ua-ad small { color: #6B5A4B; font-weight: 600; font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:not(.tema-kapali) .app-header #logoutBtn, html:not(.tema-kapali) .app-header .nav-links > a { background: #FFE9D8; color: #8A3A12; padding: .5rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: .88rem; text-decoration: none; transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .2s, color .2s; }
html:not(.tema-kapali) .app-header #logoutBtn:hover, html:not(.tema-kapali) .app-header .nav-links > a:hover { background: #C0501C; color: #fff; transform: translateY(-2px) scale(1.04); }
@media (max-width: 768px) {
  html:not(.tema-kapali) .app-header { padding: .7rem 1rem; border-radius: 0 0 26px 26px; }
  html:not(.tema-kapali) .app-header .logo { font-size: 1.15rem; }
  html:not(.tema-kapali) .ua-ad small { display: none; }
  html:not(.tema-kapali) .app-header #userNameDisplay { max-width: 150px; padding-right: .6rem; }
  html:not(.tema-kapali) .app-header #logoutBtn { padding: .45rem .8rem; }
}
@media (prefers-reduced-motion: reduce) { html:not(.tema-kapali) .header-left img, html:not(.tema-kapali) .app-header .ua-ara-btn, html:not(.tema-kapali) #logoutBtn { transition: none; } }
