/* ═══════════════════════════════════════════════════════════
   06-DASHBOARD — CEE İş Takip "Bugün" Ekranı
   ═══════════════════════════════════════════════════════════ */

#dashboardRoot {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Başlık */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.dash-date { font-size: 13px; color: #6b7280; font-weight: 500; }
.dash-title { font-size: 28px; font-weight: 800; color: #1e3a5f; margin: 4px 0 0; }
.dash-quick { display: flex; gap: 8px; }
.dq-btn {
  padding: 10px 20px;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dq-btn:hover { background: #f3f4f6; }
.dq-primary { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.dq-primary:hover { background: #162d4a; }

/* 4 Özet Kartı */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.dash-stat {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid #f3f4f6;
  transition: box-shadow .2s;
}
.dash-stat:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.ds-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.ds-val { font-size: 28px; font-weight: 800; line-height: 1; }
.ds-label { font-size: 12px; font-weight: 600; color: #374151; margin-top: 2px; }
.ds-sub { font-size: 11px; color: #9ca3af; margin-top: 1px; }

/* İki panel yan yana */
.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* Panel kutusu */
.dash-panel {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid #f3f4f6;
}
.dash-full { grid-column: 1 / -1; }
.dp-head {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #1e3a5f;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dp-icon { font-size: 16px; }
.dp-empty {
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
}

/* Panel içi öğeler */
.dp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid #f9fafb;
  cursor: pointer;
  transition: background .15s;
}
.dp-item:hover { background: #f0f7ff; }
.dp-item:last-child { border-bottom: none; }
.dp-item-body { flex: 1; min-width: 0; }
.dp-item-title { font-size: 13px; font-weight: 600; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-item-sub { font-size: 11px; color: #6b7280; }

/* Evrak bar satırları */
.dp-evrak-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid #f9fafb;
  cursor: pointer;
  transition: background .15s;
}
.dp-evrak-row:hover { background: #f0f7ff; }
.dp-evrak-name { flex: 1; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-evrak-bar {
  width: 120px; height: 6px;
  background: #e5e7eb; border-radius: 3px;
  overflow: hidden; flex-shrink: 0;
}
.dp-evrak-bar > div { height: 100%; border-radius: 3px; transition: width .3s; }
.dp-evrak-count { font-size: 12px; font-weight: 700; min-width: 40px; text-align: right; }

/* Aktif Projeler Grid */
.dash-section { margin-bottom: 16px; }
.ds-head {
  font-size: 16px; font-weight: 700; color: #1e3a5f;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.ds-count {
  background: #e5e7eb; color: #374151;
  font-size: 12px; padding: 2px 8px; border-radius: 10px;
}
.dash-proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

/* Mini proje kartı */
.dash-pcard {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  border: 1px solid #f3f4f6;
  cursor: pointer;
  transition: all .2s;
}
.dash-pcard:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-1px); }
.dpc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.dpc-name { font-size: 14px; font-weight: 700; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; }
.dpc-badge {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px;
  background: #e5e7eb; color: #374151; flex-shrink: 0; margin-left: 8px;
}
.dpc-badge.s-new { background: #dbeafe; color: #1e40af; }
.dpc-badge.s-wip { background: #fef3c7; color: #92400e; }
.dpc-badge.s-apr { background: #ede9fe; color: #5b21b6; }
.dpc-badge.s-app { background: #dcfce7; color: #166534; }
.dpc-badge.s-don { background: #d1fae5; color: #065f46; }
.dpc-meta { font-size: 11px; color: #6b7280; margin-bottom: 8px; }
.dpc-bar { height: 5px; background: #e5e7eb; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.dpc-bar > div { height: 100%; border-radius: 3px; transition: width .3s; }
.dpc-foot { font-size: 11px; color: #6b7280; display: flex; align-items: center; gap: 6px; }

/* Footer */
.dash-footer {
  display: flex; gap: 24px; justify-content: center;
  padding: 20px; font-size: 12px; color: #9ca3af;
}

/* ═══ LOADING SPINNER ═══ */
.cee-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 40px; gap: 12px; color: #6b7280; font-size: 14px;
}
.cee-spinner {
  width: 24px; height: 24px; border: 3px solid #e5e7eb;
  border-top-color: #1e3a5f; border-radius: 50%;
  animation: cee-spin .8s linear infinite;
}
@keyframes cee-spin { to { transform: rotate(360deg); } }

/* ═══ EMPTY STATE ═══ */
.cee-empty {
  text-align: center; padding: 48px 24px; color: #9ca3af;
}
.cee-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: .6; }
.cee-empty-title { font-size: 16px; font-weight: 700; color: #6b7280; margin-bottom: 4px; }
.cee-empty-sub { font-size: 13px; margin-bottom: 16px; }
.cee-empty-btn {
  display: inline-block; padding: 10px 20px; background: #1e3a5f; color: #fff;
  border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 13px;
  text-decoration: none;
}
.cee-empty-btn:hover { background: #162d4a; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  #dashboardRoot { padding: 16px; }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .dash-title { font-size: 22px; }
  .dash-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash-stat { padding: 14px; }
  .ds-val { font-size: 22px; }
  .ds-icon { width: 40px; height: 40px; font-size: 18px; }
  .dash-row { grid-template-columns: 1fr; }
  .dash-proj-grid { grid-template-columns: 1fr; }
  .dp-evrak-bar { width: 80px; }
}
@media (max-width: 480px) {
  .dash-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dash-stat { padding: 12px; gap: 10px; }
  .ds-val { font-size: 20px; }
  .ds-icon { width: 36px; height: 36px; font-size: 16px; border-radius: 8px; }
  .dq-btn span.dq-icon { display: none; }
}
