/* =========================================================
   BASE GERAL DO SITE
   ========================================================= */
   :root {
    --green: #66CB66;
    --blue: #003366;
    --dark: #1F1F1F;
    --gray-dark: #444444;
    --gray: #888888;
    --gray-light: #F5F5F5;
    --white: #ffffff;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  p {
    margin: 0 0 0.75rem;
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  h1, h2, h3, h4 {
    margin: 0 0 0.75rem;
    font-weight: 600;
    color: #0F172A;
  }
  
  ul {
    margin: 0;
    padding-left: 1.1rem;
  }
  
  .container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  .section {
    padding: 4.5rem 0;
  }
  
  .section-light {
    background-color: var(--gray-light);
  }
  
  .section-cta {
    background: linear-gradient(135deg, var(--blue), #021A33);
    color: var(--white);
  }
  
  .section-cta h2,
  .section-cta p {
    color: var(--white);
  }
  
  /* =========================================================
     BOTÕES
     ========================================================= */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease-out;
    white-space: nowrap;
  }
  
  .btn-primary {
    background: var(--green);
    border-color: var(--green);
    color: #052E16;
    box-shadow: 0 10px 25px rgba(102, 203, 102, 0.35);
  }
  
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(102, 203, 102, 0.45);
  }
  
  .btn-secondary {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.07);
    color: #111827;
  }
  
  .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.04);
  }
  
  .btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #f5f5f5;
  }
  
  .btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
  }
  
  .btn-link {
    font-weight: 600;
    color: var(--blue);
    font-size: 0.95rem;
  }
  
  .btn-link::after {
    content: "→";
    margin-left: 0.35rem;
    font-size: 0.9rem;
  }
  
  .btn-full {
    width: 100%;
  }
  
  /* =========================================================
     CARDS / PILL
     ========================================================= */
  .card-elevated {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    color: #0F172A;
  }
  
  .pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.3rem 0.9rem;
    background: rgba(102, 203, 102, 0.14);
    color: #052E16;
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  /* =========================================================
     HEADER / NAVEGAÇÃO
     ========================================================= */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
  }
  
  .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
  }
  
  /* BLOCO PADRÃO DA MARCA "CG" */
  .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green), #9BE89B);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #052E16;
    font-size: 0.9rem;
  }
  
  .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
  }
  
  .logo-title {
    font-size: 1.02rem;
    font-weight: 700;
  }
  
  .logo-subtitle {
    font-size: 0.78rem;
    color: var(--gray);
  }
  
  /* SUPORTE PARA LOGO EM IMAGEM */
  .logo-img {
    display: block;
    height: 40px;
    width: auto;
  }
  
  /* Se quiser usar apenas a imagem (sem CG + texto),
     basta adicionar a classe "logo-only-img" no container .logo */
  .logo.logo-only-img .logo-mark,
  .logo.logo-only-img .logo-text {
    display: none;
  }
  
  /* Nav */
  .main-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
  }
  
  .nav-link {
    font-size: 0.92rem;
    color: var(--gray-dark);
    padding: 0.35rem 0;
    position: relative;
  }
  
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--green);
    border-radius: 999px;
    transition: width 0.18s ease-out;
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 100%;
  }
  
  .nav-cta {
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
  }
  
  .nav-cta.active {
    border-color: var(--green);
    background: rgba(102, 203, 102, 0.08);
  }
  
  /* Mobile nav - Padrão Desktop, oculto */
  .nav-toggle {
    display: none; 
    flex-direction: column;
    gap: 4px;
    border: none;
    background: transparent;
    cursor: pointer;
    /* Alinhamento ao centro do header */
    height: 30px; 
    justify-content: center;
  }
  
  .nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--dark);
  }
  
  /* =========================================================
     HERO
     ========================================================= */
  .hero {
    padding: 4.5rem 0 4rem;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3.2rem;
    align-items: center;
  }
  
  .hero-content h1 {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
  }
  
  .hero-content p {
    font-size: 0.98rem;
    max-width: 480px;
  }
  
  .hero-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.4rem;
  }
  
  .hero-highlights {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.8rem;
  }
  
  .highlight-item {
    display: flex;
    flex-direction: column;
  }
  
  .highlight-number {
    font-weight: 700;
    font-size: 1.4rem;
  }
  
  .highlight-label {
    font-size: 0.8rem;
    color: var(--gray);
  }
  
  .hero-media {
    position: relative;
    overflow: hidden;
  }
  
  .hero-media img {
    border-radius: var(--radius-lg);
  }
  
  /* ... dentro da seção HERO ... */
