/* Sidebar no estilo "elegante com topo colorido" */
/* --------------------- */
/* SIDEBAR - ESTILO LIMPO */
/* --------------------- */

.sidebar {
  width:  auto;
  min-width: 280px;
  background: linear-gradient(to bottom, #1a5052, #2b8083);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  padding-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.sidebar-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-img {
  width: 200px;
  height: 200px;
  max-width: 90%;
  object-fit: cover;
  border-radius: 50%;
  margin: 30px auto 20px auto;
  display: block;
  border: 3px solid white;
}

.sidebar h1 {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin: 10px 0 0;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.role {
  font-size: 1rem;
  font-weight: 300;
  color: #e0e0e0;
  text-align: center;
  margin: 5px 0 25px;
  font-style: normal;
  letter-spacing: 0.3px;
}

.sidebar-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-top: 30px;
}

.sidebar-nav a {
  width: calc(100% - 40px);
  display: block;
  text-align: center;
  padding: 15px 0;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  color: #ffd32a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.sidebar-links {
  padding-left: 12px;
}

.sidebar-links p {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: white;
}

.sidebar-links i {
  margin-right: 5px;
}

.sidebar-links a {
  color: #aee3db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sidebar-links a:hover {
  color: #ffd32a;
}

.sidebar-divider {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 20px 0;
}

@media (max-width: 768px) {
  .layout {
    display: block;
  }

  .menu-toggle {
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1101;
    background-color: #1a5052;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1.2rem;
    cursor: pointer;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: linear-gradient(to bottom, #1a5052, #2b8083);
    z-index: 1100;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.4);
  }

  .sidebar.ativa {
    left: 0;
  }

  .content {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
  }
}
