:root {
  --primary-red: #e31e24;
  --primary-navy: #000040;
  --accent-blue: #002266;
  --text-dark: #1f2937;
  --text-light: #f3f4f6;
  --white: #ffffff;
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header {
  background-color: var(--primary-navy);
  padding: 15px 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
}

nav ul {
  display: flex;
  gap: 25px;
}

nav ul li a {
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

nav ul li a:hover {
  color: var(--primary-red);
}

/* Hero Section */
.hero {
  position: relative;
  background-color: #b41419; /* Red fallback */
  background-image:
    linear-gradient(rgba(227, 30, 36, 0.8), rgba(180, 20, 25, 0.85)),
    url("../img/002.png");
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 150px 0 0 0; /* More top padding for absolute header */
  min-height: 90vh;
  display: flex;
  align-items: stretch; /* Alinhamento vertical esticado para preencher o fundo */
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 70% 50%,
    rgba(227, 30, 36, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  height: 100%;
}

.hero-left {
  max-width: 650px;
  z-index: 10;
  padding-bottom: 60px;
}

.hero-text h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-text p {
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 30px;
  opacity: 0.95;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.hero .form-group input,
.hero .form-group select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(
    0,
    0,
    0,
    0.4
  ) !important; /* Dark background like reference */
  color: #ffffff !important;
  font-family: inherit;
  font-size: 0.95rem;
}

.hero .form-group input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.hero .form-group select option {
  background: #b41419; /* Red background for dropdown options */
  color: white;
}

.hero .form-group.full-width {
  grid-column: span 2;
}

.btn-hero {
  background: var(--primary-navy); /* Dark blue button like reference */
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.3s;
}

.btn-hero:hover {
  background: #000060;
  transform: translateY(-2px);
}

.hero-image-right {
  position: absolute;
  bottom: 0px;
  right: -2%; /* Movido mais para a direita para equilibrar com o formulário */
  height: 100%;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  z-index: 5;
}

.hero-image-right img {
  height: 92%; /* Reduzido levemente para dar o "respiro" no topo e não tocar na barra azul */
  width: auto;
  object-fit: contain;
  margin-bottom: -1px; /* Remove qualquer gap subpixel na base */
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 35px;
  opacity: 0.9;
}

.hero-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-form h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--white);
}

.form-group {
  margin-bottom: 15px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 0.95rem;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  background-color: var(--primary-red);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background-color: #c4191f;
  transform: translateY(-2px);
}

/* Login — primeiro acesso (botão + texto orientativo) */
.login-primeiro-wrap {
  margin-top: 20px;
  text-align: center;
}

.login-primeiro-msg {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-navy);
  line-height: 1.45;
}

.btn-primeiro-acesso {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-navy) 0%, #12125c 100%);
  color: var(--white) !important;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 64, 0.32);
  transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primeiro-acesso__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primeiro-acesso__inner .fa-key {
  font-size: 1.1rem;
  opacity: 0.95;
}

.btn-primeiro-acesso:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 0, 64, 0.38);
  color: var(--white) !important;
}

/* —— Página de login do portal (premium, isolada do .hero-form da home) —— */
.portal-login {
  position: relative;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 64px;
  overflow: hidden;
  background:
    linear-gradient(165deg, #e8ecf4 0%, #f1f5f9 38%, #f8fafc 100%);
}

.portal-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(227, 30, 36, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(0, 0, 64, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.portal-login::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 140vw);
  height: min(900px, 140vw);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(248, 250, 252, 0.4) 45%,
    transparent 70%
  );
  pointer-events: none;
}

.portal-login__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
}

.portal-login__card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 42px 38px 40px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 48px -12px rgba(15, 23, 42, 0.12),
    0 12px 24px -8px rgba(15, 23, 42, 0.08);
}

.portal-login__eyebrow {
  display: block;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
}

.portal-login__title {
  margin: 0 0 8px;
  text-align: center;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary-navy);
  line-height: 1.2;
}

.portal-login__subtitle {
  margin: 0 0 32px;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.45;
}

.portal-login__alert {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 24px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
}

.portal-login__alert--success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.portal-login__alert--error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #991b1b;
  border: 1px solid #fecaca;
}

.portal-login .login-field {
  margin-bottom: 22px;
}

.portal-login .login-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}

