/* Interactive SaaS Dashboard UI Styles - Ridian Editorial Theme */

.dashboard-wrapper {
  position: relative;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: linear-gradient(135deg, var(--line) 0%, rgba(44, 195, 107, 0.2) 100%);
  box-shadow: var(--shadow-hover);
}

.dashboard-container {
  background: var(--ink);
  color: #ffffff;
  border-radius: calc(var(--radius-lg) - 4px);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 560px;
  font-family: var(--body);
}

/* Dashboard Sidebar */
.dash-sidebar {
  background: #071224;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dash-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-menu-title {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  padding: 0.5rem 0.75rem;
}

.dash-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.dash-item:hover, .dash-item.active {
  background: rgba(44, 195, 107, 0.15);
  color: #ffffff;
}

.dash-item.active {
  border-left: 3px solid var(--brass);
  font-weight: 600;
}

.dash-item svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.5);
}

.dash-item.active svg {
  color: var(--brass);
}

/* Main Dashboard Body */
.dash-body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-x: hidden;
}

/* Top bar inside dashboard */
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-project-selector {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-xs);
  font-family: var(--mono);
  font-size: 0.825rem;
  font-weight: 600;
  color: #ffffff;
}

.dash-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-label {
  font-family: var(--mono);
  font-size: 0.725rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-val {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.metric-badge {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.metric-badge.up {
  background: rgba(44, 195, 107, 0.2);
  color: var(--brass);
}

/* Main Visual Panels */
.dash-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}

.dash-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xs);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

/* SVG Chart Visual */
.chart-container {
  width: 100%;
  height: 180px;
  position: relative;
}

.svg-chart {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-line {
  fill: none;
  stroke: url(#chart-gradient);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.chart-area {
  fill: url(#area-gradient);
  opacity: 0.35;
}

/* AI Citation Feed */
.citation-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.citation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 0.825rem;
}

.citation-engine {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #ffffff;
}

.citation-status {
  color: var(--brass);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.75rem;
  background: rgba(44, 195, 107, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
