:root {
  --navy: #0d3356;
  --blue: #1a6fa8;
  --sky: #3aacdc;
  --teal: #2a8a6e;
  --gold: #c8973a;
  --cream: #f9f6f0;
  --white: #ffffff;
  --gray: #e8e4dc;
  --dark: #1a1a2e;
  --text: #2c3e50;
  --muted: #7f8c8d;
  --danger: #c0392b;
  --success: #27ae60;
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── HEADER ─────────────────────────────────────────── */
header {
  background: linear-gradient(135deg, #f6efe3 0%, #f1e6d6 55%, #eadbc3 100%);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 118px;
  box-shadow: 0 4px 18px rgba(74, 56, 28, 0.10);
  border-bottom: 1px solid #dccbb1;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.header-logo {
  width: 92px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.header-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  min-width: 0;
}

.header-title .main {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--navy);
  line-height: 1.05;
}
.header-title .sub {
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 1;
  letter-spacing: 0.4px;
  text-transform: none;
  color: var(--blue);
  line-height: 1.2;
}

.header-date {
  font-size: 0.84rem;
  color: var(--navy);
  opacity: 0.78;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.header-verse {
  max-width: 540px;
  margin-left: 24px;
  padding: 12px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.42;
  text-align: right;
  box-shadow: 0 2px 10px rgba(13, 51, 86, 0.05);
}
.header-verse .ref {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 900px) {
  header {
    height: auto;
    min-height: 104px;
    padding: 10px 16px;
    gap: 12px;
  }
  .header-logo {
    width: 82px;
    height: 62px;
  }
  .header-title .main {
    font-size: 1.25rem;
  }
  .header-title .sub {
    font-size: 0.72rem;
  }
  .header-date {
    font-size: 0.72rem;
  }
  .header-verse {
    max-width: 360px;
    margin-left: 8px;
    padding: 9px 12px;
    font-size: 0.74rem;
  }
}

@media (max-width: 640px) {
  header {
    height: auto;
    min-height: 78px;
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .header-logo {
    width: 72px;
    height: 54px;
  }
  .header-title {
    padding-left: 10px;
    border-left-width: 2px;
  }
  .header-title .main {
    font-size: 1.05rem;
  }
  .header-title .sub {
    font-size: 0.65rem;
    max-width: 210px;
  }
  .header-verse {
    order: 3;
    width: 100%;
    max-width: none;
    margin-left: 0;
    text-align: left;
    font-size: 0.72rem;
  }
  .header-date {
    width: 100%;
    text-align: right;
  }
}

/* ─── NAV ─────────────────────────────────────────────── */
nav {
  background: var(--navy);
  display: flex;
  gap: 2px;
  padding: 0 20px;
  border-bottom: 3px solid var(--sky);
}

.nav-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 14px 22px;
  cursor: pointer;
  transition: all 0.25s;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn:hover { color: white; background: rgba(255,255,255,0.06); }
.nav-btn.active { color: var(--sky); border-bottom-color: var(--sky); background: rgba(58,172,220,0.08); }

.utility-bar {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--gray);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 34px;
  padding: 5px 28px;
  font-size: 0.78rem;
  color: var(--muted);
}

.save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 112px;
  font-weight: 800;
}

.save-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 3px rgba(127, 140, 141, 0.10);
}

.backup-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.utility-btn {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 6px;
}

.utility-btn:hover {
  background: rgba(26, 111, 168, 0.08);
  color: var(--navy);
}

@media (max-width: 640px) {
  .utility-bar {
    justify-content: space-between;
    padding: 6px 14px;
    gap: 8px;
  }
  .save-indicator {
    min-width: 0;
  }
  .backup-actions {
    gap: 2px;
  }
  .utility-btn {
    padding: 5px 6px;
  }
}

