:root {
  --bg: #0f172a;
  --text: #e2e8f0;
  --card: #1e293b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --danger: #ef4444;
  --muted: #94a3b8;
  --line: #334155;
  --shadow: rgba(0, 0, 0, 0.25);
  --panel-bg: #1a253a;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

.dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--card);
  color: var(--text);
  height: 100vh;
  overflow-y: auto;
  padding: 1rem;
  box-shadow: 2px 0 6px var(--shadow);
  transition: transform 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  transform: translateX(0);
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar header {
  display: flex;
  justify-content: center;
  margin: 70px 0 1rem;
}

.toggle-button {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 2001;
  background: var(--accent);
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: bold;
  box-shadow: 0 2px 6px var(--shadow);
}

.toggle-button:hover {
  background: var(--accent-hover);
}

.sidebar .btn, .logout {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 1rem;
  font-weight: bold;
  box-shadow: 0 2px 6px var(--shadow);
}

.logout {
  background: var(--danger);
}

/* Navigation Items */
.sidebar nav a,
.sidebar nav button.accordion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: none;
  color: var(--text);
  padding: 12px 16px;
  font-size: 15px;
  width: 100%;
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px var(--shadow);
}

.sidebar nav a:hover,
.sidebar nav button.accordion:hover {
  background: var(--accent-hover);
  transform: translateX(2px);
}

.accordion::after {
  content: '▸';
  font-size: 13px;
  transition: transform 0.3s ease;
}

.accordion.open::after {
  content: '▾';
}

.panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  background: var(--panel-bg);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  padding-left: 10px;
  margin-bottom: 10px;
}

.panel a {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.panel a:hover {
  background: var(--line);
}

.main {
  flex-grow: 1;
  padding: 2rem;
  margin-left: 260px;
  transition: margin-left 0.3s ease;
  min-height: 100vh;
  box-sizing: border-box;
}

.dashboard.collapsed-sidebar .main {
  margin-left: 0;
}

/* Other UI blocks below (kpi, charts, etc) – left unchanged but kept here */

.topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.plan-box { display: flex; align-items: center; gap: 8px; }
.badge { background: var(--accent); color: white; padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.progress-bar { height: 8px; width: 100px; background: var(--line); border-radius: 6px; overflow: hidden; }
#planProgress { height: 100%; background: var(--accent); width: 0%; transition: width 0.3s ease; }
.upgrade-btn { font-size: 12px; color: var(--accent); text-decoration: underline; }
.quick-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 10px; }
.quick-actions button { background: var(--accent); color: white; padding: 8px 14px; border: none; border-radius: 6px; cursor: pointer; font-weight: 500; transition: background 0.2s ease; }
.quick-actions button:hover { background: var(--accent-hover); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 2rem; }
.kpi-card { background: var(--card); padding: 1rem; border-radius: 10px; box-shadow: 0 2px 8px var(--shadow); }
.kpi-card h3 { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.kpi-card p { font-size: 20px; font-weight: 600; margin: 0; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 2rem; }
.chart-box { background: var(--card); padding: 1rem; border-radius: 10px; box-shadow: 0 2px 8px var(--shadow); height: 300px; }
.suggestions, .activity { background: var(--card); padding: 1rem 1.5rem; margin-top: 2rem; border-radius: 12px; box-shadow: 0 2px 8px var(--shadow); }
.suggestions h2, .activity h2 { font-size: 16px; margin-bottom: 10px; }
.suggestions ul, .activity ul { list-style-type: disc; padding-left: 1.2rem; font-size: 14px; color: var(--muted); }



.btn-primary {
 background: var(--accent);
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 6px var(--shadow);
  transition: background 0.2s ease;
}

.


.theme-dark {
  --bg: #0f172a;
  --text: #e2e8f0;
  --card: #1e293b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --danger: #ef4444;
  --muted: #94a3b8;
  --line: #334155;
  --shadow: rgba(0, 0, 0, 0.25);
}
/* LIGHT THEME */
.theme-light {
  --bg: #f1f5f9;
  --text: #1e293b;
  --card: #ffffff;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --danger: #ef4444;
  --muted: #64748b;
  --line: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.1);
  --panel-bg: #f8fafc;
}

@media (max-width: 768px) {
  .main {
    margin-left: 0 !important;
  }
}
  
 
