:root,
body.dark-theme {
  --bg-app: #0b101c;
  --bg-titlebar: #0d1322;
  --bg-rail: #0c1220;
  --bg-sidebar: #101726;
  --bg-workspace: #0b101b;
  --bg-card: #121a2c;
  --bg-surface: #152035;
  --bg-surface-hover: #1c2b47;
  --bg-input: #0f1626;

  --border-color: #1a253c;
  --border-color-subtle: #151e32;
  --border-color-bright: #293b60;

  --color-cyan: #38bdf8;
  --color-cyan-glow: #00d2ff;
  --color-blue: #3b82f6;
  --color-purple: #a855f7;
  --color-purple-light: #c084fc;
  --color-magenta: #e879f9;
  --color-danger: #ef4444;
  --color-danger-glow: #f87171;
  --color-success: #10b981;

  --text-main: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-cyan: #38bdf8;

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  color-scheme: dark;
}

body.light-theme {
  --bg-app: #f1f5f9;
  --bg-titlebar: #ffffff;
  --bg-rail: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-workspace: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  --bg-input: #ffffff;

  --border-color: #e2e8f0;
  --border-color-subtle: #cbd5e1;
  --border-color-bright: #94a3b8;

  --color-cyan: #0284c7;
  --color-cyan-glow: #0ea5e9;
  --color-blue: #2563eb;
  --color-purple: #9333ea;
  --color-purple-light: #a855f7;
  --color-magenta: #c026d3;
  --color-danger: #dc2626;
  --color-danger-glow: #ef4444;
  --color-success: #059669;

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-cyan: #0284c7;

  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

body {
  background: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Light theme specific overrides */
body.light-theme .record-orb-button {
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #e2e8f0 85%);
  box-shadow:
    0 0 0 3px rgba(2, 132, 199, 0.25),
    0 0 20px rgba(14, 165, 233, 0.25),
    0 0 35px rgba(147, 51, 234, 0.15);
}

body.light-theme .record-orb-button:hover {
  box-shadow:
    0 0 0 3px rgba(2, 132, 199, 0.4),
    0 0 26px rgba(14, 165, 233, 0.35),
    0 0 45px rgba(147, 51, 234, 0.25);
}

body.light-theme .orb-label {
  color: #0369a1;
  text-shadow: none;
}

body.light-theme .orb-timer {
  background: rgba(226, 232, 240, 0.95);
  color: #0284c7;
}

body.light-theme .record-orb-button.recording .orb-label {
  color: #dc2626;
}

body.light-theme .modal-box {
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
}

body.light-theme .modal-overlay {
  background: rgba(15, 23, 42, 0.4);
}

body.light-theme .analysis-status-card {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

body.light-theme .analysis-timer-text {
  background: #e2e8f0;
  color: #0369a1;
}

body.light-theme .header-model-select option {
  background: #ffffff;
  color: #0f172a;
}

/* ========================================================
   EN ÜST PENCERE ÇUBUĞU (Titlebar)
   ======================================================== */
.app-titlebar {
  height: 44px;
  background: var(--bg-titlebar);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  user-select: none;
}

.titlebar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}

.logo-box {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.logo-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.titlebar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.user-name {
  font-weight: 500;
  color: var(--text-main);
}

.titlebar-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.titlebar-btn:hover {
  background: var(--bg-surface);
  border-color: var(--border-color-bright);
  color: var(--text-main);
}

.titlebar-btn-logout:hover {
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--color-danger-glow);
}

.api-key-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background-color: var(--text-muted);
}

.api-key-dot.is-active {
  background-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.api-key-dot.is-missing {
  background-color: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}

/* ========================================================
   UYGULAMA GÖVDESİ (App Shell)
   ======================================================== */
.app-shell {
  display: flex;
  flex: 1;
  height: calc(100vh - 44px);
  overflow: hidden;
}

/* ========================================================
   1. EN SOL DAR İKON RAİL (Icon Rail)
   ======================================================== */
.app-rail {
  width: 54px;
  background: var(--bg-rail);
  border-right: 1px solid var(--border-color-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  flex-shrink: 0;
}

.rail-top,
.rail-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.rail-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.rail-btn:hover {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
}

.rail-btn.active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--color-cyan);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.rail-icon {
  width: 20px;
  height: 20px;
}

/* ========================================================
   2. SOL YAN PANEL (Sidebar)
   ======================================================== */
.app-sidebar {
  width: 280px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 16px 14px;
  gap: 18px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
}

.sidebar-burger-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}

.sidebar-burger-btn:hover {
  color: var(--text-main);
}

.sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* BÜYÜK DAİRESEL NEON KAYIT BUTONU */
.record-orb-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 6px;
}

