/* DASHBOARD PAGE */

.page-dashboard {
  padding: 3rem 0;
}

.page-dashboard .glass-surface {
  padding: 2.4rem;
}

/* Layout */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2.2rem;
}

/* Sidebar */
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-card {
  border-radius: 18px;
  padding: 1.1rem 1.1rem 1rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(16px);
}

.sidebar-title {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.sidebar-link {
  width: 100%;
  border-radius: 999px;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: background 0.15s ease-out, color 0.15s, transform 0.15s;
}

.sidebar-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.9);
  transform: scale(0.7);
  transition: transform 0.15s ease-out, box-shadow 0.15s, background 0.15s;
}

.sidebar-link:hover {
  background: rgba(15, 23, 42, 1);
  color: #e5e7eb;
  transform: translateY(-1px);
}

.sidebar-link.active {
  background: linear-gradient(
    90deg,
    rgba(102, 126, 234, 0.16),
    rgba(124, 58, 237, 0.26)
  );
  color: #e5edff;
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.8);
}

.sidebar-link.active::before {
  background: #a855f7;
  transform: scale(1);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.95);
}

/* Content */
.dashboard-content {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.98);
  padding: 1.5rem 1.6rem 1.6rem;
}

.dashboard-panel {
  display: none;
}

.dashboard-panel.active {
  display: block;
}

.panel-header h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.panel-header p {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Stats */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.3rem 0 1.8rem;
}

.stat-card {
  border-radius: 16px;
  padding: 1rem 1.2rem 1.1rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 126, 234, 0.7);
  box-shadow: 0 14px 38px rgba(76, 81, 191, 0.35);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.stat-value {
  font-weight: 800;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.15rem;
}

.stat-caption {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Split cards */
.dashboard-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.dashboard-split .card h4 {
  font-size: 0.96rem;
  margin-bottom: 0.65rem;
}

.dashboard-split .card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

/* action items */
.action-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.action-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.action-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg,
    rgba(102, 126, 234, 0.4),
    rgba(118, 75, 162, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-text {
  font-size: 0.86rem;
}

/* Tips */
.tip-item {
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.tip-item:last-child {
  border-bottom: none;
}

.tip-number {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.2);
  color: #818cf8;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tip-text {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 960px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
}
