/* ============================================
   MOSCOS — Admin Sayfası
   ============================================ */

.admin-frame .app-header {
  text-align: left;
}

.admin-frame .brand {
  justify-content: flex-start;
}

.admin-frame .brand-sub {
  margin-left: 36px;
}

.admin-main {
  flex: 1;
  padding: 16px 22px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

/* Sekmeler */
.tab-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tab {
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 14px 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(193, 83, 58, 0.08);
}

.tab.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 6px 16px rgba(193, 83, 58, 0.3);
}

/* Form elemanları */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.form-input {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
  width: 100%;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(193, 83, 58, 0.12);
}

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

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

/* Şık satırları */
.options-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.option-harf {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option-row .form-input {
  flex: 1;
}

/* Form mesajı */
.form-msg {
  font-size: 13px;
  text-align: center;
  min-height: 20px;
  font-weight: 500;
}

.form-msg.success { color: #4A7A4A; }
.form-msg.error { color: #8B3838; }

/* Chip aktif durumu — admin */
#adminDonem .chip.active,
#cikmisDonem .chip.active,
#adminCevap .chip.active,
#cikmisCevap .chip.active,
#editDonem .chip.active,
#editCevap .chip.active,
#ceditDonem .chip.active,
#ceditCevap .chip.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: white !important;
  box-shadow: 0 6px 16px rgba(193, 83, 58, 0.35) !important;
  transform: translateY(-1px);
}

/* Soru listesi */
.list-filters {
  display: flex;
  gap: 8px;
}

.soru-listesi {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.liste-bos {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 30px 0;
}

.soru-kart {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: 0 4px 10px rgba(193, 83, 58, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.soru-kart-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.soru-kart-pill {
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.soru-kart-pill.ders {
  background: var(--accent-light);
  color: var(--accent);
}

.soru-kart-metin {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.4;
  font-weight: 500;
}

.soru-kart-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.action-btn {
  background: transparent;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.action-btn.duzenle {
  color: var(--accent);
  border-color: var(--accent-soft);
}

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

.action-btn.sil {
  color: #8B3838;
  border-color: #D4A0A0;
}

.action-btn.sil:hover {
  background: #F0CFCF;
  border-color: #B85454;
}

/* ============================================
   AI PARSE (basitleştirildi)
   ============================================ */

.key-hint {
  font-size: 11px;
  color: var(--text-muted);
  padding-left: 4px;
  font-style: italic;
}

.onizleme-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 12px;
  gap: 12px;
}

.onizleme-header .start-btn {
  flex: 0 0 auto;
  padding: 12px 18px;
  font-size: 14px;
}

.onizleme-header .section-title {
  margin: 0;
}

.ai-soru-kart {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(193, 83, 58, 0.08);
  border-left: 3px solid var(--accent);
}

.ai-soru-metin {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.ai-secenekler {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.ai-secenek {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-gradient-start);
}

.ai-secenek.dogru {
  background: #D4E8D4;
  color: #2D4A2D;
  font-weight: 600;
}

/* ============================================
   GİRİŞ EKRANI
   ============================================ */

.login-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-gradient-start);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(255, 240, 235, 0.8), transparent 60%),
    linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.login-screen.hidden {
  display: none;
}

.login-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  width: 100%;
  max-width: 360px;
  box-shadow:
    0 20px 50px rgba(193, 83, 58, 0.2),
    0 8px 20px rgba(193, 83, 58, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.login-icon {
  font-size: 36px;
  color: var(--accent);
}

.login-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.login-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 260px;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(193, 83, 58, 0.1);
  margin-top: 8px;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(193, 83, 58, 0.18);
  border-color: var(--accent-soft);
}

.login-error {
  font-size: 13px;
  color: #8B3838;
  min-height: 18px;
  font-weight: 500;
}

/* ============================================
   DÜZENLEME MODALI
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(42, 21, 16, 0.6);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(4px);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-kapat {
  width: 32px;
  height: 32px;
  background: var(--bg-gradient-start);
  border: none;
  border-radius: 50%;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-kapat:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.modal-body {
  padding: 20px 22px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
