/* ===== GENEL ===== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f1f5f9;
}

header {
  padding: 20px;
  background: #0f172a;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== LOGIN ===== */
.login-body {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background: #020617;
}

.login-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  width: 320px;
  text-align: center;
}

.login-box input,
.login-box button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
}

/* ===== DASHBOARD ===== */
.dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px;
}

.card {
  border-radius: 14px;
  padding: 20px;
  color: white;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 🎯 Odak kartı */
.focus-card {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  font-size: 14px;
  font-weight: 600;
  gap: 6px;
}


.bekleyen { background: #2563eb; }
.devam { background: #16a34a; }
.gecikmis { background: #dc2626; }
.tamam { background: #334155; }

/* ===== BUTONLAR ===== */
button {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 6px 16px rgba(37,99,235,.25);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37,99,235,.35);
}

.filters button {
  background: #e5e7eb;
  color: #1f2937;
  box-shadow: none;
}

.filters button:hover {
  background: #2563eb;
  color: white;
}

/* ===== GÖREV EKLEME (KESİN HİZALI) ===== */
.task-add {
  padding: 20px;
  display: grid;
  grid-template-columns: 1.3fr 3fr 1.2fr 1.5fr auto;
  gap: 12px;
}

.task-add > * {
  height: 48px;
  box-sizing: border-box;
  font-size: 14px;
}

.task-add textarea {
  resize: none;
  padding: 10px 12px;
}

/* ===== TABLO ===== */
.table-wrapper {
  padding: 20px;
}

.task-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.task-table thead {
  background: #0f172a;
  color: white;
}

.task-table th,
.task-table td {
  padding: 14px;
  font-size: 14px;
}

.task-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

.task-table tbody tr:hover {
  background: #f1f5f9;
}

/* ===== TOPBAR ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ===== KULLANICI MENÜSÜ ===== */
.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 32px;
  background: white;
  border-radius: 12px;
  min-width: 220px;
  box-shadow: 0 12px 30px rgba(0,0,0,.15);
  z-index: 1000;
}

.user-dropdown div {
  padding: 12px 14px;
  cursor: pointer;
}

.user-dropdown div:hover {
  background: #f1f5f9;
}

/* ===== BİLDİRİM (PROFESYONEL) ===== */
.notify {
  position: relative;
  cursor: pointer;
}

#notifyDot {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: red;
  border-radius: 50%;
}

#notifyDropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 30px;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  min-width: 320px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  z-index: 999;
}

#notifyDropdown strong {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  color: #f8fafc;
}

.notify-item {
  background: #020617;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
  cursor: pointer;
  transition: transform .15s ease;
}

.notify-item:hover {
  transform: translateY(-2px);
}

.notify-title {
  font-size: 13px;
  font-weight: 600;
  color: #60a5fa;
}

.notify-desc {
  font-size: 12px;
  color: #cbd5f5;
  margin-top: 4px;
}

.notify-empty {
  text-align: center;
  padding: 20px;
  color: #94a3b8;
  font-size: 13px;
}
/* 👤 Kullanıcı menüsü – YAZI RENKLERİNİ ZORLA */
.user-dropdown {
  background: #ffffff;
}

.user-dropdown div {
  color: #0f172a;          /* KOYU LACİVERT */
  font-weight: 500;
}

.user-dropdown div:hover {
  background: #f1f5f9;
  color: #020617;
}
.user-dropdown .active {
  background: #2563eb;
  color: white;
}

/* 🎯 Kişisel Odak */
.focus-bar {
  grid-column: span 1;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.focus-bar div {
  color: #0f172a;
}

/* 🏷️ Durum Badge */
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  display: inline-block;
}

