@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@500;700;800&family=Quicksand:wght@500;600;700&display=swap");

:root {
  --pink-50: #fff5f8;
  --pink-100: #ffe4ec;
  --pink-200: #ffc2d4;
  --pink-300: #ff9bb8;
  --pink-400: #f76a9a;
  --pink-500: #e84a7f;
  --peach: #ffd6c0;
  --cream: #fff9fb;
  --ink: #4a2c3a;
  --muted: #9a6b7c;
  --ok: #3d9b6a;
  --err: #c44569;
  --card: rgba(255, 255, 255, 0.78);
  --shadow: 0 12px 40px rgba(232, 74, 127, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Nunito", "Quicksand", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, #ffd0e0 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 10%, #ffe0c8 0%, transparent 50%),
    linear-gradient(165deg, #fff5f8 0%, #ffe8f0 40%, #fff0e8 100%);
  background-attachment: fixed;
}

body { padding-bottom: 4rem; }

a { color: var(--pink-500); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(960px, 92vw);
  margin: 0 auto;
}

/* --- nav --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0 0.6rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 42px; height: 42px; }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--pink-300);
  transform: translateY(-1px);
  text-decoration: none;
}

.nav-links .who {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 0.3rem;
}

/* --- hero --- */
.hero {
  position: relative;
  margin: 1.2rem 0 1.6rem;
  padding: 1.8rem 1.6rem 1.6rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffb6c9 0%, #ffc9a8 55%, #ffe0f0 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: fadeUp 0.55s ease both;
}

.hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  max-width: 28rem;
  color: #5a3040;
  font-weight: 600;
}

.hero .deco {
  position: absolute;
  right: 1rem;
  bottom: 0.4rem;
  width: 110px;
  height: 110px;
  opacity: 0.95;
  animation: bob 3.2s ease-in-out infinite;
  pointer-events: none;
}

.hero .deco-2 {
  position: absolute;
  right: 7rem;
  top: 0.6rem;
  width: 56px;
  height: 56px;
  opacity: 0.85;
  animation: bob 2.6s ease-in-out 0.4s infinite;
  pointer-events: none;
}

@media (max-width: 600px) {
  .hero .deco { width: 72px; height: 72px; }
  .hero .deco-2 { display: none; }
}

/* --- cards --- */
.card {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 182, 201, 0.45);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.1rem;
  animation: fadeUp 0.5s ease both;
}

.card h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* --- lists --- */
.person-list { list-style: none; margin: 0; padding: 0; }

.person-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.45rem;
  border-radius: 16px;
  background: rgba(255, 245, 248, 0.9);
  border: 1px solid rgba(255, 182, 201, 0.35);
  transition: transform 0.15s;
}

.person-list li:hover { transform: translateX(3px); }

.person-list .meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.person-list .name { font-weight: 800; }
.person-list .tag {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--pink-100);
  color: var(--pink-500);
}

.badge.ok { background: #d8f5e5; color: var(--ok); }

/* --- forms --- */
label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

input[type="text"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1.5px solid var(--pink-200);
  background: #fff;
  font: inherit;
  color: var(--ink);
  margin-bottom: 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pink-400);
  box-shadow: 0 0 0 3px rgba(247, 106, 154, 0.2);
}

textarea { min-height: 90px; resize: vertical; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.2rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(232, 74, 127, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(232, 74, 127, 0.35);
  text-decoration: none;
  color: #fff;
}

.btn.ghost {
  background: #fff;
  color: var(--pink-500);
  border: 1.5px solid var(--pink-300);
  box-shadow: none;
}

.btn.ghost:hover { background: var(--pink-50); color: var(--pink-500); }

.btn.danger {
  background: linear-gradient(135deg, #f08a9e, #c44569);
}

.btn.sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.6rem;
  align-items: end;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.muted {
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.admin-manage .admin-item {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.inline-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.inline-edit input[type="text"],
.inline-edit input[type="password"] {
  min-width: 8rem;
  max-width: 11rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .inline-edit { width: 100%; }
  .inline-edit input[type="text"],
  .inline-edit input[type="password"] {
    max-width: none;
    flex: 1;
  }
}

/* --- rating pills --- */
.soru-blok {
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(255, 155, 184, 0.5);
}

.soru-blok:last-of-type { border-bottom: none; }

.soru-blok .soru-metin {
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.puanlar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.puanlar label.puan {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  cursor: pointer;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 700;
}

.puanlar input { display: none; }

.puanlar .num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--pink-200);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  transition: all 0.15s;
}

.puanlar input:checked + .num {
  background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
  border-color: transparent;
  color: #fff;
  transform: scale(1.08);
}

/* --- report --- */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat {
  flex: 1 1 120px;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, var(--pink-50));
  border: 1px solid var(--pink-100);
  text-align: center;
}

.stat .val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pink-500);
}

