/*
---------------------------------------------------------------------------
DEVNITE STUDIOS
---------------------------------------------------------------------------
Project      : Kirzen 4.1
Organization : Devnite Studios
License      : Proprietary
Copyright    : © 2026 Devnite Studios. All rights reserved.

This source file is proprietary software developed and maintained by
Devnite Studios as part of the Kirzen 4.1 project.

Unauthorized copying, redistribution, modification, publication,
or reproduction of this file or any portion of its contents is strictly
prohibited without prior written authorization from Devnite Studios.
---------------------------------------------------------------------------
*/

/* ============================================================================
   STAT CARDS
   ============================================================================ */

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-label {
  margin: 0;

  color: var(--text-secondary);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.stat-value {
  color: var(--text-primary);

  font-size: 28px;
  font-weight: 700;

  line-height: 1;
  letter-spacing: -0.7px;
}

.stat-sub {
  margin-top: 3px;

  color: var(--text-muted);

  font-size: 11px;
  line-height: 1.4;
}

.stat-status-row {
  display: flex;
  align-items: center;
  gap: 8px;

  min-height: 28px;
}

.stat-value--status {
  font-size: 19px;
  letter-spacing: -0.2px;
}

/* ============================================================================
   SKELETONS
   ============================================================================ */

.skeleton-card {
  position: relative;

  height: 116px;

  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);

  overflow: hidden;
}

.skeleton-card::after {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.045),
    transparent
  );

  animation: dashboard-shimmer 1.4s ease-in-out infinite;
}

@keyframes dashboard-shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}


.badges-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 7px;

  margin-top: 10px;
}

/* ============================================================================
   QUICK ACTIONS
   ============================================================================ */

.quick-actions {
  margin-top: 30px;
}

.quick-actions-header {
  margin-bottom: 13px;
}

.quick-actions-title {
  color: var(--text-primary);

  font-size: 15px;
  font-weight: 600;

  line-height: 1.3;
}

.quick-actions-desc {
  margin-top: 3px;

  color: var(--text-muted);

  font-size: 12px;
}

.quick-actions-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 10px;
}

.quick-action {
  position: relative;

  display: flex;
  align-items: center;

  gap: 10px;

  min-width: 0;

  padding: 13px;

  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);

  background: var(--bg-surface);

  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.quick-action:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.quick-action:active {
  transform: translateY(0);
}

.quick-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  flex-shrink: 0;

  border: 1px solid rgba(88, 101, 242, 0.18);
  border-radius: var(--radius-md);

  background: var(--accent-subtle);

  color: var(--accent-primary);
}

.quick-action-copy {
  display: flex;
  flex-direction: column;

  min-width: 0;
  flex: 1;
}