.badge-bekleyen { background: #eab308; }
.badge-devam { background: #2563eb; }
.badge-gecikmis { background: #dc2626; }
.badge-tamam { background: #16a34a; }
/* 🚨 DASHBOARD ZORLA GRID */
.dashboard {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  padding: 20px !important;
  align-items: stretch !important;
}

/* Tüm dashboard çocukları eşitlensin */
.dashboard > * {
  width: 100% !important;
  min-height: 120px;
}

/* 🎯 Odak kartı */
.focus-card {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.08) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 6px;
}
/* 🔐 HESAP AYARLARI KARTI */
.settings-card {
  max-width: 480px;
  margin: 30px 20px;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.settings-header {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.settings-desc {
  font-size: 13px;
  color: #475569;
  margin-bottom: 18px;
}

.settings-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-fields input {
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  transition: border .2s, box-shadow .2s;
}

.settings-fields input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.settings-fields button {
  margin-top: 6px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: rgb(255, 0, 0);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .25s ease;
}

.settings-fields button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37,99,235,.35);
}
.settings-btn {
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background .2s;
}

.settings-btn:hover {
  background: rgba(255,255,255,.15);
}
#settingsPanel {
  position: fixed;
  right: 30px;
  top: 90px;
  z-index: 1000;
}
.settings-hidden {
  display: none !important;
}
/* 🧱 MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ⚙️ MODAL KART */
.settings-modal {
  background: rgb(255, 255, 255);
  width: 420px;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  animation: modalIn .25s ease;
}

@keyframes modalIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
}

.modal-desc {
  margin: 10px 0 18px;
  color: #475569;
  font-size: 14px;
}

.settings-modal input {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ffffff;
}

.primary-btn {
  width: 100%;
  margin-top: 16px;
  background: linear-gradient(135deg,#2563eb,#1e40af);
  color: #fdfdfd;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #0f172a;
  color: rgb(255, 255, 255);
  position: relative;
  z-index: 50;
}

.topbar-left h2 {
  margin: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  cursor: pointer;
  font-size: 18px;
  position: relative;
  user-select: none;
}

.icon-btn:hover {
  opacity: 0.85;
}


.user-menu,
.icon-btn,
button {
  pointer-events: auto;
  z-index: 60;
}

.topbar {
  position: relative;
  z-index: 100;
}


.modal-overlay {
  display: none;
}

.modal-overlay.active {
  display: flex;
}

.icon-btn {
  cursor: pointer;
  z-index: 200;
}

.user-dropdown,
#notifyDropdown {
  z-index: 300;
}
/* Ayarlar modal başlığı */
.settings-modal {
  position: relative;
}

/* KAPAT (X) BUTONU */
.close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  z-index: 10;
}

.close-btn:hover {
  background: #e5e7eb;
  transform: rotate(90deg);
}
/* 🌌 UZAY ARKA PLAN */
.space-body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #0f172a, #020617);
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
}

.space-container {
  text-align: center;
  padding: 60px 20px;
}

.brand-title {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;

  text-shadow:
    0 2px 10px rgba(255, 255, 255, 0.25),
    0 0 30px rgba(59, 130, 246, 0.15);

  animation: titleBreath 8s ease-in-out infinite;
}
@keyframes titleBreath {
  0% {
    text-shadow:
      0 2px 8px rgba(255, 255, 255, 0.15),
      0 0 20px rgba(59, 130, 246, 0.10);
  }
  50% {
    text-shadow:
      0 4px 14px rgba(255, 255, 255, 0.35),
      0 0 40px rgba(59, 130, 246, 0.25);
  }
  100% {
    text-shadow:
      0 2px 8px rgba(255, 255, 255, 0.15),
      0 0 20px rgba(59, 130, 246, 0.10);
  }
}


.brand-sub {
  opacity: .8;
  margin-bottom: 50px;
}

/* 🧱 PANELLER */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.panel-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 35px 25px;
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  transition: all .3s;
}

.panel-card:hover {
  transform: translateY(-10px);
}

.panel-card p {
  opacity: .85;
  margin-bottom: 25px;
}