/* ─── MAIN ─────────────────────────────────────────────── */
main {
  flex: 1;
  padding: 28px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.page { display: none; }
.page.active { display: block; }

/* ─── PAGE HEADER ───────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray);
}

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ─── CARDS ─────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(13,51,86,0.08);
  overflow: hidden;
}

.card-header {
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%);
  color: white;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body { padding: 20px; }

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
  border: none;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover { background: var(--navy); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(26,111,168,0.35); }
.btn-success { background: var(--teal); color: white; }
.btn-success:hover { background: #1f6e55; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #a93226; }
.btn-outline { background: transparent; border: 2px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: white; }
.btn-gold { background: var(--gold); color: white; }
.btn-sm { padding: 6px 12px; font-size: 0.78rem; }

/* ─── GRID ──────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ─── FORM ELEMENTS ─────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-control {
  width: 100%;
  border: 2px solid var(--gray);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s;
  background: white;
}
.form-control:focus { outline: none; border-color: var(--sky); }

/* ─── TABLE ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: 12px; box-shadow: 0 2px 16px rgba(13,51,86,0.08); }
table { width: 100%; border-collapse: collapse; background: white; }
thead { background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%); color: white; }
th { padding: 12px 16px; font-size: 0.8rem; font-weight: 700; text-align: left; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
td { padding: 11px 16px; font-size: 0.875rem; border-bottom: 1px solid var(--gray); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(58,172,220,0.05); }
tbody tr:nth-child(even) { background: rgba(249,246,240,0.7); }
tbody tr:nth-child(even):hover { background: rgba(58,172,220,0.05); }

/* ─── BADGE ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-blue { background: rgba(26,111,168,0.12); color: var(--blue); }
.badge-teal { background: rgba(42,138,110,0.12); color: var(--teal); }
.badge-gold { background: rgba(200,151,58,0.15); color: #9a6e1a; }
.badge-navy { background: rgba(13,51,86,0.12); color: var(--navy); }
.badge-teal { background: rgba(42,138,110,0.12); color: var(--teal); }

/* ─── STAT CARD ─────────────────────────────────────────── */
.stat-card {
  background: white;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 16px rgba(13,51,86,0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 5px solid var(--blue);
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card.navy { border-left-color: var(--navy); }
.stat-card.teal { border-left-color: var(--teal); }
.stat-card.gold { border-left-color: var(--gold); }
.stat-card.sky { border-left-color: var(--sky); }
.stat-card.danger { border-left-color: var(--danger); }
.stat-card .label { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
.stat-card .value { font-size: 2.2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-card .sub { font-size: 0.8rem; color: var(--muted); }
.stat-card .icon { font-size: 1.8rem; align-self: flex-end; margin-top: -8px; opacity: 0.2; }

/* ─── MODAL ─────────────────────────────────────────────── */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,51,86,0.55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.modal-bg.open { display: flex; }
.modal {
  background: white;
  border-radius: 18px;
  max-width: 520px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(13,51,86,0.3);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  background: linear-gradient(90deg, var(--navy), var(--blue));
  color: white;
  padding: 18px 24px;
  border-radius: 18px 18px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 { font-size: 1.05rem; font-weight: 800; }
.modal-close { background: none; border: none; color: white; font-size: 1.4rem; cursor: pointer; opacity: 0.7; line-height: 1; }
.modal-close:hover { opacity: 1; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray); display: flex; gap: 10px; justify-content: flex-end; }

/* ─── SEARCH BOX ─────────────────────────────────────────── */
.search-box {
  position: relative;
  max-width: 320px;
}
.search-box input {
  width: 100%;
  border: 2px solid var(--gray);
  border-radius: 30px;
  padding: 9px 16px 9px 38px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  background: white;
  transition: border-color 0.2s;
}
.search-box input:focus { outline: none; border-color: var(--sky); }
.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ─── CALENDAR ───────────────────────────────────────────── */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cal-nav .month-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  font-family: 'Amiri', serif;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-day-header {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  padding: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cal-day {
  min-height: 110px;
  border-radius: 10px;
  background: white;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  position: relative;
  box-sizing: border-box;
}
.cal-day:hover { border-color: var(--sky); transform: scale(1.02); z-index: 1; }
.cal-day.today { border-color: var(--sky); background: rgba(58,172,220,0.06); }
.cal-day.other-month { background: rgba(249,246,240,0.5); }
.cal-day.other-month .day-num { color: var(--gray); }
.cal-day-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.cal-event {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.cal-event.seminer { background: rgba(26,111,168,0.15); color: var(--blue); }
.cal-event.toplanti { background: rgba(42,138,110,0.15); color: var(--teal); }
.cal-event.etkinlik { background: rgba(200,151,58,0.15); color: #9a6e1a; }
.cal-event.ozel { background: rgba(192,57,43,0.12); color: var(--danger); }
.cal-day.drag-over { border-color: var(--gold); background: rgba(200,151,58,0.08); transform: scale(1.03); }
.cal-event[draggable="true"] { cursor: grab; }
.cal-event[draggable="true"]:active { cursor: grabbing; opacity: 0.7; }

/* ─── ORG CHART ─────────────────────────────────────────── */
.org-section {
  margin-bottom: 28px;
}
.org-section-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--sky);
}
.org-card {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 12px rgba(13,51,86,0.08);
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 5px solid var(--blue);
  transition: all 0.2s;
  position: relative;
}
.org-card:hover { transform: translateX(4px); box-shadow: 0 4px 20px rgba(13,51,86,0.12); }
.org-card.baskan { border-left-color: var(--gold); }
.org-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.org-card.baskan .avatar { background: linear-gradient(135deg, var(--gold), #e8b04a); }
.org-card .info .name { font-weight: 800; font-size: 0.95rem; color: var(--navy); }
.org-card .info .role { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.org-card .edit-btns { margin-left: auto; display: none; gap: 6px; }
.org-card:hover .edit-btns { display: flex; }
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.org-card.alt-uye { border-left-color: var(--sky); border-left-width: 3px; margin-left: 20px; }
.org-card.alt-uye .avatar { width: 36px; height: 36px; font-size: 0.85rem; background: linear-gradient(135deg,var(--sky),var(--blue)); }

/* ─── FINANCE ────────────────────────────────────────────── */
.finance-bar {
  height: 12px;
  border-radius: 6px;
  background: var(--gray);
  overflow: hidden;
  margin-top: 8px;
}
.finance-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--teal), var(--sky));
  transition: width 0.8s ease;
}
.donor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray);
}
.donor-row:last-child { border-bottom: none; }
.donor-info { display: flex; align-items: center; gap: 10px; }
.donor-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
}
.donor-name { font-weight: 700; font-size: 0.9rem; }
.donor-type { font-size: 0.72rem; color: var(--muted); }
.donor-amount { font-weight: 800; color: var(--teal); font-size: 0.95rem; }

/* ─── SEMINER ────────────────────────────────────────────── */
.seminer-card {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(13,51,86,0.08);
  overflow: hidden;
  transition: all 0.2s;
}
.seminer-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(13,51,86,0.14); }
.seminer-poster {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 50%, var(--sky) 100%);
  aspect-ratio: 4 / 5;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.seminer-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='80' cy='20' r='30' fill='rgba(255,255,255,0.05)'/%3E%3Ccircle cx='20' cy='80' r='20' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E") no-repeat center;
  background-size: cover;
}
.seminer-poster-title {
  color: white;
  font-family: 'Amiri', serif;
  font-size: 1.15rem;
  text-align: center;
  padding: 22px;
  position: relative;
  z-index: 1;
  font-weight: 700;
  line-height: 1.35;
}
.seminer-body { padding: 10px 12px; }
.seminer-meta { font-size: 0.7rem; color: var(--muted); display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
.seminer-meta span { display: flex; align-items: center; gap: 3px; }
@media (min-width: 1200px) {
  #seminerGrid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 1199px) and (min-width: 900px) {
  #seminerGrid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 899px) and (min-width: 620px) {
  #seminerGrid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 619px) {
  #seminerGrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

.stars { display: flex; gap: 2px; }
.star { font-size: 0.72rem; color: var(--gray); }
.star.on { color: var(--gold); }

/* ─── SCORE INPUT ────────────────────────────────────────── */
.score-input { display: flex; gap: 4px; }
.score-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--gray);
  background: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
}
.score-btn:hover, .score-btn.active { background: var(--gold); border-color: var(--gold); color: white; }

/* ─── DONUT CHART ────────────────────────────────────────── */
.donut-wrap { display: flex; align-items: center; gap: 20px; }
svg.donut { overflow: visible; }

/* ─── TOPIK FILTER ───────────────────────────────────────── */
.topic-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.topic-chip {
  border: 2px solid var(--gray);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  background: white;
  color: var(--muted);
  transition: all 0.2s;
}
.topic-chip:hover, .topic-chip.active { border-color: var(--blue); background: var(--blue); color: white; }

/* ─── TOAST ──────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--navy);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(13,51,86,0.3);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.success { background: var(--teal); }
.toast.error { background: var(--danger); }
@keyframes toastIn { from { transform: translateX(60px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── SECTION FILTER ─────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* ─── DONEM TABS ─────────────────────────────────────────── */
.donem-tabs { display: flex; gap: 4px; margin-bottom: 20px; background: var(--gray); border-radius: 10px; padding: 4px; }
.donem-tab {
  flex: 1;
  border: none;
  background: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
}
.donem-tab.active { background: white; color: var(--navy); box-shadow: 0 2px 8px rgba(13,51,86,0.1); }


/* ─── FULL PAGE ORGANIZATION SCHEMA ─────────────────────── */
.org-schema-wrap {
  width: 100%;
  background:
    radial-gradient(circle at top left, rgba(58,172,220,0.12), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #fbf6ec 100%);
  border: 1px solid #eadbc3;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 8px 28px rgba(13,51,86,0.10);
  overflow: hidden;
}
.org-schema-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(13,51,86,0.055);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
}
.org-schema-top {
  display: flex;
  justify-content: center;
  position: relative;
  padding-bottom: 38px;
}
.org-schema-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 34px;
  background: linear-gradient(var(--gold), var(--navy));
  opacity: 0.45;
}
.org-schema-card {
  background: white;
  border: 1px solid rgba(13,51,86,0.10);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(13,51,86,0.09);
  padding: 18px;
  min-height: 150px;
  position: relative;
  transition: all 0.2s;
}
.org-schema-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(13,51,86,0.14);
}
.org-schema-card.baskan {
  max-width: 420px;
  width: 100%;
  border-top: 6px solid var(--gold);
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 100%);
}
.org-schema-card.birim {
  border-top: 5px solid var(--blue);
}
.org-schema-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.org-schema-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.org-schema-card.baskan .org-schema-icon {
  background: linear-gradient(135deg, var(--gold), #e8b04a);
}
.org-schema-title {
  font-weight: 800;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.2;
}
.org-schema-sub {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 3px;
}
.org-person-main {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(58,172,220,0.07);
  border-radius: 14px;
  padding: 10px;
}
.org-person-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.org-person-name {
  font-weight: 800;
  color: var(--navy);
  font-size: 0.9rem;
}
.org-person-role {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}
.org-schema-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 22px;
  padding-top: 36px;
}
.org-schema-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(13,51,86,0.35), transparent);
}
.org-schema-card.birim::before {
  content: '';
  position: absolute;
  top: -36px;
  left: 50%;
  width: 2px;
  height: 36px;
  background: rgba(13,51,86,0.28);
}
.org-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.org-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(58,172,220,0.22);
  background: rgba(58,172,220,0.075);
  color: var(--navy);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 800;
}
.org-schema-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
@media (max-width: 760px) {
  .org-schema-wrap { padding: 16px; border-radius: 16px; }
  .org-schema-note { align-items: flex-start; flex-direction: column; }
  .org-schema-grid { grid-template-columns: 1fr; }
}

