    /* ===========================
   🎨 VARIÁVEIS DE COR
   =========================== */
:root {
  --lime: #84cc16;
  --lime-dark: #65a30d;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --purple: #a855f7;
  --cyan: #06b6d4;
  --green: #22c55e;
  --blue: #3b82f6;
  --red: #ef4444;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;

  --white: #ffffff;
}

/* ===========================
   🧭 HEADER FIXO
   =========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ===========================
   📦 CONTEÚDO DO HEADER
   =========================== */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ===========================
   🏷️ LOGO
   =========================== */
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: transform 0.2s ease, border 0.3s ease;
}

.logo-link:hover .logo-img {
  transform: rotate(-5deg) scale(1.05);
  border-color: var(--teal);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--lime-dark), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.2s ease;
}

/* ===========================
   🔗 NAVEGAÇÃO PRINCIPAL
   =========================== */
.nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  list-style: none;
}

.nav a i {
  font-size: 1.1rem;
  color: var(--gray-600);
  transition: color 0.3s ease;
}

.nav a:hover {
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal-dark);
}

.nav a:hover i {
  color: var(--teal-dark);
}

.nav a.active {
  background: linear-gradient(to right, var(--lime), var(--teal));
  color: var(--white);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav a.active i {
  color: var(--white);
}

/* ===========================
   🔐 BOTÃO DE LOGIN
   =========================== */
.btn-login {
  background: linear-gradient(to right, var(--lime), var(--teal));
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-login:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* ===========================
   👤 PERFIL DO USUÁRIO LOGADO
   =========================== */
.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-profile-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 30px;
  transition: background 0.2s ease;
}

.user-profile-link:hover {
  background: rgba(20, 184, 166, 0.1);
}

.avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  border: 2px solid var(--teal);
}

.username-text {
  font-weight: 600;
  color: var(--gray-700);
}

/* ==== Botão de logout ==== */
.btn-logout {
  background: transparent;
  border: none;
  color: #000000;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, color 0.3s ease;
}

.btn-logout:hover {
  transform: scale(1.15);
  color: var(--lime-400, #a3e635);
}
  
/* ==== Toast ==== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 9999;
  border-left: 6px solid var(--teal-500, #14b8a6);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===========================
   📱 RESPONSIVIDADE
   =========================== */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 10px;
    padding: 0.8rem 1rem;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .btn-login {
    font-size: 0.9rem;
  }
}
