/* ==========================================================================
   HAO TOOLS — USER DASHBOARD & TOOLS WORKSPACE LAYOUT (css/dashboard.css)
   ========================================================================== */

.app-shell {
  display: grid;
  grid-template-columns: 265px 1fr;
  min-height: 100vh;
}

.app-sidebar {
  background: #131713;
  border-right: 1px solid var(--border-subtle);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  font-weight: 700;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-topbar {
  height: 70px;
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(16, 19, 16, 0.82);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.app-content {
  padding: 2rem;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
}

/* KPI Metric Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.kpi-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.kpi-trend {
  font-size: 0.78rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Progress Bar */
.quota-bar-track {
  width: 100%;
  height: 9px;
  background: #0e120e;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.quota-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Interactive Tool Workbench */
.tool-workbench {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.tool-IO-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.tool-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0;
}

/* Auth Split Screen */
.auth-wrapper {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-soft);
}