.quick-action-copy strong {
  overflow: hidden;

  color: var(--text-primary);

  font-size: 12px;
  font-weight: 600;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-action-copy small {
  margin-top: 2px;

  overflow: hidden;

  color: var(--text-muted);

  font-size: 10px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-action-arrow {
  flex-shrink: 0;

  color: var(--text-muted);

  transition:
    color var(--transition-fast),
    transform var(--transition-fast);
}

.quick-action:hover .quick-action-arrow {
  color: var(--text-primary);

  transform: translateX(2px);
}


/* ============================================================================
   OVERVIEW REFRESH
   ============================================================================ */
.overview-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.overview-hero-copy { min-width:0; }
.overview-eyebrow,.panel-eyebrow { display:inline-flex; margin-bottom:7px; color:var(--accent-primary); font-size:10px; font-weight:750; letter-spacing:.09em; text-transform:uppercase; }
.overview-health-pill { display:inline-flex; align-items:center; gap:8px; flex:0 0 auto; padding:8px 11px; border:1px solid var(--border-color); border-radius:var(--radius-full); background:rgba(255,255,255,.025); color:var(--text-secondary); font-size:11px; font-weight:650; cursor:pointer; text-align:left; text-decoration:none; font-family:inherit; transition:border-color var(--transition-fast),background var(--transition-fast),color var(--transition-fast); }
.overview-health-pill:hover { border-color:var(--border-strong); background:rgba(255,255,255,.05); color:var(--text-primary); }
.overview-health-pill:focus-visible { outline:2px solid var(--accent-primary); outline-offset:2px; }
.overview-health-pill--warn { border-color:rgba(245,158,11,.34); background:rgba(245,158,11,.08); color:#fbbf24; }
.overview-health-pill--down { border-color:rgba(239,68,68,.34); background:rgba(239,68,68,.08); color:#f87171; }
.overview-health-action { display:none; padding:2px 8px; border:1px solid currentColor; border-radius:var(--radius-full); color:inherit; font-size:10px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.overview-health-pill--warn .overview-health-action,.overview-health-pill--down .overview-health-action { display:inline-flex; }

.overview-stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.stat-card { min-height:148px; padding:16px; border-radius:var(--radius-xl); background:radial-gradient(circle at 100% 0, rgba(88,101,242,.08), transparent 46%),var(--bg-surface); transition:border-color var(--transition-fast),transform var(--transition-fast),box-shadow var(--transition-fast); }
.stat-card:hover { border-color:var(--border-strong); transform:translateY(-2px); box-shadow:var(--shadow-md); }
.stat-card-topline { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:16px; }
.stat-icon { display:grid; place-items:center; width:30px; height:30px; border:1px solid rgba(88,101,242,.2); border-radius:9px; background:var(--accent-subtle); color:var(--accent-primary); font-size:14px; }
.stat-trend { color:var(--text-muted); font-size:10px; font-weight:650; }
.stat-card .stat-value { margin-top:7px; }
.stat-value--status { font-size:20px; }
.overview-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr); gap:12px; margin-top:12px; }
.overview-panel { min-width:0; padding:18px; border-radius:var(--radius-xl); }
.panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:16px; }
.panel-heading h2 { margin:0; color:var(--text-primary); font-size:15px; font-weight:700; letter-spacing:-.2px; }
.panel-link { color:var(--text-secondary); font-size:11px; font-weight:650; text-decoration:none; }
.panel-link:hover { color:var(--text-primary); }
.coverage-summary { display:flex; align-items:center; gap:20px; }
/* The label stack is centred as a flex column instead of a grid: the old
   layout relied on hand-tuned margins that drifted into the ring stroke as
   soon as the percentage grew to three digits. */
.coverage-ring { --coverage:0deg; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; position:relative; width:124px; height:124px; flex:0 0 124px; border-radius:50%; background:conic-gradient(var(--accent-primary) var(--coverage),rgba(255,255,255,.06) 0deg); }
.coverage-ring::after { content:""; position:absolute; inset:11px; border-radius:50%; background:var(--bg-surface); border:1px solid var(--border-color); }
.coverage-ring > span,.coverage-ring > small { position:relative; z-index:1; max-width:74px; text-align:center; line-height:1; }
.coverage-ring > span { color:var(--text-primary); font-size:22px; font-weight:750; letter-spacing:-.4px; }
.coverage-ring > small { color:var(--text-muted); font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.coverage-copy { min-width:0; flex:1; }
.coverage-row,.snapshot-item { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--border-subtle); color:var(--text-secondary); font-size:11px; }
.coverage-row strong,.snapshot-item strong { color:var(--text-primary); font-size:12px; }
.coverage-copy p { margin:10px 0 0; color:var(--text-muted); font-size:10px; line-height:1.5; }
.snapshot-list { border-top:1px solid var(--border-subtle); }
.overview-note { margin-top:13px; padding:11px 12px; border:1px solid rgba(88,101,242,.14); border-radius:var(--radius-md); background:rgba(88,101,242,.06); color:var(--text-secondary); font-size:10px; line-height:1.5; }
.badges-section { margin-top:12px; }
.badges-card { padding:18px; border-radius:var(--radius-xl); }
.quick-actions { margin-top:24px; }
.quick-actions-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
@media (max-width:1050px) { .overview-stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .quick-actions-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) { .overview-hero { align-items:flex-start; flex-direction:column; } .overview-grid { grid-template-columns:1fr; } }
@media (max-width:520px) { .overview-stats-grid,.quick-actions-grid { grid-template-columns:1fr; } .coverage-summary { align-items:flex-start; flex-direction:column; } }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 850px) {
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .skeleton-card {
    height: 105px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-card::after {
    animation: none;
  }
}
