.card.mobile-install-settings { max-width: 1100px; margin-bottom: 1.5rem; }
.mobile-install-settings fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.mobile-install-settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mobile-install-settings-heading h3 { margin: 5px 0 10px; }
.mobile-install-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 18px 0; }
.mobile-install-setting-box { border: 1px solid var(--border-color, #334155); border-radius: 12px; padding: 18px; }
.mobile-install-platform { display: block; font-weight: 800; font-size: 16px; margin-bottom: 14px; }
.mobile-install-toggle { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin-bottom: 14px; cursor: pointer; }
.mobile-install-toggle input { width: 18px; height: 18px; flex-shrink: 0; accent-color: #3b82f6; margin-top: 2px; }
.mobile-install-settings .form-hint { line-height: 1.7; }
.mobile-install-settings fieldset:disabled { opacity: .65; }
#mobileInstallSettingsFeedback { margin-top: 12px; }
@media (max-width: 700px) { .mobile-install-settings-grid { grid-template-columns: 1fr; } }

:root {
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #273549;
  --border-color: #334155;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --offline: #64748b;
  --radius: 12px;
}

/* Compact admin navigation without duplicating actions or forms. */
.mobile-disclosure, .mobile-label { display: none; }
.header-status, .board-tools { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.responsive-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 1.5rem; }
.responsive-card-grid > *, .settings-group-body { min-width: 0; }
#wisdomContainer { grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 1.25rem; }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* NAVBAR */
.navbar {
  background-color: #111827;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-icon {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  padding: 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.nav-brand h1 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.sub-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.live-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #1e293b;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* BUTTONS */
.btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); }

.btn-success { background-color: var(--success); color: white; }
.btn-success:hover { background-color: #059669; }

.btn-danger { background-color: var(--danger); color: white; }
.btn-danger:hover { background-color: #dc2626; }

.btn-warning { background-color: var(--warning); color: #000; }
.btn-warning:hover { background-color: #d97706; }

.btn-secondary { background-color: #334155; color: var(--text-main); }
.btn-secondary:hover { background-color: #475569; }

.btn-sm { padding: 5px 10px; font-size: 0.8rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; width: 100%; justify-content: center; }

/* CONTAINER */
.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
}

/* STATS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stat-unlocked .stat-value { color: var(--success); }
.stat-locked .stat-value { color: var(--warning); }
.stat-offline .stat-value { color: var(--offline); }

/* Every administration section stays visible without horizontal scrolling. */
.school-timetable-note { margin-bottom: 20px; padding: 18px; border: 1px solid #155e75; border-radius: 12px; background: #082f4940; line-height: 1.7; }
.school-timetable-note strong { color: #67e8f9; }
.school-timetable-note p { margin-top: 7px; color: #cbd5e1; font-size: .85rem; }
.tabs-nav-container {
  margin-bottom: 1.25rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.tabs-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
}
.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 38px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.81rem;
  line-height: 1.25;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}
.tab-btn > span:not(.tab-badge) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tab-btn:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 1px;
}
@media (max-width: 1024px) and (min-width: 601px) {
  .tabs-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .tab-btn { padding: 6px 6px; font-size: 0.74rem; gap: 5px; }
  .tab-btn .tab-icon { width: 14px; height: 14px; }
}
@media (max-width: 600px) {
  .tabs-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 6px; }
  .tabs-nav-container { padding: 0; margin-bottom: 1rem; border-radius: 10px; }
  .tab-btn { padding: 8px 8px; gap: 6px; font-size: 0.76rem; min-height: 40px; border-radius: 7px; }
  .tab-btn:last-child:nth-child(odd) { grid-column: 1 / -1; justify-content: center; }
  .tab-btn .tab-icon { width: 15px; height: 15px; }
}

.tab-btn .tab-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
  transition: transform 0.18s, opacity 0.18s;
  flex-shrink: 0;
  opacity: 0.8;
}

.tab-btn:hover {
  background: rgba(51, 65, 85, 0.55);
  border-color: rgba(148, 163, 184, 0.25);
  color: #f8fafc;
}
.tab-btn:hover .tab-icon {
  opacity: 1;
  transform: translateY(-1px);
}

.tab-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 600;
  border-color: #60a5fa;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.tab-btn.active .tab-icon {
  opacity: 1;
  stroke-width: 2.4;
}

.tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: 3px;
  line-height: 1.2;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInTab 0.25s ease;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* TOOLBAR */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  background: #111827;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--border-color);
}

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

.search-box svg {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 14px 10px 38px;
  border-radius: 10px;
  width: 280px;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background-color: #1e293b;
}

.filter-group {
  display: flex;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn svg {
  width: 14px;
  height: 14px;
}

.filter-btn:hover {
  color: var(--text-main);
  background: rgba(51, 65, 85, 0.4);
}

.filter-btn.active {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  margin-left: 4px;
}

.filter-btn.active .filter-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.filter-count-badge.badge-count-unlocked {
  background: rgba(16, 185, 129, 0.28);
  color: #34d399;
}

.filter-count-badge.badge-count-locked {
  background: rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
}

.filter-count-badge.badge-count-offline {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

.filter-btn-unlocked.active {
  background-color: #059669 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4) !important;
}

.filter-btn-locked.active {
  background-color: #0284c7 !important;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35) !important;
}

.filter-btn-offline.active {
  background-color: #475569 !important;
  box-shadow: 0 2px 8px rgba(71, 85, 105, 0.4) !important;
}

/* BOARDS GRID - SPACIOUS & MODERN (İnternet Kafe Masa Yerleşimi) */
.boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 1.5rem;
}

.board-card {
  background: linear-gradient(180deg, #1e293b 0%, #151e2e 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.board-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-color: #475569;
}

.board-card.border-online-locked {
  border-top: 3px solid #38bdf8;
}

.board-card.border-unlocked {
  border-top: 3px solid #10b981;
}

.board-card.border-offline {
  border-top: 3px solid #64748b;
}

/* ==========================================================================
   İnternet Kafe Masa / Akıllı Tahta Monitör Tasarımı
   ========================================================================== */
.board-card.pc-station {
  background: linear-gradient(180deg, #0e1726 0%, #070c16 100%);
  border: 1px solid #1e293b;
  border-radius: 18px;
  padding: 14px 16px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.board-card.pc-station.border-unlocked {
  border: 2px solid #10b981;
  background: linear-gradient(180deg, #062b1f 0%, #041711 100%);
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.32), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.board-card.pc-station.border-online-locked {
  border: 2px solid rgba(56, 189, 248, 0.65);
  background: linear-gradient(180deg, #0e1726 0%, #070c16 100%);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.16), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.board-card.pc-station.border-offline {
  border: 1px solid #334155;
  background: #090e17;
  opacity: 0.75;
}

/* 1. GENİŞ VE FERAH SINIF / MASA BAŞLIĞI */
.pc-station-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 2px 4px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}

.pc-station-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.pc-station-classroom-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.pc-station-badge-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.pc-station-class-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
  letter-spacing: -0.015em;
  word-break: break-word;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.pc-station-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}

.pc-station-badge-wrap {
  flex-shrink: 0;
  margin-top: 2px;
}

/* PC MONİTÖR KASASI */
.pc-monitor {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.pc-monitor-bezel {
  width: 100%;
  background: #141f32;
  border: 3px solid #1e293b;
  border-radius: 14px;
  padding: 7px;
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.5);
  position: relative;
}

.pc-webcam-dot {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0f172a;
  border: 1px solid #334155;
  box-shadow: inset 0 0 2px rgba(56, 189, 248, 0.4);
}

/* MONİTÖR EKRAN ALANI */
.pc-screen {
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 205px;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pc-screen.screen-active {
  background: radial-gradient(circle at 50% 15%, #064e3b 0%, #062820 50%, #061522 100%);
  border-color: rgba(52, 211, 153, 0.4);
}

.pc-screen.screen-locked {
  background: radial-gradient(circle at 50% 15%, #1e293b 0%, #0f172a 55%, #030712 100%);
  border-color: rgba(56, 189, 248, 0.3);
}

.pc-screen.screen-offline {
  background: #060911;
  border-color: #1e293b;
}

/* EKRAN ÜST ÇUBUĞU */
.pc-screen-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
}

.pc-screen-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.pc-screen-icon {
  font-size: 1rem;
}

.pc-screen-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #38bdf8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-screen-mini-chip-wrap {
  flex-shrink: 0;
}

.pc-screen-mini-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.pc-screen-mini-chip.chip-unlocked {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.pc-screen-mini-chip.chip-locked {
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.pc-screen-mini-chip.chip-offline {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* EKRAN İÇERİĞİ */
.pc-screen-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px 10px;
  text-align: center;
  min-height: 110px;
}

/* EKRAN İÇİ MERKEZ SINIF ADI ETİKETİ */
.pc-screen-room-label {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 3px 0 5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  word-break: break-word;
  max-width: 95%;
  line-height: 1.25;
}

.pc-view-unlocked .pc-screen-room-label {
  color: #a7f3d0;
  text-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

.pc-view-locked .pc-screen-room-label {
  color: #f1f5f9;
}

.pc-view-offline .pc-screen-room-label {
  color: #94a3b8;
}

/* AÇIK DERS GÖRÜNÜMÜ */
.pc-view-unlocked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
}

.pc-active-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.pc-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulse 1.6s infinite;
}

.pc-teacher-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f1f5f9;
}

.pc-teacher-name {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc-timer-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 4px 14px;
  border-radius: 12px;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
}

/* KİLİTLİ GÖRÜNÜM */
.pc-view-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #94a3b8;
}

.pc-lock-badge {
  color: #38bdf8;
  margin-bottom: 2px;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
}

.pc-lock-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #e2e8f0;
  letter-spacing: 0.5px;
}

.pc-lock-subtitle {
  font-size: 0.78rem;
  color: #64748b;
}

/* KAPALI GÖRÜNÜM */
.pc-view-offline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #475569;
}

.pc-offline-badge {
  color: #64748b;
}

.pc-offline-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: #64748b;
  letter-spacing: 0.5px;
}

.pc-offline-subtitle {
  font-size: 0.75rem;
  color: #475569;
}

/* EKRAN ALT EYLEMLERİ */
.pc-screen-actions {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pc-btn-monitor {
  flex: 1.2;
  justify-content: center;
  font-size: 0.84rem !important;
  padding: 8px 10px !important;
  border-radius: 7px !important;
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pc-btn-lock {
  flex: 1;
  justify-content: center;
  font-size: 0.86rem !important;
  padding: 8px 10px !important;
  border-radius: 7px !important;
  font-weight: 800 !important;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  border: 1px solid #ef4444 !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.45);
}

.pc-btn-lock:hover {
  background: #b91c1c !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.65);
}

.pc-btn-unlock {
  flex: 1;
  justify-content: center;
  font-size: 0.86rem !important;
  padding: 8px 10px !important;
  border-radius: 7px !important;
  font-weight: 800 !important;
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border: 1px solid #10b981 !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.45);
}

.pc-btn-unlock:hover {
  background: #047857 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.65);
}

/* MONİTÖR AYAĞI VE SEHPASI */
.pc-monitor-stand {
  width: 44px;
  height: 14px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-left: 2px solid #334155;
  border-right: 2px solid #334155;
}

.pc-monitor-base {
  width: 82%;
  height: 28px;
  background: linear-gradient(180deg, #1e293b 0%, #0b1120 100%);
  border: 1px solid #334155;
  border-radius: 6px 6px 12px 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  margin-bottom: 8px;
}

.pc-base-info {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 0.75rem;
}

.pc-power-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pc-power-led.led-online {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulse 1.8s infinite;
}

.pc-power-led.led-offline {
  background: #64748b;
}

.pc-ip-label {
  color: #94a3b8;
  font-family: monospace;
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CARD HEADER */
.board-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.board-title-group {
  flex: 1;
  min-width: 0;
}

.board-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.board-submeta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.classroom-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.id-tag {
  background: rgba(51, 65, 85, 0.6);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: monospace;
}

.lgs-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

/* BADGES WITH GLOWING DOT */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.badge-online-locked {
  background-color: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.badge-online-locked .badge-dot {
  background-color: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse 1.8s infinite;
}

.badge-unlocked {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.2);
}

.badge-unlocked .badge-dot {
  background-color: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulse 1.8s infinite;
}

.badge-offline {
  background-color: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.badge-offline .badge-dot {
  background-color: #64748b;
}

/* SPACIOUS BOARD DETAILS BOX */
.board-card-body {
  margin: 0.5rem 0 1.25rem 0;
  background-color: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(51, 65, 85, 0.6);
  padding: 1.1rem 1.25rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.board-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  gap: 0.5rem;
}

.detail-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.detail-label svg {
  color: #94a3b8;
}

.detail-value {
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-indicator {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-online {
  background-color: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.status-unlocked {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-offline {
  background-color: #64748b;
}

.status-text-online {
  color: #38bdf8;
  font-weight: 700;
}

.status-text-unlocked {
  color: #34d399;
  font-weight: 700;
}

.status-text-offline {
  color: #94a3b8;
  font-weight: 600;
}

.lesson-state.lesson-active {
  color: #34d399;
  font-weight: 700;
}

.lesson-state.lesson-locked {
  color: #cbd5e1;
  font-weight: 600;
}

.pin-code-badge {
  background: rgba(30, 41, 59, 0.8);
  color: #f1f5f9;
  border: 1px solid rgba(71, 85, 105, 0.6);
  font-family: monospace;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 6px;
}

.pin-code-badge.is-secure {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(20, 83, 45, 0.28);
  font-family: inherit;
  letter-spacing: 0;
}

.pin-code-badge.needs-setup {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(127, 29, 29, 0.28);
  font-family: inherit;
  letter-spacing: 0;
}

/* 2-TIER SPACIOUS BOARD ACTIONS */
.board-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.primary-action-row {
  display: flex;
  width: 100%;
}

.primary-action-row .btn {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
}

.btn-unlock-primary {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-unlock-primary:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-1px);
}

.btn-lock-primary {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.btn-lock-primary:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  transform: translateY(-1px);
}

.secondary-action-panel {
  padding: 10px;
  background: rgba(8, 15, 30, 0.5);
  border: 1px solid rgba(71, 85, 105, 0.45);
  border-radius: 11px;
}

.action-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.action-connectivity {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.action-connectivity.is-online {
  color: #34d399;
}

.action-connectivity.is-offline {
  color: #94a3b8;
}

.secondary-action-row,
.danger-action-row {
  display: grid;
  gap: 7px;
}

.secondary-action-row {
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
}

.danger-action-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(71, 85, 105, 0.35);
}

.btn-action-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  border-radius: 8px;
  background: #1e293b;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-action-item svg {
  flex: 0 0 auto;
}

.btn-action-item span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-action-item:hover {
  background: #334155;
  border-color: #64748b;
  transform: translateY(-1px);
}

.btn-action-ota {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.35);
}

.btn-action-ota:hover {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.22);
  border-color: #3b82f6;
}

.btn-action-message {
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.3);
}

.btn-action-message:hover {
  color: #ffffff;
  background: rgba(8, 145, 178, 0.2);
  border-color: #22d3ee;
}

.btn-action-monitor {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(20, 83, 45, 0.22);
}

.btn-action-monitor:hover {
  color: #ffffff;
  background: rgba(22, 163, 74, 0.26);
  border-color: #22c55e;
}

.btn-action-edit {
  color: #cbd5e1;
}

.btn-action-power {
  background: rgba(120, 53, 15, 0.22);
  border-color: rgba(245, 158, 11, 0.42);
  color: #fbbf24;
}

.btn-action-power:hover {
  background: rgba(180, 83, 9, 0.3);
  border-color: #f59e0b;
  color: #ffffff;
}

.btn-action-delete {
  background: rgba(127, 29, 29, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.btn-action-delete:hover {
  background: rgba(185, 28, 28, 0.3);
  border-color: #ef4444;
  color: #ffffff;
}

/* TABLES */
.table-responsive {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th, .data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background-color: rgba(15, 23, 42, 0.5);
  color: var(--text-muted);
  font-weight: 600;
}

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

/* CARDS & FORMS */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 650px;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  background-color: #0f172a;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.usb-helper-panel {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #334155;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.usb-helper-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.usb-helper-status {
  margin-top: 0.3rem;
  color: #94a3b8;
  font-size: 0.86rem;
}

.usb-helper-status.is-ready { color: #4ade80; }
.usb-helper-status.is-waiting { color: #fbbf24; }
.usb-helper-status.is-error { color: #f87171; }

.usb-helper-help {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #7f1d1d;
  border-radius: 7px;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.18);
  font-size: 0.85rem;
  line-height: 1.55;
}

.usb-helper-help a {
  color: #7dd3fc;
  font-weight: 700;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

/* MODALS */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-backdrop.show {
  display: flex;
}

.modal {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.modal > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.modal .modal-body {
  min-height: 0;
  overflow-y: auto;
}

.modal-header,
.modal-footer {
  flex-shrink: 0;
}

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

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  background-color: rgba(15, 23, 42, 0.5);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.screen-monitor-modal {
  width: min(94vw, 1100px);
  max-width: 1100px;
}

.screen-monitor-header h3 {
  margin: 0 0 0.3rem;
}

.screen-monitor-status {
  color: #94a3b8;
  font-size: 0.82rem;
}

.screen-monitor-body {
  padding: 1rem;
}

.screen-monitor-viewer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 68vh;
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #020617;
}

.screen-monitor-viewer canvas {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-monitor-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #94a3b8;
  text-align: center;
}

.screen-monitor-privacy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  margin-top: 0.8rem;
  color: #cbd5e1;
  font-size: 0.78rem;
}

.screen-monitor-footer {
  align-items: center;
  justify-content: space-between;
  color: #cbd5e1;
}

#screenMonitorCountdown {
  color: #4ade80;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .screen-monitor-modal {
    width: 98vw;
  }

  .screen-monitor-body {
    padding: 0.6rem;
  }

  .screen-monitor-privacy {
    display: grid;
  }
}

/* BADGES FOR DUYURULAR / AYET / HADİS / SÖZ */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-online-locked {
  background-color: rgba(14, 165, 233, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}
.badge-unlocked {
  background-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}
.badge-locked {
  background-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
}
.badge-offline {
  background-color: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.4);
}
.badge-ayet {
  background-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.5);
}
.badge-hadis {
  background-color: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.5);
}
.badge-ticker {
  background-color: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.5);
}
.badge-card {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.5);
}

/* AUTHENTICATION & LOGIN SCREEN */
.login-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 30%, #1e293b 0%, #070d19 100%);
  padding: 1.5rem;
}

.login-card {
  background: #131d33;
  border: 1px solid #334155;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.login-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  object-fit: cover;
  background: #064e3b;
  display: block;
}

.login-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.login-sub {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1.75rem;
}

.login-err-msg {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: none;
  text-align: left;
}

.user-badge-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e293b;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- 7 GÜNLÜK DERS PLANI VE ZİL SAATLERİ SEKMELERİ --- */
.schedule-days-bar {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
  gap: 10px !important;
  margin: 1.25rem 0 1rem 0 !important;
  padding: 12px !important;
  background: #0f172a !important;
  border: 1px solid #334155 !important;
  border-radius: 12px !important;
}
.btn-schedule-day {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border: 2px solid #334155 !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  user-select: none !important;
}
.btn-schedule-day * {
  pointer-events: none !important;
}
.btn-schedule-day:hover {
  background: #334155 !important;
  color: #38bdf8 !important;
  border-color: #0284c7 !important;
  transform: translateY(-2px) !important;
}
.btn-schedule-day.active {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.45) !important;
  transform: translateY(-2px) !important;
}
.day-lesson-count {
  display: inline-block !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.7) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.btn-schedule-day.active .day-lesson-count {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}
.schedule-day-banner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95)) !important;
  padding: 16px 20px !important;
  border-radius: 10px !important;
  border: 1px solid #334155 !important;
  margin-bottom: 1.25rem !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
}
.btn-header-monitor {
  background: linear-gradient(135deg, #0284c7, #0d9488) !important;
  color: #ffffff !important;
  border: 1px solid #38bdf8 !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3) !important;
}
.btn-header-monitor:hover {
  background: linear-gradient(135deg, #0369a1, #0f766e) !important;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.5) !important;
  transform: translateY(-1px) !important;
}
.btn-card-monitor-prominent {
  background: linear-gradient(135deg, #0284c7, #0d9488) !important;
  color: #ffffff !important;
  border: 1px solid #38bdf8 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35) !important;
}
.btn-card-monitor-prominent:hover {
  background: linear-gradient(135deg, #0369a1, #0f766e) !important;
  border-color: #7dd3fc !important;
}
.quick-screen-board-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  gap: 12px;
}
.quick-screen-board-card:hover {
  border-color: #38bdf8;
  background: #243447;
}
.btn-action-monitor {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
}
.btn-action-monitor:hover {
  background: rgba(56, 189, 248, 0.25) !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
}
.btn-action-monitor.is-disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
}
.schedule-day-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #334155;
  flex-wrap: wrap;
}
.day-badge {
  font-weight: 700;
  color: #38bdf8;
  font-size: 0.95rem;
}

/* --- CANLI EKRAN UZAKTAN KONTROL ARAÇ ÇUBUĞU --- */
.screen-control-bar {
  background: #0f172a;
  border-bottom: 1px solid #334155;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.control-group-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.control-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 4px 10px;
  border-radius: 20px;
}
.control-toggle-pill input {
  cursor: pointer;
}
.control-hint-text {
  font-size: 0.78rem;
  color: #94a3b8;
}
.control-group-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.btn-ctrl {
  background: #1e293b;
  color: #f1f5f9;
  border: 1px solid #475569;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-ctrl:hover {
  background: #334155;
  border-color: #38bdf8;
  color: #38bdf8;
}
.btn-ctrl-warning {
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}
.btn-ctrl-warning:hover {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}
.btn-ctrl-success {
  border-color: rgba(16, 185, 129, 0.5);
  color: #34d399;
}
.btn-ctrl-success:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}
.ctrl-btn-group {
  display: inline-flex;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #475569;
}
.ctrl-btn-group .btn-ctrl {
  border: none;
  border-radius: 0;
  border-right: 1px solid #475569;
}
.ctrl-btn-group .btn-ctrl:last-child {
  border-right: none;
}
.screen-footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.boards-live-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  margin-bottom: 18px;
  border: 1px solid #334155;
  border-radius: 14px;
  background: #111827;
}
.boards-live-toolbar strong { display: block; color: #f8fafc; margin-bottom: 6px; }
#boardsRefreshStatus { display: block; color: #7dd3fc; font-size: 0.875rem; line-height: 1.6; }
#boardsRefreshStatus.is-stale { color: #fbbf24; }
#boardsRefreshButton { min-height: 44px; min-width: 166px; }
#pardusSetupVersion { font-size: 0.8em; opacity: 0.85; }
.usb-download-row { margin: 12px 0 20px; }
.usb-download-row a { white-space: normal; }
@media (max-width: 640px) {
  .filter-group { flex-wrap: wrap; }
  .search-box, .search-box input { width: 100%; min-width: 0; }
  .board-card-header, .board-detail-row { flex-wrap: wrap; }
  .board-detail-row { gap: 8px; }
  .detail-value { max-width: 100%; overflow-wrap: anywhere; }
}

/* Canlı Tıklama Efekti */
.screen-monitor-viewer.interactive-enabled canvas {
  cursor: crosshair !important;
}
.click-feedback-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.click-ripple {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(56, 189, 248, 0.4);
  border: 2px solid #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: clickRippleAnim 0.6s ease-out forwards;
}
@keyframes clickRippleAnim {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

.broadcast-modal { width: min(94vw, 960px); max-width: 960px; }
.broadcast-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.broadcast-fields, .broadcast-preview-area { min-width: 0; }
.broadcast-hint { color: #94a3b8; font-size: .875rem; line-height: 1.6; margin-bottom: 18px; }
.broadcast-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.broadcast-preview-area { background: #070d19; padding: 22px; border-radius: 12px; }
.broadcast-preview { --notice-accent: #38bdf8; background: #101e32; border: 1px solid var(--notice-accent); border-top: 5px solid var(--notice-accent); border-radius: 12px; padding: 22px; margin: 20px 0; overflow: hidden; }
.broadcast-preview[data-style="important"] { --notice-accent: #fbbf24; }
.broadcast-preview[data-style="urgent"] { --notice-accent: #fb7185; }
.broadcast-preview-tag { color: var(--notice-accent); font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.broadcast-preview h4 { font-size: 1.5rem; color: #f8fafc; line-height: 1.3; margin: 18px 0 12px; overflow-wrap: anywhere; }
.broadcast-preview p { font-size: 1rem; color: #e2e8f0; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 280px; overflow: auto; }
.broadcast-preview-footer { display: flex; justify-content: space-between; color: #94a3b8; font-size: .8rem; margin-top: 22px; }
.broadcast-preview-progress { height: 3px; background: var(--notice-accent); margin-top: 16px; }
@media (max-width: 720px) { .broadcast-layout { grid-template-columns: 1fr; } }
/* School bell alignment and lock-screen schedule. */
.bell-clock-card { display:grid; grid-template-columns:1.1fr 1fr; gap:24px; background:linear-gradient(125deg,#10243a,#0f172a); border:1px solid #22566b; border-radius:14px; padding:24px; margin:18px 0 24px; }
.bell-clock-card h3 { color:#7dd3fc; margin-bottom:10px; }
.bell-clock-card p { line-height:1.6; margin:10px 0; }
.bell-clock-fields { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:10px; }
.bell-clock-fields label { display:block; margin-bottom:7px; color:#cbd5e1; }
.bell-clock-preview { display:flex; flex-wrap:wrap; gap:14px 28px; margin-top:18px; }
.bell-clock-preview span { display:grid; gap:4px; color:#94a3b8; font-size:.85rem; }
.bell-clock-preview strong { font-size:1.8rem; color:#e2e8f0; font-variant-numeric:tabular-nums; }
#bellSchoolTime { color:#5eead4; }
@media (max-width:800px) { .bell-clock-card { grid-template-columns:1fr; padding:16px; } }

.ramadan-card { max-width:1100px; margin-bottom:1.5rem; border:1px solid #526047; }
.ramadan-heading { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; margin-bottom:12px; }
.ramadan-heading h3 { color:#f4d898; margin:6px 0 0; font-size:1.5rem; }
.ramadan-eyebrow { color:#c4b486; font-size:.72rem; letter-spacing:.13em; font-weight:700; }
.ramadan-status { border-radius:20px; padding:7px 13px; color:#cbd5e1; background:#243449; font-size:.82rem; }
.ramadan-status[data-state="active"] { background:#123c2e; color:#a7f3d0; }
.ramadan-status[data-state="scheduled"] { background:#3f341b; color:#fde68a; }
.ramadan-layout { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:24px; }
.ramadan-layout > * { min-width:0; }
.ramadan-card fieldset { min-width:0; border:0; padding:0; margin:0; }
.ramadan-card fieldset:disabled { opacity:.55; }
.ramadan-card [hidden] { display:none !important; }
.ramadan-toggle { display:flex; align-items:center; gap:10px; margin-bottom:20px; line-height:1.5; cursor:pointer; color:#e2e8f0; }
.ramadan-toggle input { width:19px; height:19px; accent-color:#d8b86f; flex-shrink:0; }
.ramadan-dates { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ramadan-dates input { min-width:0; }
.ramadan-card .form-hint { display:block; line-height:1.65; }
.ramadan-date-hint { margin:-4px 0 20px; }
#ramadanFeedback { margin:14px 0 8px; }
.ramadan-preview-area { border-radius:14px; background:#091c1b; padding:20px; align-self:start; }
.ramadan-preview { position:relative; border:1px solid #536346; border-radius:10px; overflow:hidden; background:#092922; margin:16px 0; }
.ramadan-preview svg { position:absolute; top:0; left:0; display:block; width:100%; height:240px; }
.ramadan-preview-copy { position:relative; padding:128px 6% 32px; min-height:240px; text-align:center; display:grid; align-content:start; gap:10px; }
.ramadan-preview-copy strong { color:#ffedbb; font-size:clamp(1.1rem,2vw,1.7rem); line-height:1.25; overflow-wrap:anywhere; }
.ramadan-preview-copy span { color:#c8d7c6; font-size:.85rem; line-height:1.5; overflow-wrap:anywhere; }
.ramadan-preview[data-gentle="true"] .ramadan-light { animation:ramadanLight 9s ease-in-out infinite; }
@keyframes ramadanLight { 0%,100% { opacity:1; } 50% { opacity:.7; } }
@media (prefers-reduced-motion:reduce) { .ramadan-preview .ramadan-light { animation:none !important; } }
@media (max-width:900px) { .ramadan-layout { grid-template-columns:1fr; } }
@media (max-width:480px) { .ramadan-dates { grid-template-columns:1fr; gap:0; } .ramadan-preview-area { padding:12px; } }
.removal-card { max-width:1100px; padding:24px; margin-bottom:20px; }
.removal-card p { line-height:1.65; margin:12px 0; }
.removal-heading { display:flex; flex-wrap:wrap; gap:16px; align-items:center; justify-content:space-between; }
.removal-heading h2 { margin:8px 0; }
.removal-notice { padding:16px; margin:20px 0; border:1px solid #b45309; border-radius:12px; background:#332516; color:#fde68a; line-height:1.6; }
.removal-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.removal-card label { display:flex; flex-direction:column; gap:8px; min-width:0; }
.removal-card input,.removal-card select { width:100%; min-width:0; padding:12px; border:1px solid #475569; border-radius:8px; background:#0f172a; color:#e2e8f0; font:inherit; }
.removal-confirm-label { margin:20px 0; }
.removal-card .btn { white-space:normal; }
.removal-job { border-top:1px solid #334155; padding:20px 0; overflow-wrap:anywhere; }
.removal-state { display:inline-block; margin:8px 12px; padding:6px 10px; border-radius:20px; background:#253449; color:#dbeafe; }
.removal-state[data-state="COMPLETED"] { background:#14532d; color:#dcfce7; }
.removal-state[data-state="FAILED"],.removal-state[data-state="UNKNOWN"] { background:#7f1d1d; color:#fee2e2; }
@media (max-width:650px) { .removal-grid { grid-template-columns:1fr; } .removal-card { padding:16px; } .removal-state { margin-left:0; } }

@media (max-width: 900px) {
  .mobile-disclosure { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 10px; background: #1e293b; color: #e2e8f0; font-size: .85rem; font-weight: 600; cursor: pointer; text-align: left; }
  .mobile-disclosure:focus-visible, .btn:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }
  .disclosure-chevron { flex-shrink: 0; transition: transform .15s; }
  [aria-expanded="true"] > .disclosure-chevron, [aria-expanded="true"] .section-menu-hint .disclosure-chevron { transform: rotate(180deg); }
  .mobile-panel:not(.is-open) { display: none; }
  .navbar { padding: 14px 16px; gap: 12px; }
  .nav-brand { width: 100%; gap: 10px; min-width: 0; }
  .nav-brand > div:last-child { min-width: 0; }
  .nav-brand h1 { font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
  .brand-icon { flex-shrink: 0; padding: 7px; }
  .brand-icon svg { width: 24px; height: 24px; }
  .sub-title { display: block; font-size: .7rem; line-height: 1.5; margin-top: 3px; }
  .header-status { width: 100%; justify-content: space-between; }
  .live-status-badge { font-size: .72rem; padding: 7px 10px; gap: 6px; }
  .pulse-dot { width: 7px; height: 7px; flex-shrink: 0; }
  .header-menu-toggle { min-height: 40px; padding: 8px 12px; }
  .header-actions { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding-top: 12px; border-top: 1px solid var(--border-color); }
  .header-actions > a { grid-column: 1 / -1; }
  .header-actions .btn { justify-content: center; text-decoration: none; }
  .container { padding: 14px; }
  .dashboard-stats { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; margin-bottom: 14px; }
  .dashboard-stats .stat-card { grid-column: span 2; padding: 10px 12px; min-width: 0; border-top-width: 1px !important; }
  .dashboard-stats .stat-card:nth-last-child(-n+2) { grid-column: span 3; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .dashboard-stats .stat-label { font-size: .69rem; line-height: 1.4; margin-bottom: 5px; }
  .dashboard-stats .stat-value { font-size: 1.55rem; letter-spacing: -.5px; }
  .dashboard-stats .stat-sub { display: none; }
  .dashboard-stats .stat-card:nth-last-child(-n+2) .stat-label { margin: 0; }
  .tabs-nav-container { padding: 0; margin-bottom: 14px; border-radius: 12px; box-shadow: none; }
  .section-menu-toggle { width: 100%; border: 0; background: #17243a; padding: 12px 14px; }
  .section-menu-toggle small { display: block; color: #94a3b8; font-size: .6rem; letter-spacing: .08em; margin-bottom: 4px; }
  .section-menu-toggle strong { font-size: .95rem; }
  .section-menu-hint { display: flex; gap: 8px; align-items: center; color: #7dd3fc; font-size: .75rem; }
  .tabs-nav { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 6px; gap: 5px; }
  .tab-btn { min-height: 38px; padding: 7px 8px; font-size: .76rem; gap: 6px; border-radius: 7px; }
  .toolbar { padding: 12px; gap: 10px; margin-bottom: 14px; }
  .toolbar > * { min-width: 0; max-width: 100%; }
  .toolbar h3 { font-size: 1rem; line-height: 1.45; }
  .toolbar .text-muted { line-height: 1.6; margin-top: 6px; }
  #boardsTab > .toolbar { display: grid; grid-template-columns: minmax(0,1fr); }
  .search-box, .search-box input { width: 100%; min-width: 0; }
  #boardsTab .filter-group { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px; }
  .filter-btn { min-height: 42px; padding: 6px 4px; font-size: .72rem; justify-content: center; }
  #boardsTab .filter-btn svg { display: none; }
  .board-tools-toggle { border: 0; background: transparent; color: #94a3b8; min-height: 36px; padding: 6px; }
  .board-tools { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .boards-live-toolbar { padding: 0; border: 0; background: none; gap: 8px; flex-wrap: nowrap; margin-bottom: 12px; }
  .boards-live-toolbar > div { min-width: 0; }
  .boards-live-toolbar strong { font-size: .88rem; margin-bottom: 3px; }
  #boardsRefreshStatus { font-size: .65rem; line-height: 1.5; }
  #boardsRefreshButton { min-width: 0; flex-shrink: 0; padding: 8px; font-size: .7rem; }
  .boards-grid { gap: 12px; }
  .board-card { padding: 14px; box-shadow: none; }
  .board-card:hover { transform: none; }
  .board-card-header { flex-direction: column; align-items: stretch; gap: 9px; margin-bottom: 12px; }
  .board-name { font-size: 1.1rem; white-space: normal; overflow-wrap: anywhere; }
  .board-submeta { gap: 5px 8px; }
  .classroom-tag, .id-tag { font-size: .72rem; overflow-wrap: anywhere; }
  .board-card-header .badge { align-self: flex-start; white-space: normal; font-size: .69rem; box-shadow: none; }
  .board-card:not(.details-expanded) .board-card-body, .board-card:not(.details-expanded) .secondary-action-panel { display: none; }
  .board-card-body { padding: 10px; margin: 0 0 12px; gap: 10px; }
  .board-detail-row { font-size: .8rem; flex-wrap: wrap; }
  .detail-value { white-space: normal; text-align: left; overflow-wrap: anywhere; }
  .board-card-actions { gap: 8px; }
  .board-card-live-monitor-row { margin-bottom: 0 !important; }
  .board-card .desktop-label { display: none; }
  .board-card .mobile-label { display: inline; }
  .board-expand-toggle { width: 100%; background: transparent; font-size: .75rem; color: #94a3b8; }
  .board-card .btn { font-size: .85rem !important; }
  .btn { min-height: 44px; max-width: 100%; white-space: normal; line-height: 1.4; font-size: .82rem; }
  .btn svg { flex-shrink: 0; }
  .card { padding: 16px; min-width: 0; overflow-wrap: anywhere; }
  .card h3 { font-size: 1.05rem; line-height: 1.4; }
  .responsive-card-grid { gap: 14px; }
  .form-control, .search-box input { min-width: 0; font-size: 16px; }
  .form-hint { line-height: 1.6; }
  .settings-group { padding: 0 !important; margin-bottom: 12px !important; }
  .settings-group-toggle { width: 100%; min-height: 58px; border: 0; background: transparent; padding: 16px; font-size: .95rem; }
  .settings-group-body { padding: 0 16px 16px; }
  .settings-grid { gap: 0; }
  .usb-helper-heading { flex-wrap: wrap; gap: 10px; }
  .modal { width: calc(100% - 20px); }
  .modal-header, .modal-body, .modal-footer { padding: 14px; }
  .modal-header { gap: 10px; }
  .modal-header h3 { font-size: 1rem; }
  .close-btn { min-width: 44px; min-height: 44px; flex-shrink: 0; }
  .modal-footer { flex-wrap: wrap; gap: 8px; }
  .modal-footer > .btn { flex: 1; justify-content: center; }
  .app-footer { padding: 20px 14px; font-size: .75rem; text-align: center; }
}
@media (max-width: 600px) {
  .mobile-record-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mobile-record-table, .mobile-record-table tbody, .mobile-record-table tr { display: block; width: 100%; }
  .mobile-record-table tr { padding: 12px; border-bottom: 1px solid var(--border-color); }
  .mobile-record-table th, .mobile-record-table td { border: 0; }
  .mobile-record-table td { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 14px; padding: 7px 0; min-width: 0; overflow-wrap: anywhere; font-size: .83rem; }
  .mobile-record-table td[data-label]::before { content: attr(data-label); flex: 0 0 100%; font-size: .68rem; color: #94a3b8; }
  .mobile-record-table td > * { max-width: 100%; min-width: 0; flex-wrap: wrap; }
  .mobile-record-table td[colspan] { justify-content: center; padding: 16px 0; }
  .bell-clock-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bell-clock-fields > :first-child { grid-column: 1 / -1; }
  .stats-grid:not(.dashboard-stats) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .stats-grid:not(.dashboard-stats) .stat-card { padding: 12px; min-width: 0; }
  .stats-grid:not(.dashboard-stats) .stat-value { font-size: 1.5rem; overflow-wrap: anywhere; }
  .settings-group-body div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  .board-tools { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .tab-content.active, .pulse-dot, .badge-dot { animation: none; }
  .disclosure-chevron { transition: none; }
}

.prayer-chip {
  background: #064e3b;
  color: #ecfdf5;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  border: 1px solid #059669;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.prayer-chip b {
  color: #6ee7b7;
}
.prayer-chip.active-vakit {
  background: #047857;
  border-color: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}


/* ==========================================================================
   2026-10 ARAYÜZ YENİLEMESİ
   Kenar çubuğu + üst çubuk yerleşimi, sade düğmeler, yeni giriş ekranı.
   Bu katman önceki kuralların üzerine yazılır; kimlikler ve JS aynı kalır.
   ========================================================================== */
:root {
  --bg-main: #0b1120;
  --bg-side: #080d19;
  --bg-card: #131c2e;
  --bg-card-hover: #1a2540;
  --border-color: #25324a;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --state-open: #34d399;
  --state-locked: #38bdf8;
  --state-off: #64748b;
  --sidebar-w: 264px;
}

a.btn { text-decoration: none; }
.btn { border: 1px solid transparent; line-height: 1.2; }
.btn svg { flex-shrink: 0; }
.btn:focus-visible, .tab-btn:focus-visible, .filter-btn:focus-visible,
.form-control:focus-visible, .search-box input:focus-visible, a:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-ghost { background: transparent; color: #cbd5e1; border-color: var(--border-color); }
.btn-ghost:hover { background: var(--bg-card-hover); color: #fff; border-color: #3b4c6b; }
.form-control:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, .22); }
.toolbar { background: var(--bg-card); }
@media (min-width: 901px) { .boards-live-toolbar { background: var(--bg-card); } }

/* ---- Üst çubuk ---- */
.navbar { background: var(--bg-main); }
.page-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; margin-right: 6px; }
.live-status-badge { background: transparent; padding: 5px 12px; font-size: .8rem; color: #cbd5e1; }
.pulse-dot { width: 8px; height: 8px; box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.header-sep { width: 1px; align-self: stretch; background: var(--border-color); margin: 4px 2px; }
.header-actions .btn { min-height: 36px; padding: 7px 12px; font-size: .84rem; }
.header-actions .btn-danger { background: rgba(239, 68, 68, .12); color: #fca5a5; border-color: rgba(239, 68, 68, .4); }
.header-actions .btn-danger:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.header-actions .btn-success { background: rgba(16, 185, 129, .12); color: #6ee7b7; border-color: rgba(16, 185, 129, .4); }
.header-actions .btn-success:hover { background: #059669; color: #fff; border-color: #059669; }
.user-badge-header { background: transparent; border: 0; padding: 6px 4px; color: #cbd5e1; }

/* ---- Marka ---- */
.brand-icon { position: relative; width: 40px; height: 40px; padding: 0; flex-shrink: 0; overflow: hidden; background: #1d4ed8; }
.brand-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.nav-brand h1 { font-size: .98rem; line-height: 1.3; letter-spacing: -.01em; }
.sub-title { font-size: .76rem; }
.sidebar-foot { color: #64748b; font-size: .74rem; }

/* ---- Özet şeridi ---- */
.stat-locked .stat-value { color: var(--state-locked); }
.stat-value { font-variant-numeric: tabular-nums; }
.stat-unlocked .stat-label::before, .stat-locked .stat-label::before, .stat-offline .stat-label::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--state-open);
}
.stat-locked .stat-label::before { background: var(--state-locked); }
.stat-offline .stat-label::before { background: var(--state-off); }

@media (min-width: 901px) {
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-w);
    display: flex; flex-direction: column; gap: 22px;
    padding: 20px 14px 16px; overflow-y: auto;
    background: var(--bg-side); border-right: 1px solid var(--border-color);
  }
  .sidebar .nav-brand { gap: 12px; padding: 0 6px; align-items: flex-start; }
  .sidebar-foot { margin-top: auto; padding: 0 12px; }
  .app-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }

  .tabs-nav-container { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .tabs-nav { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tab-btn {
    justify-content: flex-start; text-align: left; gap: 11px;
    min-height: 40px; padding: 9px 12px; font-size: .875rem;
    background: none; border-color: transparent; color: #a3b1c9;
  }
  .tab-btn .tab-icon { width: 17px; height: 17px; }
  .tab-btn:hover { background: rgba(148, 163, 184, .09); border-color: transparent; color: #fff; }
  .tab-btn:hover .tab-icon { transform: none; }
  .tab-btn.active {
    background: rgba(59, 130, 246, .16); border-color: transparent; color: #fff;
    box-shadow: inset 3px 0 0 var(--primary);
  }
  .tab-badge { margin-left: auto; background: rgba(148, 163, 184, .18); color: #e2e8f0; }

  .navbar {
    position: sticky; top: 0; z-index: 20;
    padding: 12px 24px; gap: 10px 16px;
    background: rgba(11, 17, 32, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .header-actions { gap: 8px; }
  .container { max-width: 1480px; padding: 20px 24px 32px; }

  .dashboard-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-bottom: 20px;
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius);
  }
  .dashboard-stats .stat-card { background: none; border: 0; border-radius: 0; padding: 14px 20px; }
  .dashboard-stats .stat-card + .stat-card { border-left: 1px solid var(--border-color); }
  .dashboard-stats .stat-card:hover { transform: none; }
  .dashboard-stats .stat-label { margin-bottom: 4px; font-size: .8rem; }
  .dashboard-stats .stat-value { font-size: 1.7rem; line-height: 1.15; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  :root { --sidebar-w: 224px; }
  .tab-btn { font-size: .82rem; padding: 9px 10px; gap: 9px; }
  .dashboard-stats .stat-sub { display: none; }
}

@media (max-width: 900px) {
  .sidebar { padding: 14px 16px 0; display: grid; gap: 12px; }
  .sidebar .nav-brand { width: auto; }
  .sidebar .tabs-nav-container { margin-bottom: 0; border: 1px solid var(--border-color); overflow: hidden; }
  .sidebar-foot, .page-title, .header-sep { display: none; }
  .navbar { border-bottom: 0; padding: 12px 16px 0; }
  .header-actions .user-badge-header { justify-content: center; border: 1px solid var(--border-color); border-radius: 8px; }
}

/* ---- Giriş ekranı ---- */
.login-overlay { align-items: stretch; padding: 0; background: var(--bg-main); }
.login-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(400px, .85fr); width: 100%; min-height: 100vh; }
.login-aside {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 44px clamp(28px, 5vw, 72px);
  background: var(--bg-side); border-right: 1px solid var(--border-color);
}
.login-school { display: flex; align-items: center; gap: 14px; }
.login-school strong { display: block; font-size: 1.05rem; line-height: 1.35; }
.login-school span { display: block; color: var(--text-muted); font-size: .85rem; margin-top: 2px; }
.login-logo { width: 52px; height: 52px; margin: 0; border: 0; border-radius: 12px; background: #fff; flex-shrink: 0; }
.login-boards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); max-width: 560px; }
.lb { position: relative; aspect-ratio: 16 / 10; border-radius: 6px; border: 1.5px solid #24334f; background: #0f182b; }
.lb::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 34%; height: 3px; border-radius: 2px; transform: translateX(-50%); background: #24334f; }
.lb-k { border-color: rgba(56, 189, 248, .45); }
.lb-x { border-style: dashed; opacity: .55; }
.lb-o { border-color: var(--state-open); background: linear-gradient(160deg, #134e4a, #0f766e); box-shadow: 0 0 22px rgba(52, 211, 153, .22); animation: lb-on .7s ease-out both; }
.lb-o:nth-child(3n) { animation-delay: .25s; }
.lb-o:nth-child(4n) { animation-delay: .5s; }
.lb-o:nth-child(5n) { animation-delay: .8s; }
@keyframes lb-on {
  from { border-color: rgba(56, 189, 248, .45); background: #0f182b; box-shadow: none; }
}
.login-aside-note { max-width: 22ch; font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 600; line-height: 1.3; letter-spacing: -.015em; color: #e2e8f0; }

.login-card {
  align-self: center; justify-self: center; width: 100%; max-width: 440px;
  padding: 40px 32px; text-align: left;
  background: none; border: 0; border-radius: 0; box-shadow: none;
}
.login-title { font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: 6px; }
.login-sub { margin-bottom: 26px; line-height: 1.5; }
.login-card .form-group { margin-bottom: 18px; }
.login-card label { color: #cbd5e1; }
.login-card .form-control { min-height: 46px; font-size: 1rem; background: #0f182b; }
.login-password { position: relative; }
.login-password .form-control { padding-right: 78px; }
.login-password-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  min-height: 34px; padding: 0 10px; border: 0; border-radius: 6px;
  background: none; color: #93c5fd; font-size: .82rem; font-weight: 600; cursor: pointer;
}
.login-password-toggle:hover { background: rgba(147, 197, 253, .1); }
.login-password-toggle:focus-visible { outline: 2px solid #93c5fd; }
.login-caps { display: block; margin-top: 7px; color: #fbbf24; font-size: .8rem; font-weight: 600; }
.login-caps[hidden] { display: none; }
.login-submit { width: 100%; min-height: 46px; justify-content: center; font-size: 1rem; margin-top: 6px; }
.login-err-msg { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .5); line-height: 1.5; }
.login-note { margin-top: 18px; color: #7c8aa3; font-size: .82rem; line-height: 1.5; }
.login-teacher-link { display: inline-block; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-color); width: 100%; color: #93c5fd; font-size: .88rem; font-weight: 600; text-decoration: none; }
.login-teacher-link:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .login-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-aside { padding: 22px 20px; gap: 18px; border-right: 0; border-bottom: 1px solid var(--border-color); }
  .login-aside-note { display: none; }
  .login-boards { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; max-width: none; }
  .lb { border-width: 1px; border-radius: 3px; }
  .lb::after { display: none; }
  .login-card { align-self: start; padding: 28px 20px 32px; }
  .login-card .form-control { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-o { animation: none; }
}