//* ─── BİRİM KART ─────────────────────────────────────── */
.birim-kart {
  background: white; border-radius: 14px;
  box-shadow: 0 2px 16px rgba(13,51,86,0.08);
  padding: 22px; cursor: pointer; transition: all 0.22s;
  border-left: 5px solid var(--blue);
  display: flex; flex-direction: column; gap: 10px;
}
.birim-kart:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(13,51,86,0.14); }
.birim-kart .birim-ikon { font-size: 2rem; }
.birim-kart .birim-ad { font-size: 1rem; font-weight: 800; color: var(--navy); }
.birim-kart .birim-meta { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.karar-row { display:flex;align-items:flex-start;gap:12px;padding:12px 0;border-bottom:1px solid var(--gray); }
.karar-row:last-child { border-bottom:none; }
.karar-durum { width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:0.7rem;flex-shrink:0;margin-top:2px; }
.karar-durum.tamamlandi { background:rgba(42,138,110,0.15);color:var(--teal); }
.karar-durum.bekliyor { background:rgba(200,151,58,0.15);color:#9a6e1a; }

/* ─── BİRİM PERFORMANS ───────────────────────────────── */
.perf-kart { background:white; border-radius:16px; box-shadow:0 2px 16px rgba(13,51,86,0.09); overflow:hidden; transition:transform 0.2s,box-shadow 0.2s; margin-bottom:16px; }
.perf-kart:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(13,51,86,0.14); }
.perf-kart-header { padding:18px 22px 14px; display:flex; align-items:center; gap:14px; border-bottom:1px solid var(--gray); }
.perf-kart-body { padding:16px 22px; }
.perf-metric-row { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid rgba(0,0,0,0.05); font-size:0.85rem; }
.perf-metric-row:last-child { border-bottom:none; }
.perf-metric-label { color:var(--muted); flex:1; font-weight:600; font-size:0.82rem; }
.perf-metric-val { font-weight:800; color:var(--navy); min-width:32px; text-align:right; }
.perf-spark { height:6px; border-radius:3px; background:var(--gray); overflow:hidden; flex:1; max-width:90px; }
.perf-spark-fill { height:100%; border-radius:3px; transition:width 0.7s ease; }
.perf-score-ring { width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1rem; font-weight:800; flex-shrink:0; border:4px solid; }
.perf-uyari { display:inline-flex; align-items:center; gap:4px; padding:3px 9px; border-radius:8px; font-size:0.72rem; font-weight:700; margin:2px; }
.perf-ozet-kart { background:white; border-radius:12px; padding:16px 18px; box-shadow:0 1px 8px rgba(13,51,86,0.07); text-align:center; }
.perf-ozet-kart .pok-val { font-size:1.8rem; font-weight:800; color:var(--navy); line-height:1; }
.perf-ozet-kart .pok-lbl { font-size:0.72rem; font-weight:700; color:var(--muted); margin-top:4px; text-transform:uppercase; letter-spacing:0.5px; }

* ─── UTIL ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); font-size: 0.82rem; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state .emoji { font-size: 3rem; margin-bottom: 14px; }
.empty-state p { font-size: 0.95rem; }