.record-orb-button {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 35%, #192742 0%, #0d1525 80%);
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  outline: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.3),
    0 0 25px rgba(0, 210, 255, 0.35),
    0 0 50px rgba(168, 85, 247, 0.25);
}

.record-orb-button:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.5),
    0 0 32px rgba(0, 210, 255, 0.5),
    0 0 65px rgba(168, 85, 247, 0.4);
}

.record-orb-button:active {
  transform: scale(0.97);
}

.orb-glow-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d2ff, #a855f7, #ec4899);
  z-index: 1;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 2px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 2px));
}

.record-orb-button.recording {
  box-shadow:
    0 0 0 3px rgba(239, 68, 68, 0.5),
    0 0 35px rgba(239, 68, 68, 0.6),
    0 0 70px rgba(236, 72, 153, 0.4);
  animation: pulseRecording 1.4s ease-in-out infinite;
}

.record-orb-button.recording .orb-glow-ring {
  background: linear-gradient(135deg, #ef4444, #f43f5e, #ec4899);
}

@keyframes pulseRecording {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.orb-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.orb-mic-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.orb-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 210, 255, 0.7);
  text-align: center;
}

.record-orb-button.recording .orb-label {
  color: #fca5a5;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}

.orb-timer {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-cyan);
  background: var(--bg-input);
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.sidebar-status {
  margin-top: 8px;
  font-size: 0.78rem;
  text-align: center;
  color: var(--text-secondary);
  min-height: 18px;
}

/* SES DOSYASI YÜKLE PILL BUTON */
.sidebar-upload-area {
  display: flex;
  flex-direction: column;
}

.pill-upload-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-main);
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.pill-upload-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--color-cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
  color: var(--color-cyan);
}

.pill-upload-btn .upload-icon {
  width: 16px;
  height: 16px;
}

/* DERSLERİM VE BÖLÜM BAŞLIKLARI */
.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.add-circle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.add-circle-btn:hover {
  background: var(--bg-surface);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

.course-inline-picker input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--text-main);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.course-inline-picker input:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.courses-tree-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 430px);
  min-height: 140px;
  overflow-y: auto;
  padding-right: 4px;
}

.course-tree-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 3px;
}

.course-tree-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.course-tree-header:hover {
  background: var(--bg-surface);
  color: var(--text-main);
}

.course-tree-header.active {
  background: rgba(56, 189, 248, 0.08);
  color: var(--text-main);
  font-weight: 500;
}

.course-chevron {
  font-size: 0.65rem;
  color: var(--text-muted);
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.course-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.course-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.course-badge {
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 2px;
}

.course-add-sub-btn {
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-cyan);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  flex-shrink: 0;
}

.course-tree-header:hover .course-add-sub-btn {
  opacity: 1;
}

.course-add-sub-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
}

.course-sub-sessions {
  margin-left: 14px;
  border-left: 1.5px solid var(--border-color);
  padding-left: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  margin-bottom: 4px;
}

.course-sub-sessions.collapsed {
  display: none;
}

.session-tree-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.session-tree-item:hover {
  background: var(--bg-surface);
  color: var(--text-main);
}

.session-tree-item.active {
  background: rgba(56, 189, 248, 0.14);
  color: var(--color-cyan);
  font-weight: 500;
}

.session-icon {
  font-size: 0.78rem;
  flex-shrink: 0;
}

.session-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-note-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
  flex-shrink: 0;
}

