html {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  align-items: flex-start;
}

/* ===== SIDEBAR ===== */
#sidebar-container {
  position: sticky;
  top: 0;
  height: 100vh;
  flex-shrink: 0;
}

.sidebar {
  width: 240px;
  height: 100vh;
  background-color: #0f172a;
  color: white;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-header {
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  border-bottom: 1px solid #1e2a47;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 18px;
  color: white;
}

.menu {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 0;
}

.menu a {
  display: block;
  padding: 14px 20px;
  color: #cbd5e1;
  text-decoration: none;
  transition: background 0.2s;
  font-size: 14px;
}

.menu a:hover {
  background-color: #1e2a47;
  color: white;
}

.menu a.active {
  background-color: #f97316;
  color: white;
}

.sidebar-footer {
  padding: 20px;
}

.sidebar-footer button {
  width: 100%;
  padding: 10px;
  background: #dc3545;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.sidebar-footer button:hover {
  background: #bb2d3b;
}

/* ===== CONTEUDO ===== */
.conteudo {
  flex: 1;
  padding: 40px;
  background: #f4f6fa;
  min-width: 0;
  min-height: 100vh;
}

.topbar {
  margin-bottom: 24px;
}