/* ============================== */
/*            SIDE BAR            */
/* ============================== */

.conteiner-side-bar-main {
  display: block;
  min-height: 100vh;
  background-color: var(--color-sidebar-layout-bg);
  font-family: var(--font-family-base);
}

.area-sidebar {
  background-color: var(--color-background-menu);
  border-right: 1px solid var(--color-border-sidebar);
  padding: 2rem 1rem;
  box-shadow: 1px 0 3px var(--color-background-box-shadow);
  position: fixed;
  top: 85px; /* altura do header, ajuste se mudar */
  left: 0;
  height: calc(100vh - 85px);
  overflow-y: auto;
  z-index: 1000;
}

.area-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.area-nav li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-sidebar-link);
  font-size: var(--text-md);
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.area-nav li a:hover,
.area-nav li a.active,
.menu-link.menu-ativo {
  background-color: var(--color-sidebar-hover);
  color: var(--color-sidebar-hover-text);
  font-weight: bold;
}

.area-main {
  padding: 2rem 2.5rem;
  background-color: var(--color-background-main);
  margin-left: 240px; /* mesma largura da sidebar */
}

.button-send-mail {
  width: auto;
  max-width: 200px;
  min-width: 190px;
  display: block;
  margin: 0 auto 1rem;
  background-color: var(--color-button-hover);
  color: var(--color-white);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: var(--text-md);
  font-weight: 500;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
  transition: all 0.2s ease-in-out;
}

.button-send-mail:hover {
  background-color: color-mix(in srgb, var(--color-button-hover) 80%, black);
}

/* ============================== */
/* 📱 Responsivo - até 1120px */
/* ============================== */

@media (width <= 1120px) {
  .conteiner-side-bar-main {
    display: flex;
    flex-direction: column;
  }

  .area-sidebar {
    position: static;
    top: auto;
    left: auto;
    height: auto;
    overflow-y: visible;
    z-index: auto;
    border-right: none;
    border-bottom: 1px solid var(--color-border-sidebar);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .area-main {
    margin-left: 0;
    padding: 1rem;
  }

  .area-nav {
    flex-flow: row wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .button-send-mail {
    max-width: 400px;
    min-width: 250px;
  }
}

/* ============================== */
/* 📱 Responsivo - até 768px */
/* ============================== */

@media (width <= 768px) {
  .area-nav {
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
  }

  .button-send-mail {
    max-width: 250px;
    min-width: 100px;
  }
}