.panel-card button {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.panel-card.admin button { background:#2563eb; color:white; }
.panel-card.teacher button { background:#0ea5e9; color:white; }
.panel-card.content button { background:#f59e0b; color:#111; }

/* 🔐 LOGIN MODAL */
.login-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.login-modal.active {
  display: flex;
}

.login-box {
  background: white;
  color: #111;
  padding: 30px;
  border-radius: 16px;
  width: 320px;
  position: relative;
}

.login-box input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}

.login-box button {
  width: 100%;
  padding: 12px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
}

.login-box .close {
  position: absolute;
  top: 10px;
  right: 14px;
  cursor: pointer;
}
.footer-glow {
  margin-top: 60px;
  font-size: 14px;
  letter-spacing: 4px;
  color: #f59e0b;
  text-align: center;
  opacity: 0.8;

  text-shadow:
    0 0 8px rgba(245, 158, 11, 0.6),
    0 0 16px rgba(245, 158, 11, 0.4),
    0 0 32px rgba(245, 158, 11, 0.2);

  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0% {
    opacity: 0.4;
    text-shadow:
      0 0 6px rgba(245, 158, 11, 0.3),
      0 0 12px rgba(245, 158, 11, 0.2);
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 12px rgba(245, 158, 11, 0.8),
      0 0 28px rgba(245, 158, 11, 0.6),
      0 0 48px rgba(245, 158, 11, 0.4);
  }
  100% {
    opacity: 0.4;
    text-shadow:
      0 0 6px rgba(245, 158, 11, 0.3),
      0 0 12px rgba(245, 158, 11, 0.2);
  }
}
.brand-glow {
  position: relative;
  display: inline-block;
  color: #ffffff;
  font-weight: 700;

  text-shadow:
    0 0 8px rgba(255,255,255,0.35),
    0 0 20px rgba(59,130,246,0.35),
    0 0 40px rgba(59,130,246,0.15);

  animation: brandPulse 6s ease-in-out infinite;
}

@keyframes brandPulse {
  0% {
    text-shadow:
      0 0 6px rgba(255,255,255,0.25),
      0 0 16px rgba(59,130,246,0.25);
  }
  50% {
    text-shadow:
      0 0 12px rgba(255,255,255,0.6),
      0 0 32px rgba(59,130,246,0.5),
      0 0 60px rgba(59,130,246,0.25);
  }
  100% {
    text-shadow:
      0 0 6px rgba(255,255,255,0.25),
      0 0 16px rgba(59,130,246,0.25);
  }
}
.alert-overlay {
  display: flex;
  backdrop-filter: blur(4px); /* Arkayı hafif bulanıklaştırır, çok premium durur */
}

.alert-box h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
}.alert-box button:hover {
  background: #0284c7 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}
/* ===== TABLO HİZALAMA DÜZENLEMESİ ===== */

.task-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  table-layout: fixed; /* Sütun genişliklerini sabitlemek için kritik */
}

/* Sütun genişliklerini tek tek belirliyoruz (Toplanı %100 olmalı) */
.task-table th:nth-child(1), .task-table td:nth-child(1) { width: 25%; text-align: left; } /* Görev */
.task-table th:nth-child(2), .task-table td:nth-child(2) { width: 30%; text-align: left; } /* Açıklama */
.task-table th:nth-child(3), .task-table td:nth-child(3) { width: 15%; text-align: center; } /* Atanan */
.task-table th:nth-child(4), .task-table td:nth-child(4) { width: 15%; text-align: center; } /* Tarih */
.task-table th:nth-child(5), .task-table td:nth-child(5) { width: 15%; text-align: center; } /* Durum */

.task-table th,
.task-table td {
  padding: 14px;
  font-size: 14px;
  word-wrap: break-word; /* Uzun yazılar tabloyu bozmasın */
  vertical-align: middle;
}

/* Tablo Başlık Stilini Güçlendir */
.task-table thead th {
  background: #0f172a;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}
/* ===== TABLO SÜTUN DENGESİ (6 SÜTUN) ===== */
.task-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* Sütun genişliklerini zorlar */
}

/* Sütun Genişliklerini Ayarla (Toplam %100) */
/* 1. Görev */    .task-table th:nth-child(1), .task-table td:nth-child(1) { width: 25%; text-align: left; }
/* 2. Açıklama */ .task-table th:nth-child(2), .task-table td:nth-child(2) { width: 25%; text-align: left; }
/* 3. Atanan */   .task-table th:nth-child(3), .task-table td:nth-child(3) { width: 15%; text-align: center; }
/* 4. Tarih */    .task-table th:nth-child(4), .task-table td:nth-child(4) { width: 12%; text-align: center; }
/* 5. Durum */    .task-table th:nth-child(5), .task-table td:nth-child(5) { width: 10%; text-align: center; }
/* 6. İşlem */    .task-table th:nth-child(6), .task-table td:nth-child(6) { width: 13%; text-align: center; }

.task-table th, .task-table td {
  padding: 12px 8px;
  overflow: hidden;
  text-overflow: ellipsis; /* Uzun metinleri keser */
  white-space: nowrap;    /* Alt satıra geçmeyi önler (isteğe bağlı) */
}