.hero-overlay-card {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  /* SUBSTITUIR: background: rgba(0, 0, 0, 0.74); */
  background: linear-gradient(90deg, rgba(0, 51, 102, 0.8), rgba(0, 20, 40, 0.6)); /* NOVO */
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  max-width: 260px;
  backdrop-filter: blur(4px); /* NOVO */
}
/* ... */
  
  .hero-overlay-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
  }
  
  .hero-overlay-subtitle {
    font-size: 0.8rem;
    opacity: 0.85;
    color: #ffffff;
  }
  
  /* =========================================================
     GRIDS / SEÇÕES
     ========================================================= */
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
  }
  
  .mt-32 {
    margin-top: 2rem;
  }
  
  .section-header {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 2.4rem;
  }
  
  .section-header h2 {
    font-size: 1.7rem;
  }
  
  /* Serviços (cards) */
  .service-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    color: #111827;
  }
  
  .service-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    overflow: hidden;
  }
  
  .service-card h3 {
    font-size: 1.05rem;
  }
  
  .service-card p {
    font-size: 0.9rem;
  }
  
  /* Sobre */
  .about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2.8rem;
    align-items: center;
  }
  
  .about-media img {
    border-radius: var(--radius-lg);
  }
  
  .check-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
  }
  
  .check-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
  }
  
  .check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--green);
    font-size: 0.9rem;
  }
  
  .about-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
    margin-top: 1.6rem;
  }
  
  .about-columns h3 {
    font-size: 1rem;
  }
  
  .team-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2.6rem;
    align-items: center;
  }
  
  .team-media img {
    border-radius: var(--radius-lg);
  }
  
  /* CTA */
  .section-cta .cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.2rem;
  }
  
  .section-cta p {
    max-width: 520px;
    opacity: 0.9;
  }
  
  .cta-actions {
    display: flex;
    gap: 0.8rem;
  }
  
  /* Page hero (páginas internas) */
  .page-hero {
    padding: 3.2rem 0 1.6rem;
    background: radial-gradient(circle at top left, rgba(102, 203, 102, 0.2), transparent 60%),
                linear-gradient(to right, #ffffff, #f7f9fb);
  }
  
  .page-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .page-hero h1 {
    font-size: 1.9rem;
  }
  
  .pill-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.6rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    font-size: 0.9rem;
  }
  
  /* Detalhes de serviço */
  .service-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.8rem;
    align-items: center;
  }
  
  .service-detail-grid.reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
  
  .service-detail-media img {
    border-radius: var(--radius-lg);
  }
  
  /* =========================================================
     CONTATO
     ========================================================= */
  .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.6rem;
    align-items: flex-start;
  }
  
  .contact-form h2 {
    margin-bottom: 1.5rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  input[type="number"],
  select,
  textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out;
    background: #ffffff;
    color: #111827;
  }
  
  input:focus,
  select:focus,
  textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 1px rgba(102, 203, 102, 0.5);
  }
  
  textarea {
    resize: vertical;
  }
  
  .form-note {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--gray);
  }
  
  .whatsapp-box {
    margin-top: 1rem;
  }
  
  .wa-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
  }
  
  .wa-number {
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .wa-text {
    font-size: 0.88rem;
  }
  
  .contact-extra p {
    font-size: 0.9rem;
  }
  
  /* =========================================================
     FOOTER
     ========================================================= */
  .site-footer {
    padding: 2.2rem 0 1.8rem;
    background: #05060a;
    color: #e4e4e4;
    margin-top: 2rem;
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
  }
  
  .footer-brand .logo-mark {
    background: linear-gradient(135deg, var(--green), #8fe88f);
  }
  
  .footer-copy {
    font-size: 0.85rem;
    margin-top: 0.7rem;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
  }
  
  .footer-links a {
    color: #e4e4e4;
    opacity: 0.85;
  }
  
  .footer-links a:hover {
    opacity: 1;
  }
  
  .footer-rights {
    font-size: 0.78rem;
    text-align: right;
    color: #a0a0a0;
  }
  
 /* =========================================================
   LOGIN DA ÁREA RESTRITA
   (MODIFICADO PARA TEMA CLARO E SUAVE)
   ========================================================= */
.login-body {
  /* Fundo claro, suave e confortável */
  background: radial-gradient(circle at top left, rgba(102, 203, 102, 0.1), transparent 60%),
              radial-gradient(circle at bottom right, rgba(0, 51, 102, 0.05), transparent 70%),
              var(--gray-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
}

.login-card {
  /* Fundo branco e sombra suave como os outros cards (card-elevated) */
  background: var(--white);
  color: #0F172A; /* Cor de texto principal escura */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); /* 0 18px 45px rgba(0, 0, 0, 0.08) */
  padding: 1.8rem 1.8rem 1.6rem;
}

.login-brand {
  text-align: center;
  margin-bottom: 1.6rem;
}

/* Corrigir o logo-mark para consistência com o tema claro (verde mais suave) */
.login-brand .logo-mark {
  margin: 0 auto 0.6rem;
  background: linear-gradient(135deg, var(--green), #a3f2a3);
}

.login-brand p {
  color: var(--gray); /* Cor do parágrafo cinza */
  font-size: 0.85rem;
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  font-size: 0.8rem;
}

.login-links a {
  /* Cor dos links escura (azul do tema) */
  color: var(--blue);
}

/* =========================================================
   ÁREA RESTRITA – ADMIN DASHBOARD
   ========================================================= */
  .admin-body {
    /* ... o restante do CSS do Admin Dashboard ... */
  }

/* ... (O restante do CSS para o Admin Dashboard segue aqui) ... */

/* =========================================================
   ADICIONAIS PARA MELHORIAS DE LOGIN E ADMIN
   (COMPLETO: Login + Dashboard)
   ========================================================= */

/* --- AJUSTES DO LOGIN (PARA CORRIGIR A APARÊNCIA) --- */

.login-brand h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #0F172A; /* GARANTIR COR ESCURA NO TEMA CLARO */
}

.login-brand p {
  color: var(--gray); /* GARANTIR COR CINZA NO TEMA CLARO */
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* 1. Botão Grande de Login */
.btn-large {
  /* ... sem alteração aqui ... */
}

/* 2. Wrapper para Input com Ícone (para posicionamento) */
.input-icon-wrapper {
position: relative;
/* AGORA DEVE HERDAR A COR ESCURA DO CARTÃO */
color: inherit; 
}

.input-icon-wrapper input {
  /* ... sem alteração aqui ... */
}

/* 3. Estilo e Posicionamento do Ícone */
.input-icon-wrapper i {
  /* ... */
  /* Cor sutil para o ícone */
  color: var(--gray); /* Use var(--gray) for a softer look */
  /* ... */
}

/* Ajuste fino dos links da tela de login */
.login-links {
  margin-top: 1.2rem;
}

.login-links a {
  color: var(--blue); /* Usar cor primária */
  font-size: 0.85rem;
  transition: color 0.15s ease-out;
}

.login-links a:hover {
  color: var(--green);
}


/* --- AJUSTES DO DASHBOARD (MELHORIAS VISUAIS) --- */
/* ... (o restante do CSS do Admin Dashboard segue inalterado) ... */
  
  /* =========================================================
     ÁREA RESTRITA – ADMIN DASHBOARD
     ========================================================= */
  .admin-body {
    margin: 0;
    background: #020617;
    color: #E5E7EB;
  }
  
  .admin-layout {
    display: flex;
    min-height: 100vh;
  }
  
  /* Sidebar */
  .admin-sidebar {
    width: 240px;
    background: #020617;
    border-right: 1px solid rgba(15, 23, 42, 0.6);
    padding: 1.4rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
  }
  
  .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }
  
  .sidebar-brand .logo-mark {
    background: linear-gradient(135deg, var(--green), #a3f2a3);
  }
  
  .sidebar-title span {
    display: block;
    font-weight: 600;
    color: #F9FAFB;
  }
  
  .sidebar-title small {
    font-size: 0.78rem;
    color: #9CA3AF;
  }
  
  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  
  .sidebar-link {
    border: none;
    background: transparent;
    color: #E5E7EB;
    text-align: left;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s ease-out, color 0.15s ease-out;
  }
  
  .sidebar-link:hover {
    background: rgba(15, 23, 42, 0.75);
  }
  
  .sidebar-link.active {
    background: rgba(102, 203, 102, 0.18);
    color: #ECFDF3;
  }
  
  /* Top header */
  .admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.6rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.5);
    background: radial-gradient(circle at top left, rgba(102, 203, 102, 0.22), transparent 55%),
                linear-gradient(to right, #020617, #020617);
  }
  
  .admin-header h1 {
    font-size: 1.1rem;
    color: #F9FAFB;
  }
  
  .admin-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
  }
  
  .user-name {
    color: #E5E7EB;
  }
  
  .user-menu {
    position: relative;
  }
  
  .user-menu-toggle {
    border: none;
    background: rgba(15, 23, 42, 0.9);
    color: #E5E7EB;
    border-radius: 999px;
    width: 26px;
    height: 26px;
    cursor: pointer;
  }
  
  .user-menu-dropdown {
    position: absolute;
    right: 0;
    margin-top: 0.4rem;
    background: #020617;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    padding: 0.4rem 0;
    min-width: 150px;
    display: none;
    z-index: 5;
  }
  
  .user-menu-dropdown a {
    display: block;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    color: #E5E7EB;
  }
  
  .user-menu-dropdown a:hover {
    background: rgba(15, 23, 42, 0.8);
  }
  
  /* Conteúdo principal */
  .admin-content {
    flex: 1;
    padding: 1.4rem 1.6rem 2rem;
    background: radial-gradient(circle at top left, rgba(102, 203, 102, 0.16), transparent 55%),
                radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.38), transparent 70%),
                #020617;
    overflow-x: auto;
  }
  
  .admin-content > h2 {
    color: #F9FAFB;
    margin-bottom: 1.2rem;
  }
  
  /* Seções internas */
  .admin-section {
    display: none;
  }
  
  .admin-section.active {
    display: block;
  }
  
  /* Grids internos */
  .admin-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
  
  .admin-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
  
  .admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  
  /* =========================================================
     CARDS DO DASHBOARD (VISÍVEIS)
     ========================================================= */
  /* TODOS OS CARDS DENTRO DA ÁREA RESTRITA GANHAM FUNDO CLARO */
  .admin-content .card-elevated,
  .admin-content .metric-card,
  .admin-content .chart-card,
  .admin-content .table-panel,
  .admin-content .form-panel {
    background: #FFFFFF;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #0F172A;
  }
  
  /* Textos dentro desses cards SEM OPACIDADE BAIXA */
  .admin-content .card-elevated *,
  .admin-content .metric-card *,
  .admin-content .chart-card *,
  .admin-content .table-panel *,
  .admin-content .form-panel * {
    color: #0F172A;
    opacity: 1;
  }
  
  /* Cards de métrica do topo */
  .metric-card {
    padding: 1rem 1.1rem;
  }
  
  .metric-label {
    font-size: 0.8rem;
    color: #6B7280;
  }
  
  .metric-value {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0F172A;
  }
  
  .metric-sub {
    font-size: 0.8rem;
    color: #9CA3AF;
  }
  
  /* Header interno de cards de gráficos / tabelas */
  .section-header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.6rem;
  }
  
  .inline-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* Forms menores dentro do admin */
  .input-select {
    border-radius: 999px;
    border: 1px solid #D1D5DB;
    background: #FFFFFF;
    color: #111827;
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
  }
  
  .input-small {
    font-size: 0.76rem;
  }
  
  .form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem 1rem;
  }
  
  /* =========================================================
     CHARTS
     ========================================================= */
  .chart-card {
    padding: 1.1rem 1.2rem 1.3rem;
  }
  
  .chart-header h3 {
    font-size: 0.96rem;
    margin-bottom: 0.5rem;
  }
  
  .chart-bars {
    display: flex;
    gap: 0.7rem;
    align-items: flex-end;
    height: 190px;
    padding-top: 0.5rem;
  }
  
  .chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }
  
  .chart-label {
    font-size: 0.8rem;
    color: #6B7280;
  }
  
  .bar-group {
    display: flex;
    gap: 3px;
    width: 100%;
    justify-content: center;
  }
  
  .bar {
    width: 40%;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.5));
    transform-origin: bottom;
    transform: scaleY(0.1);
    transition: transform 0.6s ease-out;
  }
  
  .bar-income {
    background: linear-gradient(to top, rgba(22, 163, 74, 0.35), rgba(22, 163, 74, 0.9));
  }
  
  .bar-expense {
    background: linear-gradient(to top, rgba(37, 99, 235, 0.35), rgba(37, 99, 235, 0.9));
  }
  
  /* Donut */
  .donut-chart {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background:
      conic-gradient(
        #66cb66 0 35%,
        #4f80ff 35% 60%,
        #f2c94c 60% 85%,
        #ff6b6b 85% 100%
      );
    margin: 0.6rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  .donut-chart::after {
    content: "";
    position: absolute;
    width: 62%;
    height: 62%;
    border-radius: 50%;
    background: #FFFFFF;
  }
  
  .donut-center {
    position: relative;
    text-align: center;
    z-index: 1;
    color: #0F172A;
  }
  
  .donut-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .donut-label {
    font-size: 0.78rem;
    color: #6B7280;
  }
  
  .donut-legend {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
    font-size: 0.78rem;
  }
  
  .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 0.3rem;
  }
  
  .legend-1 { background: #66cb66; }
  .legend-2 { background: #4f80ff; }
  .legend-3 { background: #f2c94c; }
  .legend-4 { background: #ff6b6b; }
  
  /* =========================================================
     TABELAS
     ========================================================= */
  .table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.9rem;
    font-size: 0.82rem;
  }
  
  .table th,
  .table td {
    padding: 0.55rem 0.6rem;
    text-align: left;
  }
  
  .table th {
    font-size: 0.78rem;
    color: #6B7280;
    border-bottom: 1px solid #E5E7EB;
  }
  
  .table td {
    border-bottom: 1px solid #F3F4F6;
    color: #111827;
  }
  
  .table.table-sm th,
  .table.table-sm td {
    padding: 0.4rem 0.5rem;
  }
  
  .table-clickable tbody tr {
    cursor: pointer;
  }
  
  .table-clickable tbody tr:hover {
    background: #F9FAFB;
  }
  
  .table-note {
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: #6B7280;
  }
  
  /* Badges */
  .badge {
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
  }
  
  .badge-success {
    background: rgba(22, 163, 74, 0.1);
    color: #15803D;
  }
  
  .badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #B45309;
  }
  
  .badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #B91C1C;
  }
  
  /* =========================================================
     MODAIS
     ========================================================= */
  .modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2, 4, 10, 0.75);
    z-index: 30;
  }
  
  .modal.show {
    display: flex;
  }
  
  .modal-content {
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: #FFFFFF;
    color: #0F172A;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.6);
  }
  
  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
  }
  
  .modal-close {
    border: none;
    background: transparent;
    color: #111827;
    font-size: 1.3rem;
    cursor: pointer;
  }
  
  .modal-body {
    font-size: 0.86rem;
  }
  
  /* Helpers */
  .mt-24 { margin-top: 1.5rem; }
  .mt-16 { margin-top: 1rem; }
  .mt-8  { margin-top: 0.5rem; }
  
  /* =========================================================
     RESPONSIVIDADE
     ========================================================= */
  @media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .team-grid,
    .service-detail-grid,
    .contact-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .hero-grid {
      gap: 2.2rem;
    }
  
    .section-cta .cta-inner {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .grid-3 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .footer-grid {
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }
  
    .footer-rights {
      text-align: left;
    }
  
    .admin-grid-4 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .admin-sidebar {
      display: none;
    }
  
    .admin-layout {
      flex-direction: column;
    }
  }
  
  @media (max-width: 768px) {
    .header-inner {
      padding: 0.8rem 0;
    }
  
    .main-nav {
      position: absolute;
      top: 100%;
      right: 0;
      left: 0;
      background: rgba(255, 255, 255, 0.98);
      flex-direction: column;
      padding: 0.6rem 1.5rem 1rem;
      border-bottom: 1px solid rgba(0, 0, 0, 0.04);
      /* Por padrão está oculta */
      display: none; 
    }
  
    .main-nav.show {
      /* Exibe o menu quando a classe 'show' é adicionada pelo JS */
      display: flex;
    }
  
    .nav-toggle {
      /* Exibe o botão hambúrguer no mobile */
      display: flex; 
    }
  
    .hero {
      padding-top: 3.2rem;
    }
  
    .hero-actions {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .grid-3 {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .footer-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .admin-grid-4,
    .admin-grid-3,
    .admin-grid-2 {
      grid-template-columns: minmax(0, 1fr);
    }
  
    .admin-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }
  }
  
  /* Animações suaves (opcional) */
  @media (prefers-reduced-motion: no-preference) {
    .card-elevated,
    .metric-card,
    .service-card,
    .pill-card,
    .hero-media,
    .team-media,
    .about-media {
      animation: fadeUp 0.6s ease-out both;
    }
  
    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(12px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  }
  
  /* =========================================================
   AJUSTE DO TAMANHO DA LOGO REAL
   ========================================================= */

  .logo-img {
    height: 48px;       /* tamanho padrão maior */
    width: auto;
    display: block;
  }

  .login-logo {
    height: 70px;       /* maior para a tela de login */
    margin-bottom: 0.6rem;
  }

  .admin-sidebar .logo-img {
    height: 42px;       /* sidebar menor */
    width: auto;
  }

  .admin-header .logo-img {
    height: 38px;       /* se quiser exibir futuramente no header */
  }
  /* =========================================================
   ADICIONAIS PARA MELHORIAS DE LOGIN E ADMIN
   (COMPLETO: Login + Dashboard)
   ========================================================= */

/* --- AJUSTES DO LOGIN (PARA CORRIGIR A APARÊNCIA) --- */

.login-brand h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #F9FAFB; /* Garante cor clara no fundo escuro */
}

.login-brand p {
  color: #9CA3AF;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* 1. Botão Grande de Login */
.btn-large {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.2rem;
}

/* 2. Wrapper para Input com Ícone (para posicionamento) */
.input-icon-wrapper {
position: relative;
/* Garante que o input e o ícone fiquem visíveis */
color: #fff; 
}

.input-icon-wrapper input {
  /* Adiciona padding suficiente para não sobrepor o ícone */
  padding-left: 2.5rem; 
}

/* 3. Estilo e Posicionamento do Ícone */
.input-icon-wrapper i {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  /* Centraliza verticalmente o ícone */
  transform: translateY(-50%); 
  /* Cor sutil para o ícone */
  color: #6B7280; 
  font-size: 1rem;
  pointer-events: none; /* Garante que o ícone não atrapalhe o clique no input */
}

/* Ajuste fino dos links da tela de login */
.login-links {
  margin-top: 1.2rem;
}

.login-links a {
  color: #9CA3AF;
  font-size: 0.85rem;
  transition: color 0.15s ease-out;
}

.login-links a:hover {
  color: var(--green);
}

/* =========================================================
   ADICIONAIS PARA MELHORIAS DE LOGIN E ADMIN
   (DESIGN PREMIUM - SUBSTITUIR BLOCO ANTERIOR INTEIRAMENTE)
   ========================================================= */

/* --- AJUSTES DO LOGIN (DESIGN INOVADOR E PREMIUM) --- */

.login-brand h2 {
  font-size: 1.6rem; /* Um pouco maior */
  font-weight: 700; /* Mais peso */
  margin-bottom: 0.2rem;
  color: #F9FAFB;
}

.login-brand p {
  color: #6B7280; /* Cinza mais escuro para suavizar */
  font-size: 0.9rem;
  margin-bottom: 2rem; /* Mais espaçamento */
}

/* 1. Botão Grande de Login */
.btn-large {
  padding: 1rem 1.8rem; /* Um pouco mais alto */
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.5rem;
  box-shadow: 0 15px 35px rgba(102, 203, 102, 0.2); /* Sombra mais sutil */
}

/* 2. Wrapper para Input com Ícone (para posicionamento) */
.input-icon-wrapper {
position: relative;
color: #fff; 
}

/* Redefine o estilo do Input no Login para harmonizar com o dark theme */
.login-card input[type="email"],
.login-card input[type="password"] {
  background: #111827; /* Fundo do input mais escuro que o card */
  border: 1px solid rgba(107, 114, 128, 0.2); /* Borda sutil */
  color: #F9FAFB;
  padding-left: 2.8rem; /* Aumenta o padding para o ícone */
}

.login-card input:focus,
.login-card select:focus,
.login-card textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

/* 3. Estilo e Posicionamento do Ícone (Usando Unicode para visual limpo) */
.input-icon-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%); 
  color: #6B7280; 
  font-size: 1.05rem;
  pointer-events: none;
  /* Font para garantir que o unicode seja renderizado como ícone */
  font-family: 'Arial', sans-serif;
}

