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

:root {
  --bg: #f8f9fa;
  --text: #212529;
  --accent: #4e73df;
}
body.dark {
  --bg: #1a1a1a;
  --text: #f1f1f1;
  --accent: #00bcd4;
}

#app {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 220px;
  background: var(--accent);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.nav-item {
  color: white;
  margin: 10px 0;
  display: block;
  text-decoration: none;
}

.main {
  flex-grow: 1;
  padding: 20px;
  background: var(--bg);
  overflow-y: auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.kpi-card {
  background: white;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  cursor: move;
}
.kpi-card h3 {
  margin-top: 0;
}
.kpi-card canvas {
  width: 100%;
  height: 100px;
  margin-top: 10px;
}
body.dark .kpi-card {
  background: #2a2a2a;
  color: white;
}

#loginScreen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
#loginScreen input,
#loginScreen button {
  margin: 10px;
  padding: 10px;
  width: 240px;
}
