/* NEXA Forge — Komuta Merkezi (Apple tarzı) */

.cc-root { display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; }

/* Üst durum çubuğu */
.cc-status-bar {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.cc-status-item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  white-space: nowrap;
}
.cc-status-item .msr { font-size: 15px; color: var(--accent-primary); }
.cc-status-item span { color: var(--text-primary); }
.cc-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-green);
  animation: ccPulse 1.6s ease-in-out infinite;
}
@keyframes ccPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.cc-status-divider { width: 1px; height: 16px; background: var(--border-default); }

/* Üst banner: donut + geri sayım + donut */
.cc-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cc-banner-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cc-banner-card > * { position: relative; z-index: 1; }
.cc-banner-card .wmc { position: absolute; z-index: 0; }

.cc-banner-title {
  font-size: 14.5px; font-weight: 600; color: var(--text-primary);
  margin-bottom: 14px; align-self: flex-start;
}

/* Conic-gradient donut */
.cc-donut {
  width: 130px; height: 130px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 2px auto 0;
}
.cc-donut-inner {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
}
.cc-donut-val {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; color: var(--text-primary);
}

/* iOS takvim kutusu tarzı geri sayım */
.cc-banner-countdown { justify-content: center; }
.cc-cal-top {
  display: flex; align-items: baseline; justify-content: center; gap: 7px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 24px; letter-spacing: -0.4px;
  margin-bottom: 2px;
}
.cc-cal-wd  { color: #ff3b30; }
[data-theme="dark"] .cc-cal-wd { color: #ff453a; }
.cc-cal-mon { color: var(--text-muted); }

.cc-days-row { position: static; display: flex; align-items: center; justify-content: center; }
.cc-days-num {
  font-family: var(--font-display);
  font-size: 82px; font-weight: 700;
  color: var(--text-primary);
  line-height: 0.95; letter-spacing: -2px;
}
.cc-days-num.cc-days-soon { color: var(--text-primary); }
.cc-days-num.cc-days-done { font-size: 34px; color: var(--c-green); line-height: 1.4; }

.cc-edit-date-btn {
  position: absolute; right: 18px; top: 18px;
  border: none; background: var(--bg-tertiary);
  width: 28px; height: 28px; border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); cursor: pointer;
  transition: all var(--t-base);
  margin-top: 6px;
}
.cc-edit-date-btn:hover { color: var(--accent-primary); background: var(--accent-soft); }
.cc-edit-date-btn .msr { font-size: 15px; }

.cc-date-edit-wrap {
  display: none;
  align-items: center; gap: 8px;
  margin: 10px 0 2px;
}
.cc-date-edit-wrap.visible { display: flex; }
.cc-date-input { width: 160px; padding: 7px 10px; font-size: 12.5px; }

.cc-banner-label { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); margin-top: 10px; }
.cc-banner-sub   { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Panel ızgarası */
.cc-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 4px;
}

.cc-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.cc-panel-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 20px 12px;
}
.cc-panel-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-primary);
}
.cc-panel-title .msr { font-size: 17px; color: var(--accent-primary); }
.cc-panel-badge {
  font-size: 11px; font-weight: 700;
  color: var(--accent-primary); background: var(--accent-soft);
  border-radius: var(--radius-full);
  padding: 3px 10px; white-space: nowrap;
}
.cc-panel-body { padding: 2px 20px 16px; overflow-y: auto; max-height: 380px; }

.cc-quick-add-btn {
  border: none; background: var(--accent-primary); color: #fff;
  font-size: 12px; font-weight: 600; font-family: var(--font-body);
  padding: 7px 13px; border-radius: var(--radius-full);
  cursor: pointer; transition: filter var(--t-base);
}
.cc-quick-add-btn:hover { filter: brightness(1.08); }

.cc-section-label {
  display: block;
  font-size: 10.5px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.6px;
  margin: 12px 0 6px;
}

/* Görev satırları */
.cc-task-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--t-base);
}
.cc-task-row:last-child { border-bottom: none; }
.cc-task-row:hover { background: var(--bg-tertiary); }
[data-theme="dark"] .cc-task-row:hover { background: rgba(255,255,255,0.04); }