/* ─── PROGRESS ───────────────────────────────────────────── */
.progress-wrap { margin: 6px 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.78rem; margin-bottom: 4px; font-weight: 600; }
.progress-bar { height: 8px; background: var(--gray); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; transition: width 0.6s; }

/* ─── EVENT DETAIL ───────────────────────────────────────── */
.event-list { display: flex; flex-direction: column; gap: 8px; }
.event-item {
  background: white;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 8px rgba(13,51,86,0.07);
  cursor: pointer;
  transition: all 0.2s;
}
.event-item:hover { transform: translateX(4px); box-shadow: 0 3px 14px rgba(13,51,86,0.12); }
.event-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.event-dot.seminer { background: var(--blue); }
.event-dot.toplanti { background: var(--teal); }
.event-dot.etkinlik { background: var(--gold); }
.event-dot.ozel { background: var(--danger); }
.event-info .event-title { font-weight: 700; font-size: 0.9rem; }
.event-info .event-meta { font-size: 0.75rem; color: var(--muted); }
.event-date-badge {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.event-date-badge .day { font-size: 1.1rem; font-weight: 800; line-height: 1; }
.event-date-badge .mon { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; opacity: 0.8; }

/* ─── MINI CHART ─────────────────────────────────────────── */
.mini-chart { display: flex; align-items: flex-end; gap: 4px; height: 50px; }
.mini-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--blue), var(--sky));
  min-height: 4px;
  transition: height 0.5s ease;
  position: relative;
}
.mini-bar:hover::after {
  content: attr(data-val);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ── RAPOR PRINT STİLLERİ ── */
.rapor-sayfa { font-family: 'Segoe UI', Arial, sans-serif; color: #1a1a2e; }
.rapor-baslik { text-align:center; border-bottom: 3px solid #0d3356; padding-bottom: 20px; margin-bottom: 28px; }
.rapor-baslik h1 { font-size: 1.6rem; font-weight: 900; color: #0d3356; margin: 0 0 6px 0; }
.rapor-baslik .rapor-alt { font-size: 0.85rem; color: #666; }
.rapor-bolum { margin-bottom: 28px; }
.rapor-bolum h2 { font-size: 1.05rem; font-weight: 800; color: #0d3356; border-left: 4px solid #3aacdcc; padding-left: 10px; margin-bottom: 14px; border-left-color: #3aacdc; }
.rapor-tablo { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-bottom: 10px; }
.rapor-tablo th { background: #0d3356; color: white; padding: 8px 10px; text-align: left; font-weight: 700; }
.rapor-tablo td { padding: 7px 10px; border-bottom: 1px solid #e8edf2; }
.rapor-tablo tr:nth-child(even) td { background: #f7f9fc; }
.rapor-ozet-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.rapor-ozet-kart { background: #f0f4f8; border-radius: 8px; padding: 14px; text-align: center; border-top: 3px solid #0d3356; }
.rapor-ozet-kart .deger { font-size: 1.6rem; font-weight: 900; color: #0d3356; }
.rapor-ozet-kart .etiket { font-size: 0.72rem; color: #666; font-weight: 700; margin-top: 2px; }
.rapor-badge { display:inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.rapor-imza { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.rapor-imza-kutu { border-top: 1.5px solid #ccc; padding-top: 8px; text-align: center; font-size: 0.78rem; color: #666; }

@media print {
  nav, #mainNav, .page-header button, #raporGeriBtn,
  button:not(.print-hide-exception), .modal-bg,
  #page-takvim, #page-teskilat, #page-birimler, #page-egitim,
  #page-seminerler, #page-istisare, #page-projeler,
  #page-iktisat, .toast-container {
    display: none !important;
  }
  #page-raporlar { display: block !important; }
  #raporlarMenuView { display: none !important; }
  #raporOnizlemeView { display: block !important; }
  #raporIcerik { border: none !important; padding: 0 !important; max-width: 100% !important; }
  body { background: white !important; }
  .rapor-ozet-grid { grid-template-columns: repeat(4,1fr) !important; }
}