.stat .lbl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.report-card {
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.75rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--pink-100);
}

.report-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.report-card .pct {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--pink-500);
}

.report-card .auto {
  margin: 0.4rem 0;
  font-weight: 700;
  color: #6b3a4c;
}

.report-card .manual {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.2rem 0;
}

.week-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.week-pills a {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--pink-200);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.week-pills a.on {
  background: var(--pink-400);
  color: #fff;
  border-color: transparent;
}

/* --- flash / empty --- */
.flash {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  margin: 0.8rem 0;
  font-weight: 700;
}

.flash.ok { background: #d8f5e5; color: var(--ok); }
.flash.error { background: #ffe0e8; color: var(--err); }

.empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}

.empty img {
  width: 88px;
  height: 88px;
  margin-bottom: 0.6rem;
  animation: bob 2.8s ease-in-out infinite;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.login-box {
  width: min(400px, 100%);
  padding: 2rem 1.6rem;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid rgba(255, 182, 201, 0.5);
  box-shadow: var(--shadow);
  text-align: center;
  animation: fadeUp 0.55s ease both;
}

.login-box img {
  width: 96px;
  height: 96px;
  margin-bottom: 0.5rem;
  animation: bob 3s ease-in-out infinite;
}

.login-box h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.login-box .sub {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1.4rem;
  font-size: 0.92rem;
}

.login-box form { text-align: left; }
.login-box .btn { width: 100%; margin-top: 0.3rem; }

.lock-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--peach);
  color: #7a4a30;
}

.week-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin: 0.4rem 0 0.2rem;
  padding: 0.55rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--pink-200);
  font-size: 0.88rem;
  font-weight: 700;
}

.week-banner.locked {
  background: #ffe8ee;
  border-color: #ffb6c9;
}

.week-banner a {
  margin-left: auto;
  font-weight: 800;
}

.week-banner code {
  font-size: 0.8rem;
  background: var(--pink-100);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
}

.pill-btn {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--pink-200);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}

.pill-btn.on,
.pill-btn:hover {
  background: var(--pink-400);
  color: #fff;
  border-color: transparent;
}

.takvim-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.7rem;
  align-items: end;
}

@media (max-width: 800px) {
  .takvim-form { grid-template-columns: 1fr; }
}

.hint {
  margin: 0.7rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.soru-ozet {
  margin: 0.7rem 0 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.soru-satir {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.75rem;
  align-items: center;
}

.soru-ad {
  font-size: 0.88rem;
  font-weight: 700;
  color: #5a3040;
}

.soru-puan {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--pink-500);
}

.soru-satir .bar {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: var(--pink-100);
  overflow: hidden;
}

.soru-satir .bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pink-300), var(--pink-500));
  border-radius: 999px;
}

.pct-bear {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 800;
  color: var(--pink-500);
}

.pct-bear img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.stat .pct-bear img { width: 34px; height: 34px; }

.ss-alan {
  border: 2px solid var(--pink-200);
  background: #fff;
}

.ss-baslik {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ss-baslik h2 {
  margin: 0;
  font-size: 1.25rem;
}

.ss-baslik p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.ss-bear {
  width: 56px;
  height: 56px;
}

.tablo-wrap {
  overflow-x: auto;
}

.rapor-tablo {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.rapor-tablo th,
.rapor-tablo td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--pink-100);
  text-align: left;
  vertical-align: middle;
}

.rapor-tablo th {
  background: var(--pink-50);
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.rapor-tablo tr:nth-child(even) td {
  background: rgba(255, 245, 248, 0.65);
}

.rapor-tablo .ad { font-weight: 800; }
.rapor-tablo .yuzde-hucre { white-space: nowrap; }
.rapor-tablo .not-hucre {
  font-size: 0.82rem;
  color: #6b3a4c;
  font-weight: 600;
  max-width: 280px;
}

@media print {
  body {
    background: #fff !important;
    padding: 0;
  }
  .topbar,
  .week-banner,
  .no-print,
  .flash {
    display: none !important;
  }
  .wrap { width: 100%; max-width: none; margin: 0; }
  .ss-alan {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }
  .rapor-tablo { font-size: 11pt; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