.cc-task-assignee {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.cc-task-name {
  flex: 1; font-size: 13px; font-weight: 500; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-task-days { font-size: 11.5px; font-weight: 600; flex-shrink: 0; }
.cc-task-days.overdue { color: var(--c-red); }
.cc-task-days.soon    { color: var(--c-orange); }
.cc-task-days.ok      { color: var(--text-muted); }

/* Ekip satırları */
.cc-member-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border-subtle);
}
.cc-member-row:last-child { border-bottom: none; }
.cc-member-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; flex-shrink: 0;
}
.cc-member-name {
  flex: 1; font-size: 12.5px; font-weight: 500; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-member-role  { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.cc-member-tasks {
  font-size: 11px; font-weight: 700; color: var(--accent-primary);
  background: var(--accent-soft);
  border-radius: var(--radius-full);
  min-width: 20px; text-align: center; padding: 1px 6px;
  flex-shrink: 0;
}
.cc-online-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cc-online-dot.online  { background: var(--c-green); }
.cc-online-dot.busy    { background: var(--c-red); }
.cc-online-dot.offline { background: var(--text-muted); opacity: 0.5; }

/* Etkinlik satırları */
.cc-event-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border-subtle);
}
.cc-event-row:last-child { border-bottom: none; }
.cc-event-date {
  font-size: 11px; font-weight: 700;
  color: var(--accent-primary); background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 3px 8px; flex-shrink: 0;
}
.cc-event-row.deadline .cc-event-date { color: var(--c-red); background: rgba(255,55,95,0.11); }
.cc-event-row.milestone .cc-event-date { color: var(--c-purple); background: rgba(175,82,222,0.12); }
.cc-event-name {
  flex: 1; font-size: 12.5px; font-weight: 500; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-event-days { font-size: 11px; font-weight: 600; color: var(--text-muted); flex-shrink: 0; }

/* Bildirim satırları */
.cc-notif-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border-subtle);
}
.cc-notif-row:last-child { border-bottom: none; }
.cc-notif-row.unread .cc-notif-title { font-weight: 600; }
.cc-notif-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--accent-primary);
}
.cc-notif-icon .msr { font-size: 15px; }
.cc-notif-content { flex: 1; min-width: 0; }
.cc-notif-title {
  font-size: 12.5px; font-weight: 500; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-notif-msg {
  font-size: 11.5px; color: var(--text-muted); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc-notif-time { font-size: 10.5px; color: var(--text-muted); flex-shrink: 0; margin-top: 2px; }

/* Metrikler */
.cc-metric-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 2px;
  border-bottom: 1px solid var(--border-subtle);
}
.cc-metric-row:last-child { border-bottom: none; }
.cc-metric-label { font-size: 12.5px; color: var(--text-secondary); font-weight: 500; }
.cc-metric-val {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; color: var(--text-primary);
}

.cc-empty {
  text-align: center; color: var(--text-muted);
  font-size: 12.5px; padding: 24px 0;
}

@media (max-width: 1200px) {
  .cc-grid { grid-template-columns: 1fr; }
  .cc-banner { grid-template-columns: 1fr; }

  .cc-status-bar {
    padding: 8px 12px;
    gap: 8px;
  }
  .cc-status-item {
    font-size: 11px;
  }
  .cc-status-divider {
    display: none;
  }
  .cc-status-bar > div:last-child {
    width: 100%;
    order: 99;
    font-size: 10.5px;
    text-align: center;
    margin-left: 0;
  }
  .cc-banner-card {
    padding: 16px;
  }
  .cc-donut {
    width: 100px;
    height: 100px;
  }
  .cc-donut-inner {
    width: 76px;
    height: 76px;
  }
  .cc-donut-val {
    font-size: 19px;
  }
  .cc-days-num {
    font-size: 44px;
  }
  .cc-days-num.cc-days-done {
    font-size: 24px;
  }
  .cc-cal-top {
    font-size: 18px;
  }
}
