@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f5f5f5;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 78px;
  height: 100%;
  background: #11101d;
  padding: 6px 14px;
  transition: all 0.3s ease;
  z-index: 1000;
}

.sidebar.hidden {
  left: -78px;
  opacity: 0;
}

/* Hover para reabrir a sidebar */
.hover-area {
  position: fixed;
  left: 0;
  top: 0;
  width: 10px;
  height: 100%;
  z-index: 999;
}

.hover-area:hover ~ .sidebar.hidden,
.sidebar:hover {
  left: 0;
  opacity: 1;
}

/* Topbar */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: #11101D;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 1001;
  transition: top 0.3s ease;
}

.topbar.hidden {
  top: -60px;
}

.topbar a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}

.topbar a i {
  margin-right: 5px;
  font-size: 18px;
}

.topbar button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.topbar button:hover {
  color: #1abc9c;
}

#hoverZoneTop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  z-index: 1000;
  display: none;
}

/* Home section (conteúdo principal da aplicação) */
.home-section {
  position: relative;
  min-height: 100vh;
  background: #f5f5f5;
  transition: all 0.3s ease;
  padding: 20px;
  margin-left: 78px;     /* quando sidebar está visível */
  padding-top: 50px;     /* quando topbar está visível */
}

/* Ajustes quando a sidebar está oculta */
.sidebar.hidden ~ .home-section {
  margin-left: 0;
}

/* Ajustes quando a topbar está oculta */
.topbar.hidden ~ .home-section {
  padding-top: 0;
}
/* Quando fixo, não esconder automaticamente */
.sidebar.pinned {
  left: 0 !important;
  opacity: 1 !important;
}