.session-tree-add {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.session-tree-add:hover {
  color: var(--color-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.session-tree-add .tree-plus {
  font-weight: bold;
  font-size: 0.85rem;
}

.tree-item-empty {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 6px 8px;
  font-style: italic;
}

/* EĞİTİM MODÜLÜ / ARAÇLAR */
.tools-section {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-color-subtle);
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar-tool-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.sidebar-tool-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-color-bright);
  color: var(--color-cyan);
}

.sidebar-tool-btn.active {
  border-color: var(--color-cyan);
  background: rgba(56, 189, 248, 0.1);
  color: var(--color-cyan);
}

.tool-icon {
  font-size: 0.95rem;
}

/* ========================================================
   3. ANA ÇALIŞMA ALANI (Main Workspace)
   ======================================================== */
.app-workspace {
  flex: 1;
  background: var(--bg-workspace);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Üst Başlık Barı */
.workspace-header {
  height: 52px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  background: var(--bg-titlebar);
  backdrop-filter: blur(10px);
}

.header-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.header-title-edit-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.header-title-edit-btn:hover {
  color: var(--color-cyan);
  background: var(--bg-surface);
}

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

.model-picker-capsule {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2px 8px;
  gap: 6px;
}

.model-picker-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.header-model-select {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  padding: 4px 0;
}

.header-model-select option {
  background: var(--bg-card);
  color: var(--text-main);
}

.header-btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.header-btn-icon:hover {
  background: var(--bg-surface-hover);
  color: var(--text-main);
  border-color: var(--border-color-bright);
}

/* YENİ KAYIT ANALİZİ KARTI */
.analysis-status-card {
  margin: 14px 20px 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  animation: fadeIn 0.25s ease;
}

.analysis-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.analysis-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.analysis-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--color-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.analysis-card-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.analysis-mic-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.analysis-mic-svg {
  width: 18px;
  height: 18px;
}

.analysis-progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.analysis-bar-track {
  width: 100%;
  height: 7px;
  background: var(--bg-surface);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.analysis-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #a855f7 100%);
  border-radius: 6px;
  transition: width 0.35s ease;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.analysis-msg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.analysis-msg-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.analysis-timer-text {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--color-cyan);
  background: var(--bg-input);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.analysis-constellation {
  width: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.constellation-svg {
  width: 44px;
  height: 30px;
  opacity: 0.8;
}

/* ÇALIŞMA ALANI SEKME ŞERİDİ (Workspace Tabs Strip) */
.workspace-tabs-strip {
  display: flex;
  gap: 24px;
  padding: 12px 20px 0;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.ws-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.ws-tab:hover {
  color: var(--text-main);
}

.ws-tab.active {
  color: var(--color-cyan);
  border-bottom-color: var(--color-cyan);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* ÇALIŞMA ALANI GÖRÜNÜM İÇERİKLERİ (Views Scroll) */
.workspace-views-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.view-panel {
  display: none;
  height: 100%;
  flex-direction: column;
}

.view-panel.active {
  display: flex;
}

/* EDİTÖR / TRANSKRİPT ALANI (Görseldeki gibi koyu, şık) */
.editor-surface {
  flex: 1;
  display: flex;
  min-height: 250px;
}

.editor-surface textarea {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.75;
  resize: none;
  outline: none;
  padding: 8px 4px;
}

.editor-surface textarea::placeholder {
  color: var(--text-muted);
}

/* NOTLAR VE ÇIKTI ALANI */
.notes-surface,
.notes-output {
  background: transparent;
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 4px 0;
}

.notes-output h2,
.notes-output h3,
.notes-output h4 {
  color: var(--color-cyan);
  margin-top: 16px;
  margin-bottom: 8px;
}

/* SLAYT / EK KAYNAK KARTI */
.slides-card,
.qa-card,
.practice-card,
.lex-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.slides-card h3,
.qa-card h3,
.practice-card h3,
.lex-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.field-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.status-sm {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 10px;
}

.status-sm strong {
  color: var(--color-cyan);
}

.slide-range-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.slide-range-label input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.slide-range-label input:focus {
  border-color: var(--color-cyan);
}

.supplementary-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

input[type="file"] {
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

input[type="file"]::file-selector-button {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  margin-right: 10px;
  transition: all 0.15s ease;
}

input[type="file"]::file-selector-button:hover {
  background: var(--bg-surface-hover);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

/* SORU-CEVAP SATIRI */
.qa-input-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.qa-input-row input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
}

.qa-input-row input:focus {
  border-color: var(--color-cyan);
}

.btn-primary-action {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

.btn-primary-action:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

.btn-close-view {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
}

.btn-close-view:hover {
  background: var(--bg-surface);
  color: var(--text-main);
}

/* ARŞİV BİLEŞENLERİ */
.archive-main-box .panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.course-item,
.record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.course-item:hover,
.record-item:hover {
  background: var(--bg-surface-hover);
  border-color: var(--color-cyan);
}

/* ========================================================
   ALT AKSİYON BARI (Workspace Footer)
   ======================================================== */
.workspace-footer {
  height: 52px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-titlebar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-center {
  flex: 1;
  text-align: center;
  padding: 0 10px;
}

.status-footer {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.footer-btn:hover {
  background: var(--bg-surface);
  border-color: var(--border-color-bright);
  color: var(--text-main);
}

.footer-pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-pill-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

.btn-neon-action {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 50%, #a855f7 100%);
  border: none;
  border-radius: 20px;
  padding: 7px 18px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
  transition: all 0.2s ease;
}

.btn-neon-action:hover:not(:disabled) {
  filter: brightness(1.15);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
}

.btn-neon-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.5);
}

/* ========================================================
   MODAL PENCERELERİ (API Key & Course Picker)
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 20, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color-bright);
  border-radius: 14px;
  padding: 24px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.2s ease;
}

.modal-box h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.modal-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.api-modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.api-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.api-tab-btn.active {
  background: var(--bg-surface);
  border-color: var(--border-color);
  color: var(--color-cyan);
}

.api-key-status-display {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.api-key-input-wrapper {
  display: flex;
  position: relative;
  align-items: center;
}

.api-key-input-wrapper input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 36px 8px 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-main);
  outline: none;
}

.api-key-input-wrapper input:focus {
  border-color: var(--color-cyan);
}

.mini-icon-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.api-key-feedback {
  margin-top: 10px;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 6px;
}

.api-key-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.api-key-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.danger-sm-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}

.danger-sm-btn:hover {
  background: rgba(239, 68, 68, 0.3);
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.modal-new-course {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.modal-new-course input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text-main);
  font-size: 0.85rem;
}

.modal-course-list {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.field input[type="text"] {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
}

.field input[type="text"]:focus {
  border-color: var(--color-cyan);
}

.link-btn {
  background: transparent;
  border: none;
  color: var(--color-cyan);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px 0;
  display: inline-block;
  margin-bottom: 10px;
}

.copy-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--text-main);
  border-color: var(--color-cyan);
}

/* Hukuk Terimleri Vurgusu (Görseldeki gibi) */
.legal-term-highlight {
  color: var(--color-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.45);
  text-underline-offset: 3px;
  font-weight: 500;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   ADMIN PANELİ STİLLERİ (Modern Dark / Light Dashboard)
   ======================================================== */
.admin-body {
  min-height: 100vh;
  background: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  display: flex;
  flex-direction: column;
}

.admin-header-bar {
  background: var(--bg-titlebar);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand-logo {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.admin-brand-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.admin-badge-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.15);
  color: var(--color-purple-light);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
}

.admin-btn-action:hover {
  background: var(--bg-surface-hover);
  border-color: var(--color-cyan);
}

.admin-btn-action.primary {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2));
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--color-cyan);
}

.admin-btn-action.primary:hover {
  border-color: var(--color-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

.admin-btn-action.danger {
  color: var(--color-danger);
}

.admin-btn-action.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: var(--color-danger);
}

.admin-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.admin-user-chip strong {
  color: var(--text-main);
}

.admin-main-content {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-flash-message {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  animation: fadeIn 0.2s ease;
}

.admin-flash-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

/* Stat Cards */
.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.admin-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.admin-metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-color-bright);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.admin-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.admin-metric-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  background: var(--bg-surface);
}

.admin-metric-val {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.admin-metric-footer {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-stat-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

.admin-stat-tag.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.admin-stat-tag.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* Quota progress bar inside card */
.admin-metric-progress {
  width: 100%;
  height: 6px;
  background: var(--bg-surface);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 2px;
}

.admin-metric-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.admin-metric-progress-bar.full {
  background: var(--color-danger);
}

/* Big Panel / Users Table */
.admin-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-panel-topbar {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-panel-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-panel-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.admin-panel-count {
  font-size: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 12px;
  color: var(--text-secondary);
}

.admin-panel-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-search-input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 7px 12px 7px 32px;
  font-size: 0.82rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  width: 220px;
  transition: border-color 0.15s ease, width 0.2s ease;
}

.admin-search-input:focus {
  border-color: var(--color-cyan);
  width: 260px;
}

.admin-search-icon {
  position: absolute;
  left: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  pointer-events: none;
}

.admin-filter-tabs {
  display: flex;
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--border-color);
}

.admin-filter-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
}

.admin-filter-tab:hover {
  color: var(--text-main);
}

.admin-filter-tab.active {
  background: var(--bg-card);
  color: var(--color-cyan);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Table */
.admin-table-container {
  overflow-x: auto;
  width: 100%;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: var(--bg-surface);
  padding: 12px 18px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-main);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

body.light-theme .admin-table tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

.admin-table tr.is-disabled td {
  opacity: 0.6;
}

.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.admin-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.admin-username {
  font-weight: 600;
  color: var(--text-main);
}

.admin-user-tags {
  display: flex;
  align-items: center;
  gap: 5px;
}

.admin-tag {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-tag.self {
  background: rgba(56, 189, 248, 0.15);
  color: var(--color-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.admin-tag.disabled {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-tag.active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.admin-num-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.admin-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-row-btn {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.12s ease;
  font-family: inherit;
}

.admin-row-btn.warn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.admin-row-btn.warn:hover {
  background: rgba(245, 158, 11, 0.22);
}

.admin-row-btn.success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.admin-row-btn.success:hover {
  background: rgba(16, 185, 129, 0.22);
}

.admin-row-btn.danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.admin-row-btn.danger:hover {
  background: rgba(239, 68, 68, 0.22);
}

.admin-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Privacy Assurance Card */
.admin-privacy-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.admin-privacy-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.admin-privacy-text h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-cyan);
  margin: 0 0 4px 0;
}

.admin-privacy-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