.portal-login .login-field__wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 4px 4px 4px 16px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.portal-login .login-field__wrap:focus-within {
  border-color: rgba(227, 30, 36, 0.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(227, 30, 36, 0.1);
}

.portal-login .login-field__wrap i {
  color: #94a3b8;
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.portal-login .login-field__wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 14px 12px 14px 0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0f172a;
  outline: none;
}

.portal-login .login-field__wrap input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.portal-login .btn-submit {
  margin-top: 8px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #e31e24 0%, #b91c1c 100%);
  color: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 4px 14px rgba(227, 30, 36, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

.portal-login .btn-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(227, 30, 36, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.portal-login .login-primeiro-wrap {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #e2e8f0;
}

.portal-login .login-primeiro-msg {
  margin: 0 0 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.5;
}

.portal-login .btn-primeiro-acesso {
  background: transparent;
  border: 2px solid var(--primary-navy);
  color: var(--primary-navy) !important;
  box-shadow: none;
  border-radius: 14px;
  padding: 15px 18px;
  font-weight: 800;
}

.portal-login .btn-primeiro-acesso:hover {
  filter: none;
  background: rgba(0, 0, 64, 0.04);
  color: var(--primary-navy) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 64, 0.12);
}

.portal-login .btn-primeiro-acesso__inner .fa-key {
  color: var(--primary-red);
}

.portal-login__foot {
  text-align: center;
  margin-top: 22px;
  padding: 0 4px;
}

.portal-login__foot span {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.55;
  display: block;
  max-width: 28rem;
  margin: 0 auto;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-navy);
  position: relative;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-red);
}

/* Cards & Components */
.about-summary {
  display: grid;
  grid-template-columns: 1.3fr 1fr; /* Mais espaço para a imagem se destacar */
  gap: 50px;
  align-items: center;
}

/* Inversão: Imagem na Esquerda, Texto na Direita */
.about-summary > :nth-child(1).about-text {
  order: 2;
}
.about-summary > :nth-child(2).about-image {
  order: 1;
}

/* Para a página sobre onde a imagem já vem primeiro no HTML, force a imagem na esquerda */
.about-summary > :nth-child(1).about-image {
  order: 1;
}
.about-summary > :nth-child(2).about-text {
  order: 2;
}

.about-text h3 {
  color: var(--primary-red);
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 30px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.about-text p {
  font-size: 1.1rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-image {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center; /* Centralizado para permitir a subida visual */
  justify-content: center;
  min-height: 700px; /* Altura generosa para bater com o bloco de texto */
}



.about-image img {
  width: 100%;
  max-width: 900px;
  height: auto;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.7) translateY(5%) translateX(15%); /* Ampliado e movido para a DIREITA para preencher a área solicitada */
  
  /* Mascara recalibrada para o novo tamanho menor */
  -webkit-mask-image: linear-gradient(to bottom, 
      rgba(0,0,0,1) 0%, 
      rgba(0,0,0,1) 90%, 
      rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(to bottom, 
      rgba(0,0,0,1) 0%, 
      rgba(0,0,0,1) 90%, 
      rgba(0,0,0,0) 100%
  );
}

.about-image:hover img {
  transform: scale(1.7) translateY(5%) translateX(15%);
}

.approved-banner {
  background-color: var(--primary-red);
  color: var(--white);
  text-align: center;
  padding: 20px 0;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0;
}

.approved-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.approved-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.approved-card:hover {
  transform: translateY(-5px);
}

/* Footer */
footer {
  background-color: #000c22;
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  margin-bottom: 20px;
  color: var(--primary-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    align-items: center;
  }

  .hero-left {
    max-width: 100%;
    padding-bottom: 40px;
  }

  .hero-image-right {
    display: none; /* Hide large hero image on tablets/mobile to focus on form */
  }

  .about-summary {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .form-grid {
    max-width: 500px;
    margin: 0 auto 20px;
  }
}

@media (max-width: 900px) {
  .container {
    padding: 0 20px;
  }

  .menu-toggle {
    display: flex !important; /* Show toggle */
  }

  header .nav-container {
    justify-content: space-between;
    position: relative;
    padding: 0;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%; /* Center vertically if container height allows */
    margin-top: -25px; /* Half of image height (50px) to truly center vertically */
  }

  .menu-toggle {
    margin-left: auto; /* Push hamburger to the right */
    z-index: 1002; /* Ensure clickable */
  }

  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-navy);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  #main-nav.active {
    display: block;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  #main-nav ul li {
    width: 100%;
    text-align: center;
  }

  #main-nav ul li a {
    display: block;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1rem;
  }

  #main-nav ul li:last-child a {
    border-bottom: none;
    margin-top: 10px;
    display: inline-block; /* Keep login button style */
    width: auto;
  }

  section {
    padding: 60px 0;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-form {
    padding: 30px;
  }

  .portal-login__card {
    padding: 32px 24px 30px;
    border-radius: 20px;
  }

  .portal-login__title {
    font-size: 1.45rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Responsividade das Imagens e Layouts Institucionais */
  .about-summary {
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
    text-align: left;
    padding: 20px 18px !important;
    width: 100% !important;
    margin: 0 !important;
    overflow-x: hidden !important;
  }

  .about-summary > div {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .about-summary h2, .about-summary h3 {
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .about-summary > .about-image {
    order: 1 !important; /* Foto em cima */
    min-height: 250px !important;
    margin-bottom: 0 !important;
  }

  .about-summary > .about-text {
    order: 2 !important; /* Texto embaixo */
    display: block !important;
    position: relative !important;
    left: 0 !important;
    transform: none !important;
  }

  .about-image img {
    transform: scale(1.05) translateY(0) translateX(0) !important;
    width: auto !important;
    height: 340px !important; 
    margin-top: -30px; /* Puxa o boneco para cima para preencher o vazio */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%) !important;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 90%, rgba(0,0,0,0) 100%) !important;
  }

  /* Ajuste do Hero (Cabeçalho com imagem lateral) na Mobile */
  .hero-image-right {
    height: 50% !important; /* Reduzido para não brigar com o texto no centro */
    opacity: 0.3 !important; /* Efeito de marca d'água para manter a legibilidade */
    right: 0 !important;
    pointer-events: none;
  }

  .hero-image-right img {
    height: 100% !important;
  }

  /* BOTÃO FLUTUANTE DE LOGIN (Portal do Responsável) */
  /* BOTÃO FLUTUANTE DE LOGIN (Portal do Responsável) */
  .mobile-login-fab {
    display: flex !important;
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-image: url('../img/login_fab_bg.png');
    background-size: cover;
    background-position: center;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(255,255,255,0.1);
    z-index: 10001;
    text-decoration: none;
  }

  .pulsing-button {
    animation: wavePulse 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes wavePulse {
    0% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 25px rgba(227, 30, 36, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0); transform: scale(1); }
  }

  /* Refino de Responsividade Institucional */
  .about-summary { padding: 20px 18px !important; }
  .about-summary h2 { font-size: 1.5rem !important; margin-bottom: 12px !important; color: var(--primary-red); }
  .about-summary h3 { 
    font-size: 1.85rem !important; 
    margin-bottom: 25px !important; 
    line-height: 1.15 !important; 
    font-weight: 900 !important;
    text-align: center !important;
  }
  .about-text p { 
    font-size: 1.05rem !important; 
    line-height: 1.6 !important; 
    margin-bottom: 20px !important; 
    text-align: left !important; /* Texto corrido melhor para ler à esquerda */
    color: #444;
  }
  .section-title { margin-bottom: 25px !important; }
  
  .about-image { min-height: 250px !important; display: flex; align-items: flex-end; justify-content: center; overflow: visible; }
  .about-image img { 
    height: 350px !important; 
    margin-top: -30px !important; /* Ajustado para não cortar a cabeça */
    object-fit: contain;
  }
}

/* Hide FAB on Desktop */
.mobile-login-fab { display: none; }

/* Toggle Button Styling */
.menu-toggle {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  transition: 0.3s;
}

/* X animation */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Admin Panel Specific Utility for Responsiveness */
@media (max-width: 850px) {
  .sidebar {
    width: 60px;
    padding: 15px 5px;
  }
  .sidebar h2,
  .sidebar p,
  .sidebar span,
  .sidebar nav ul li a span {
    display: none;
  }
  .sidebar nav ul li a {
    justify-content: center;
    padding: 15px 0;
  }
  .sidebar nav ul li a i {
    font-size: 1.4rem;
    margin: 0;
  }
  .main-content {
    margin-left: 60px;
    padding: 20px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}