/* ====================================================================
   PORTAL DE OUVIDORIA CORPORATIVA - ESTILOS CUSTOMIZADOS
   ==================================================================== */

/* ====================================================================
   VARIÁVEIS E CONFIGURAÇÕES GERAIS
   ==================================================================== */

:root {
  /* Cores da Marca Grupo Amazon Temper */
  --primary-color: #009e49;        /* Verde Amazon (principal) */
  --primary-dark: #2c5f2d;         /* Verde escuro */
  --primary-light: #8bc34a;        /* Verde claro */
  --accent-gray: #6c757d;          /* Cinza médio (neutro) */
  --accent-gray-dark: #495057;     /* Cinza escuro */

  /* Cores do Sistema */
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f4f6f9;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ====================================================================
   CABEÇALHO
   ==================================================================== */

header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header.bg-primary {
  background-color: var(--accent-gray) !important;
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

header p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ====================================================================
   CARTÕES
   ==================================================================== */

.card {
  border: none;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

.card-header {
  border-bottom: none;
  border-radius: 12px 12px 0 0 !important;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

/* ====================================================================
   FORMULÁRIOS
   ==================================================================== */

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 158, 73, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-label {
  cursor: pointer;
  margin-left: 0.5rem;
}

.form-switch .form-check-input {
  width: 3rem;
  height: 1.5rem;
}

/* ====================================================================
   BOTÕES
   ==================================================================== */

.btn {
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 4px 6px rgba(0, 158, 73, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 158, 73, 0.3);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-outline-secondary {
  border: 2px solid #6c757d;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  color: white;
}

/* ====================================================================
   ALERTAS
   ==================================================================== */

.alert {
  border-radius: 8px;
  border: none;
  padding: 1rem 1.5rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
}

.alert-light {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
}

/* ====================================================================
   ÍCONES
   ==================================================================== */

.fa-shield-alt,
.fa-megaphone,
.fa-user-secret {
  opacity: 0.9;
}

.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

/* ====================================================================
   PROTOCOLO
   ==================================================================== */

.protocolo-box {
  background-color: #fff;
  border: 3px dashed var(--primary-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  text-align: center;
}

.protocolo-box code {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: bold;
  letter-spacing: 2px;
}

/* ====================================================================
   RODAPÉ
   ==================================================================== */

footer {
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
  margin-top: auto;
}

footer p {
  margin-bottom: 0.5rem;
}

/* ====================================================================
   RESPONSIVIDADE
   ==================================================================== */

@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  header .fa-shield-alt {
    font-size: 2rem !important;
  }

  .card-body {
    padding: 1rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .protocolo-box code {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  header h1 {
    font-size: 1.3rem;
  }

  .btn {
    padding: 0.6rem 1rem;
  }

  .form-control,
  .form-select {
    padding: 0.6rem 0.8rem;
  }
}

/* ====================================================================
   ANIMAÇÕES
   ==================================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card,
.alert {
  animation: fadeIn 0.5s ease-out;
}

/* ====================================================================
   ACESSIBILIDADE
   ==================================================================== */

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus {
  outline: 3px solid rgba(0, 158, 73, 0.3);
  outline-offset: 2px;
}

/* Links com melhor contraste */
a {
  color: var(--accent-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-gray-dark);
  text-decoration: underline;
}

/* ====================================================================
   UTILIDADES
   ==================================================================== */

.shadow-sm {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12) !important;
}

/* Texto com espaçamento melhorado */
.lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.7;
}

/* ====================================================================
   IMPRESSÃO
   ==================================================================== */

@media print {
  header,
  footer,
  .btn,
  .alert:not(.alert-info) {
    display: none !important;
  }

  body {
    background-color: white;
  }

  .card {
    border: 1px solid #000;
    box-shadow: none;
  }

  .protocolo-box {
    border: 2px solid #000;
    padding: 20px;
  }
}

/* ====================================================================
   LOGO
   ==================================================================== */

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 90px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .logo-img {
    height: 70px;
  }
}

@media (max-width: 576px) {
  .logo-img {
    height: 55px;
  }
}
