/* NEXA Forge — Dashboard (Apple tarzı) — admin sayfaları da bu sınıfları kullanır */

.db-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin: 10px 0 24px; position: relative; z-index: 1;
}
.db-header-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600;
  color: var(--text-primary); letter-spacing: -0.3px;
}
.db-header-sub { font-size: 13.5px; color: var(--text-secondary); margin-top: 5px; }
.db-header-link {
  font-size: 13px; font-weight: 600; color: var(--accent-primary);
  cursor: pointer; padding: 8px 14px; border-radius: var(--radius-full);
  background: var(--accent-soft); transition: filter var(--t-base);
}
.db-header-link:hover { filter: brightness(1.05); }

.db-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.db-left, .db-right { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* Panel kartı */
.db-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.db-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.db-card-title { font-size: 14.5px; font-weight: 600; color: var(--text-primary); }
.db-card-action { font-size: 12px; font-weight: 600; color: var(--accent-primary); cursor: pointer; }

/* Haftalık aktivite bar chart */
.db-chart-area { padding: 4px 4px 0; }
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 150px; }
.bar-col {
  flex: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 8px;
}
.bar-val { font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
.bar-fill {
  width: 100%;
  background: var(--accent-soft);
  border-radius: 8px;
  min-height: 6px;
  transition: height 500ms cubic-bezier(.2,.7,.2,1);
}
.bar-fill.today { background: var(--accent-primary); }
.bar-lbl { font-size: 11.5px; color: var(--text-secondary); font-weight: 600; }

/* Görev dağılımı progress satırları */
.progress-rows { display: flex; flex-direction: column; gap: 14px; }
.prog-row { display: flex; align-items: center; gap: 12px; }
.prog-label { width: 100px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); flex-shrink: 0; }
.prog-bar-wrap {
  flex: 1; height: 7px; border-radius: var(--radius-full);
  background: rgba(0,0,0,0.06); overflow: hidden;
}
[data-theme="dark"] .prog-bar-wrap { background: rgba(255,255,255,0.08); }
.prog-bar-fill { height: 100%; border-radius: var(--radius-full); transition: width 600ms ease-out; }
.prog-val { width: 40px; text-align: right; font-size: 12.5px; font-weight: 700; flex-shrink: 0; }
.prog-count { width: 26px; text-align: right; font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

/* Son aktiviteler */
.db-activities { display: flex; flex-direction: column; }
.db-activity-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 2px; border-bottom: 1px solid var(--border-subtle);
}
.db-activity-row:last-child { border-bottom: none; }
.db-activity-icon {
  width: 30px; height: 30px; border-radius: var(--radius-full);
  background: var(--accent-soft);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--accent-primary);
}
.db-activity-icon .msr { font-size: 16px; }
.db-activity-title {
  flex: 1; font-size: 13px; font-weight: 500; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.db-activity-time { font-size: 11.5px; color: var(--text-muted); flex-shrink: 0; }

/* Sağ kolon istatistik kartları */
.db-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.db-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.db-stat-card > * { position: relative; z-index: 1; }
.db-stat-card .wmc { z-index: 0; }
.db-stat-val {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600;
  color: var(--text-primary); line-height: 1.15;
}
.db-stat-val.purple, .db-stat-val.teal, .db-stat-val.amber { color: var(--text-primary); }
.db-stat-val.red { color: var(--c-red); }
.db-stat-lbl { font-size: 12px; color: var(--text-secondary); font-weight: 600; margin-top: 2px; }

/* Odak görevler */
.focus-card, .team-load-card, .next-event-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.focus-head, .team-load-head { margin-bottom: 8px; }
.focus-head-title { font-size: 14.5px; font-weight: 600; color: var(--text-primary); }

.focus-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 2px; border-bottom: 1px solid var(--border-subtle);
  cursor: pointer; border-radius: var(--radius-sm);
  transition: background var(--t-base);
}
.focus-item:last-child { border-bottom: none; }
.focus-item:hover { background: var(--bg-tertiary); }
[data-theme="dark"] .focus-item:hover { background: rgba(255,255,255,0.04); }
.focus-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.focus-text {
  flex: 1; font-size: 13px; font-weight: 500; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.focus-days { font-size: 11.5px; font-weight: 600; flex-shrink: 0; }
.focus-days.urgent { color: var(--c-red); }
.focus-days.warn   { color: var(--c-orange); }
.focus-days.ok     { color: var(--text-muted); }

/* Ekip yükü */
.tl-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--border-subtle);
}
.tl-item:last-child { border-bottom: none; }
.tl-avatar {
  width: 28px; height: 28px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.tl-status { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.tl-name {
  width: 86px; font-size: 12.5px; font-weight: 500; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0;
}
.tl-load { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.tl-bar-wrap {
  flex: 1; height: 6px; border-radius: var(--radius-full);
  background: rgba(0,0,0,0.06); overflow: hidden;
}
[data-theme="dark"] .tl-bar-wrap { background: rgba(255,255,255,0.08); }
.tl-bar-fill { height: 100%; border-radius: var(--radius-full); }
.tl-num { font-size: 12px; font-weight: 600; color: var(--text-secondary); width: 14px; text-align: right; }

/* Sıradaki etkinlik */
.next-event-card { padding: 18px 20px; }
.ne-inner { display: flex; align-items: center; gap: 14px; }
.ne-date-box {
  width: 54px; height: 58px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ne-day {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--accent-primary); line-height: 1;
}
.ne-mon { font-size: 10.5px; font-weight: 700; color: var(--accent-primary); text-transform: uppercase; margin-top: 2px; }
.ne-info { flex: 1; min-width: 0; }
.ne-name {
  font-size: 13.5px; font-weight: 600; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ne-type { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.ne-badge {
  font-size: 10.5px; font-weight: 700;
  color: var(--c-red); background: rgba(255,55,95,0.11);
  padding: 3px 9px; border-radius: var(--radius-full); flex-shrink: 0;
}

@media (max-width: 1100px) {
  .db-body { grid-template-columns: 1fr; }
}
