/* ─────────────────────────────────────────
   SaaSBox — dashboard.css
───────────────────────────────────────── */

.hidden { display: none !important; }
.dash-main-wrap { min-height: 100vh; background-color: #0a0a0a; padding-top: 60px; }

.dash-loading {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-text {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
}

/* ── LAYOUT ── */
.dash-wrap-real {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 60px);
}

/* ── SIDEBAR ── */
.dash-side {
  background-color: #0d0d0d;
  border-right: 1px solid #1e1e1e;
  padding: 28px 20px;
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
}
.dash-side-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 3px;
  color: #ede8dc;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-side-mark {
  width: 10px; height: 10px;
  background-color: #f5c400;
  display: inline-block;
}
.dash-side-section {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.dash-side-i {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  padding: 11px 12px;
  border-left: 2px solid transparent;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.dash-side-i:hover { color: #ede8dc; background-color: rgba(245,196,0,0.04); }
.dash-side-i.on {
  color: #f5c400;
  border-left-color: #f5c400;
  background-color: rgba(245,196,0,0.06);
}
.dsi-arrow { font-size: 11px; }
.dash-side-divider {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #444;
  padding: 18px 12px 8px;
}

/* ── CONTENT ── */
.dash-content {
  padding: 40px 48px;
  max-width: 1100px;
  width: 100%;
}

/* ── WELCOME BAR ── */
.dash-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #1e1e1e;
  flex-wrap: wrap;
  gap: 16px;
}
.dash-welcome-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #f5c400;
  font-weight: 700;
  margin-bottom: 6px;
}
.dash-welcome-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  letter-spacing: 2px;
  color: #ede8dc;
  line-height: 1;
}
.dash-plan-badge {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 14px;
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #aaa;
}
.dash-plan-badge.unlimited,
.dash-plan-badge.mid {
  background-color: #f5c400;
  color: #0a0a0a;
  border-color: #f5c400;
}
.dash-plan-badge.payg {
  background-color: rgba(245,196,0,0.1);
  border-color: #f5c400;
  color: #f5c400;
}

/* ── STATS GRID ── */
.dash-stats-real {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: #1e1e1e;
  border: 1px solid #1e1e1e;
  margin-bottom: 28px;
}
.dsr-card {
  background-color: #0d0d0d;
  padding: 24px;
}
.dsr-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  color: #ede8dc;
  line-height: 1;
  margin-bottom: 6px;
}
.dsr-num.y { color: #f5c400; }
.dsr-lbl {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
}

/* ── UPGRADE BANNER ── */
.dash-upgrade {
  background-color: rgba(245,196,0,0.06);
  border: 1px solid rgba(245,196,0,0.2);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.du-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: #f5c400;
  margin-bottom: 4px;
}
.du-sub {
  font-size: 13px;
  font-weight: 500;
  color: #ccc;
  line-height: 1.5;
}
.du-btn {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background-color: #f5c400;
  color: #0a0a0a;
  padding: 12px 22px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
  white-space: nowrap;
}
.du-btn:hover { background-color: #e85d04; color: #ede8dc; }

/* ── SECTION TITLES ── */
.dash-section-title {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 16px;
}

/* ── ACTIVITY LIST ── */
.dash-activity-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: #1e1e1e;
  border: 1px solid #1e1e1e;
}
.activity-item {
  background-color: #0d0d0d;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: background-color 0.15s;
}
.activity-item:hover { background-color: #141414; }
.activity-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.activity-dot {
  width: 6px; height: 6px;
  background-color: #f5c400;
  border-radius: 50%;
  flex-shrink: 0;
}
.activity-tool {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: #ede8dc;
  margin-bottom: 3px;
}
.activity-input {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #777;
  max-width: 380px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-date {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #888;
  white-space: nowrap;
}
.activity-empty {
  background-color: #0d0d0d;
  padding: 32px;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: #666;
  border: 1px dashed #1e1e1e;
}
.activity-empty a { color: #f5c400; text-decoration: none; }

/* ── VIEW TITLES ── */
.dash-view-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  letter-spacing: 2px;
  color: #ede8dc;
  line-height: 1;
  margin-bottom: 8px;
}
.dash-view-sub {
  font-size: 15px;
  font-weight: 500;
  color: #aaa;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ── ACCOUNT CARD ── */
.account-card {
  background-color: #0d0d0d;
  border: 1px solid #1e1e1e;
  padding: 28px;
  margin-bottom: 24px;
}
.ac-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #1a1a1a;
}
.ac-row:last-child { border-bottom: none; }
.ac-k {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
}
.ac-v {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: #ede8dc;
  font-weight: 500;
}
.ac-v.y { color: #f5c400; }
.account-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ac-btn {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background-color: #f5c400;
  color: #0a0a0a;
  border: none;
  padding: 14px 22px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}
.ac-btn:hover { background-color: #e85d04; color: #ede8dc; }
.ac-btn.ghost {
  background: none;
  color: #888;
  border: 1px solid #2a2a2a;
}
.ac-btn.ghost:hover { background: none; color: #e85d04; border-color: #e85d04; }

/* ── TOOL VIEW OUTPUTS ── */
.dash-tool-outputs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tool-output-card {
  background-color: #0d0d0d;
  border: 1px solid #1e1e1e;
  padding: 20px;
}
.toc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1e1e1e;
  flex-wrap: wrap;
  gap: 10px;
}
.toc-date {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: #888;
}
.toc-input-snippet {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: #aaa;
  max-width: 600px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── LIGHT MODE ── */
body.light-mode .dash-main-wrap { background-color: #f5f0e8; }
body.light-mode .dash-side { background-color: #ede8dc; border-right-color: #ccc; }
body.light-mode .dash-side-logo { color: #111; }
body.light-mode .dash-side-divider { color: #aaa; }
body.light-mode .dash-side-i { color: #666; }
body.light-mode .dash-side-i:hover { color: #111; background-color: rgba(245,196,0,0.1); }
body.light-mode .dash-welcome { border-bottom-color: #ccc; }
body.light-mode .dash-welcome-eyebrow { color: #8a6d00; font-weight: 700; }
body.light-mode .dash-welcome-name,
body.light-mode .dash-view-title { color: #111; }
body.light-mode .dash-view-sub { color: #555; }
body.light-mode .dash-plan-badge { background-color: #ede8dc; border-color: #ccc; color: #555; }
body.light-mode .dash-stats-real { background-color: #ccc; border-color: #ccc; }
body.light-mode .dsr-card,
body.light-mode .activity-item,
body.light-mode .account-card,
body.light-mode .tool-output-card { background-color: #ede8dc; }
body.light-mode .activity-item:hover { background-color: #e0dbd0; }
body.light-mode .dsr-num,
body.light-mode .activity-tool,
body.light-mode .ac-v { color: #111; }
body.light-mode .dsr-lbl,
body.light-mode .ac-k,
body.light-mode .dash-section-title { color: #888; }
body.light-mode .activity-input,
body.light-mode .activity-date,
body.light-mode .toc-date,
body.light-mode .toc-input-snippet { color: #777; }
body.light-mode .dash-activity-list { background-color: #ccc; border-color: #ccc; }
body.light-mode .activity-empty { background-color: #ede8dc; border-color: #ccc; color: #888; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .dash-wrap-real { grid-template-columns: 1fr; }
  .dash-side {
    position: relative;
    top: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #1e1e1e;
  }
  .dash-content { padding: 28px 20px; }
  .dash-stats-real { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .dash-stats-real { grid-template-columns: 1fr; }
  .activity-input { max-width: 180px; }
}
