/* ============================================================
   PRONTIO – Menu (Sidebar + Topbar)
============================================================ */

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--color-bg);
  font-family: var(--font-main);
}

/* SIDEBAR */
.sidebar {
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  color: var(--sidebar-item);
  padding: 1rem 0.75rem;
}

/* Logo */
.sidebar-logo {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.5);
  margin-bottom: 1.2rem;
  text-align: center;
}

/* Navegação */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--sidebar-item);
  text-decoration: none;
  font-size: 0.86rem;
  transition: 0.15s ease;
  white-space: nowrap;
}

.sidebar-item:hover {
  background: var(--sidebar-item-hover);
}

.sidebar-item.active {
  background: var(--sidebar-item-active);
  color: #022c22;
  font-weight: 600;
}

/* Rodapé sidebar */
.sidebar-bottom {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148,163,184,0.35);
  font-size: 0.8rem;
}

/* MAIN AREA */
.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* TOPBAR */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 1.4rem;
  border-bottom: 1px solid var(--topbar-border);
  background: var(--topbar-bg);
}

.topbar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.content {
  padding: 1.2rem 1.6rem 2rem;
}

/* Responsivo */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 64px minmax(0,1fr);
  }
  .sidebar-logo { display: none; }
  .sidebar-item span { display: none; }
}