.icon-email::before {
  content: "\2709"; /* E-mail Unicode Envelope */
}
.icon-lock::before {
  content: "\1F512"; /* Cadeado Unicode */
}

/* Ajuste fino dos links da tela de login */
.login-links {
  margin-top: 1.8rem;
}

.login-links a {
  color: #6B7280; /* Cinza sutil */
  font-size: 0.9rem;
  transition: color 0.15s ease-out;
}

.login-links a:hover {
  color: var(--green);
}


/* --- AJUSTES DO DASHBOARD (MELHORIAS VISUAIS DE CONFORTO) --- */

/* Sidebar Navigation com Ícones */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
}

/* Ícones da Sidebar - Usando Unicode para um visual mais limpo */
.sidebar-link i {
  font-size: 1.1rem;
  line-height: 1;
  width: 20px;
  text-align: center;
  color: #9CA3AF; /* Cor neutra */
}
/* Ícones da Sidebar - Definindo o conteúdo dos ícones */
.sidebar-link .icon-home::before { content: "\1F3E0"; }
.sidebar-link .icon-apps::before { content: "\26F0"; }
.sidebar-link .icon-plan::before { content: "\2B50"; }
.sidebar-link .icon-license::before { content: "\1F4DC"; }
.sidebar-link .icon-contract::before { content: "\1F517"; }
.sidebar-link .icon-finance::before { content: "\1F4B0"; }
.sidebar-link .icon-settings::before { content: "\2699"; }
.user-menu-toggle .icon-user-circle::before { content: "\1F464"; }
.user-menu-dropdown .icon-settings::before { content: "\2699"; }
.user-menu-dropdown .icon-logout::before { content: "\279C"; }

