:root {
  /* Paleta de Cores - Vibrante e Institucional */
  --primary: #0077b6; /* Azul Água Profundo */
  --primary-light: #48cae4; /* Azul Água Claro */
  --secondary: #2a9d8f; /* Verde Água/Natureza */
  --accent: #e9c46a; /* Amarelo Sol/Rural */
  --success: #2ecc71; /* Verde Feedback */
  --danger: #e76f51; /* Vermelho Feedback/Alerta */
  --dark: #264653; /* Azul Petróleo Escuro */
  --gray: #6c757d;
  --light: #f1faee; /* Branco Suave */
  --white: #ffffff;

  /* Design System */
  --font-main: "Inter", system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);

  /* Transições */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Tipografia */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
ul {
  list-style: none;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 119, 182, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: var(--glass-border);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Header & Nav */
header {
  background: var(--glass);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--dark);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background:
    linear-gradient(rgba(241, 250, 238, 0.85), rgba(241, 250, 238, 0.75)),
    url("../img/hero_rural.png"); /* Rural Water Background - AI Generated */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 600px;
  animation: fadeIn Up 1s ease;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: -webkit-linear-gradient(var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

/* Features/Services */
.features {
  padding: 100px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  text-align: center;
  padding: 40px 30px;
  background: var(--light);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}



/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
  font-size: 1.2rem;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
}

/* Dashboard Specifics */
.dashboard-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--dark);
  color: var(--white);
  padding: 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-menu {
  margin-top: 40px;
}

.sidebar-menu li {
  margin-bottom: 10px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.main-content {
  background: var(--light);
  padding: 30px;
}

.stat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
}

.stat-label {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Feedback Colors */
.status-completed {
  color: var(--success);
  font-weight: 700;
}
.status-delayed {
  color: var(--danger);
  font-weight: 700;
}
.status-pending {
  color: var(--accent);
  font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }
  
  .mobile-toggle {
    display: block;
    color: var(--primary);
  }
  
  .auth-buttons {
    display: none; /* Em mobile, simplificamos escondendo botões do header se necessário ou movendo para dentro do menu (necessitaria alteração HTML) */
  }
  /* Alternativa: Manter auth buttons mas ajustados */
}

@media (max-width: 768px) {
  .hero {
    padding-top: 120px;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  /* Grid Reset to 1 Column for Mobile */
  .features-grid, 
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about {
      padding: 60px 0;
  }
  
  .footer-content {
      text-align: center;
  }
  
  .footer-links li { 
      justify-content: center;
  }
  
  .footer-col h4::after {
      left: 50%;
      transform: translateX(-50%);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    display: none; 
  }
  
  /* Auth buttons in header mobile fix */
  .auth-buttons {
      display: none;
  }
  /* Show Login Link in Mobile Menu if added via HTML, usually separate structure needed */
}

/* Utilitários Feedback Visual */
.alert {
  padding: 15px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 500;
}
.alert-danger {
  background: rgba(231, 111, 81, 0.1);
  color: var(--danger);
}
.alert-success {
  background: rgba(46, 204, 113, 0.1);
  color: var(--success);
}
/* --- Estilos de Impressão de Elite --- */
@media print {
  .sidebar,
  .btn,
  header,
  .no-print,
  .filter-card,
  aside {
    display: none !important;
  }
  body {
    background: white !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .main-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .card {
    box-shadow: none !important;
    border: 1px solid #eee !important;
    margin-bottom: 20px !important;
    transform: none !important;
  }
  .status-badge {
    border: 1px solid #000 !important;
    color: black !important;
    background: white !important;
  }
}
