/* Variáveis Globais e Tamanhos Base */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --border-radius: 0.25rem;
  --base-font-size: 16px;
  --heading-font-size: 2rem;
}

html {
  font-size: var(--base-font-size);
}

/* Estilos Gerais */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f5f5f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

main {
  flex: 1;
  padding: 1rem;
}

/* Cabeçalho */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

/* Cards */
.card {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
  font-weight: 600;
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  padding: 0.75rem 1rem;
}

/* Formulários */
.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.form-control,
.form-select {
  padding: 0.5rem;
  border-radius: var(--border-radius);
  border: 1px solid #ced4da;
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-group-text {
  background-color: #f8f9fa;
  font-size: 1rem;
}

/* Botões */
.btn {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #0069d9;
  border-color: #0062cc;
}

/* Status de Denúncia */
.status-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
  font-weight: 500;
}

.status-pendente {
  background-color: #f8f9fa;
  color: #6c757d;
  border: 1px solid #6c757d;
}

.status-analise {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.status-resolvido {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-rejeitado {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Status do Site */
.site-status {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
}

.site-online {
  background-color: var(--success-color);
}

.site-offline {
  background-color: var(--danger-color);
}

/* Galeria de Imagens */
.denuncia-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 5px;
  margin: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.denuncia-image:hover {
  transform: scale(1.05);
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
}

/* Animações */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

/* Página Inicial - Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  color: white;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1rem;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 1;
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 1.5rem;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* Dashboard */
.statistic-card {
  text-align: center;
  padding: 1rem;
}

.statistic-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.statistic-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-color);
}

/* Responsividade - Ajustes para Tablets e Desktops */
@media (max-width: 992px) {
  .hero-section {
    padding: 2.5rem 1rem;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .statistic-card {
    padding: 0.75rem;
  }
}

/* Responsividade - Tablets/Mobile */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .navbar-brand {
    font-size: 1.25rem;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-section p {
    font-size: 0.9rem;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .statistic-value {
    font-size: 1.75rem;
  }
  
  .card {
    margin-bottom: 0.75rem;
  }
}

/* Responsividade - Celulares */
@media (max-width: 576px) {
  html {
    font-size: 13px;
  }

  .hero-section {
    padding: 2rem 0.5rem;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-section p {
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .form-control,
  .form-select {
    padding: 0.4rem;
    font-size: 0.9rem;
  }
}