.sidebar-link.active {
  background: rgba(102, 203, 102, 0.12); /* Fundo mais suave para o ativo */
  color: #ECFDF3;
}
.sidebar-link.active i {
  color: var(--green); /* Destaque na cor do ícone ativo */
}

.sidebar-link span {
  flex-grow: 1;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.4);
}

/* Header Admin */
.admin-header-left {
  display: flex;
  flex-direction: column;
}

.admin-header h1 {
  margin: 0;
  line-height: 1.2;
}

.header-subtitle {
  font-size: 0.8rem;
  color: #9CA3AF;
  margin-top: 0.2rem;
}

/* Menu de Usuário */
.user-menu-toggle {
  font-size: 1.2rem; 
  background: transparent;
}
.user-menu-toggle:hover {
  background: rgba(15, 23, 42, 0.75);
}

.user-menu-dropdown i {
  margin-right: 0.4rem;
  font-size: 0.9rem;
}

/* Cartões de Métricas (Atratividade e Conforto) */
.metric-card {
  position: relative;
  padding-right: 3rem; /* Espaço para o ícone no canto */
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  cursor: default;
}

.metric-card:hover {
  transform: translateY(-3px); /* Efeito sutil de elevação no hover */
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

.metric-icon-box {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 38px; /* Ícone um pouco maior */
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem; /* Icon size */
  background: rgba(0, 0, 0, 0.04);
}
/* Ícones dos Cards - Definindo o conteúdo dos ícones */
.metric-card .icon-money-bag::before { content: "\1F4B0"; }
.metric-card .icon-document::before { content: "\1F4C4"; }
.metric-card .icon-users::before { content: "\1F465"; }
.metric-card .icon-warning::before { content: "\26A0"; }


.metric-value {
  font-size: 1.6rem; /* Valor da métrica em destaque */
  font-weight: 700;
}

.metric-label {
  font-size: 0.85rem;
}

/* Destaque visual por tipo de métrica */
.metric-income .metric-icon-box {
  background: rgba(102, 203, 102, 0.15); 
}
.metric-income i {
  color: #15803D; 
}

.metric-contracts .metric-icon-box {
  background: rgba(0, 51, 102, 0.1); 
}
.metric-contracts i {
  color: var(--blue); 
}

.metric-clients .metric-icon-box {
  background: rgba(245, 158, 11, 0.1); 
}
.metric-clients i {
  color: #B45309; 
}

.metric-delinquency .metric-icon-box {
  background: rgba(239, 68, 68, 0.15); 
}
.metric-delinquency i, .color-danger {
  color: #B91C1C !important;
}

/* Tabelas (Conforto Visual Premium) */
.table-modern {
  width: 100%;
  border-collapse: separate; /* Permite border-spacing para um look premium */
  border-spacing: 0 0.4rem; /* Espaçamento entre linhas */
  margin-top: 0.9rem;
  font-size: 0.9rem;
}

.table-modern th {
  padding: 0.6rem 0.8rem;
  font-weight: 600;
  font-size: 0.8rem;
  border-bottom: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.table-modern td {
  padding: 0.9rem 0.8rem; /* Mais padding para conforto */
  border-bottom: none; /* Remove a borda inferior */
  background: #F9FAFB; /* Fundo claro para todas as células */
}

/* Zebra Stripping (Linhas Alternadas) */
.table-modern tbody tr:nth-child(even) td {
  background-color: #F1F5F9; /* Cinza mais claro para a alternância */
}

.table-modern tbody tr {
  border-radius: 10px; /* Borda arredondada para a linha inteira */
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Sombra sutil para separação */
}

/* Efeito Hover nas linhas Clicáveis (Conforto) */
.table-clickable tbody tr:hover td {
  background: #E5E7EB; 
}

/* Destaque visual para linhas críticas (ex: vencidas) */
.table-row-danger td {
  background-color: rgba(254, 202, 202, 0.7) !important; 
  border-left: 4px solid #B91C1C;
  color: #B91C1C;
}

.table-row-danger:hover td {
  background-color: rgba(252, 165, 165, 0.7) !important;
}

/* Fim dos ajustes do Dashboard */


/* =========================================================
   LOGO NÍTIDA + MAIOR (SEM AUMENTAR A ALTURA DO MENU)
   Cole no FINAL do main.css
   ========================================================= */

/* Mantém o header com altura visual constante (não cresce) */
.site-header{
  position: relative;
  overflow: visible; /* permite a logo “sair” sem empurrar o layout */
}

/* Container da marca */
.site-header .logo{
  position: relative;
  height: 56px;         /* área interna de referência */
  display: flex;
  align-items: center;
  line-height: 0;
}

/* A MÁGICA: a imagem fica absoluta, maior e centralizada,
   sem aumentar a altura do menu (não empurra nada) */
.site-header .logo img,
.site-header .logo-img{
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%); /* só desloca (não escala), não embaça */

  height: 52px;        /* aumenta a logo */
  width: auto;
  max-width: 320px;

  object-fit: contain; /* sem corte */
  display: block;

  /* remove qualquer efeito que lave/embace */
  filter: none !important;
}

/* Mobile: segura tamanho para não quebrar header */
@media (max-width: 520px){
  .site-header .logo img,
  .site-header .logo-img{
    height: 44px;
    max-width: 210px;
  }
}

/* =========================================================
   ÁREA RESTRITA — NÍTIDA (SEM SCALE/FILTER)
   ========================================================= */

.login-brand .login-logo{
  height: 72px;
  width: min(360px, 92%);
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: none !important;
  transform: none !important;
}

.admin-sidebar .sidebar-logo{
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  filter: none !important;
  transform: none !important;
}

/* =========================================================
   ÁREA RESTRITA — PADRÃO VISUAL DO SITE (SAFE OVERRIDES)
   Cole este bloco NO FINAL do assets/css/main.css
   ========================================================= */

/* Evita heranças antigas de login/dashboard (flex center etc.) */
body.cg-auth,
body.cg-admin{
  background: var(--white);
  color: #111827;
}

/* ---------- LOGIN (Área Restrita) ---------- */
.cg-auth .cg-auth-main{
  min-height: calc(100vh - 140px);
}

.cg-auth .cg-auth-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px){
  .cg-auth .cg-auth-grid{
    grid-template-columns: 1fr;
  }
}

.cg-auth .cg-auth-side{
  padding: 26px;
}

.cg-auth .cg-auth-title{
  margin: 12px 0 10px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.12;
}

.cg-auth .cg-auth-text{
  margin: 0 0 14px;
  color: #374151;
}

.cg-auth .cg-auth-card{
  padding: 26px;
}

.cg-auth .cg-auth-sub{
  margin: 8px 0 18px;
  color: #6b7280;
}

.cg-auth .cg-auth-links{
  margin-top: 14px;
}

/* ---------- DASHBOARD (Área Restrita) ---------- */
.cg-admin .cg-admin-main{
  min-height: calc(100vh - 140px);
}

/* Ajuste de cartões para ficar “igual site” */
.cg-admin .pill-card,
.cg-admin .service-card{
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-soft);
}

/* Títulos e textos com contraste padrão */
.cg-admin h1, .cg-admin h2, .cg-admin h3{
  color: #0f172a;
}

.cg-admin p{
  color: #374151;
}
