/* ============================================
   ESTILO COMUM - PROJETO MABEL/PTQA
   Padrão unificado para todas as telas
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', 'Helvetica', sans-serif;
  background: #f5f5dc;
  color: #333;
  min-height: 100vh;
  line-height: 1.6;
}

/* ========== HEADER PADRÃO ========== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #8B4513;
  padding: 20px 30px;
  min-height: 80px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

header .titulo {
  font-family: 'Times New Roman', serif;
  font-size: 3rem;
  font-weight: bold;
  color: #FFD700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header .logo,
header .Ifsc,
header .ifsc-logo {
  display: flex;
  align-items: center;
}

header .logo img,
header .Ifsc img,
header .ifsc-img {
  height: 60px;
  width: auto;
}

.hambur,
.hamburger-menu {
  width: 30px;
  height: 30px;
  cursor: pointer;
  filter: invert(1) sepia(1) saturate(5) hue-rotate(45deg);
  transition: transform 0.2s ease;
}

.hambur:hover,
.hamburger-menu:hover {
  transform: scale(1.1);
}

/* ========== SIDEBAR PADRÃO ========== */
#sidebar {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background: #7a3c1c;
  color: white;
  transition: right 0.3s ease;
  padding-top: 60px;
  z-index: 1000;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
}

#sidebar.active {
  right: 0;
}

#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sidebar li {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
}

#sidebar li:hover {
  background: #a0522d;
}

#sidebar li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  display: block;
  transition: padding-left 0.2s ease;
}

#sidebar li a:hover {
  padding-left: 10px;
}

#close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

#close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ========== NAVIGATION PADRÃO ========== */
.navigation {
  background: #D2B48C;
  padding: 15px 30px;
  border-top: 2px solid #8B4513;
  border-bottom: 2px solid #8B4513;
}

.nav-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  color: #000000;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease, text-decoration 0.3s ease;
  padding: 5px 10px;
}

.nav-link:hover {
  color: #654321;
  text-decoration: underline;
}

/* ========== MAIN CONTENT PADRÃO ========== */
main,
.main-content {
  margin: 30px auto;
  max-width: 1400px;
  padding: 0 30px;
}

.subtitulo {
  text-align: center;
  margin-bottom: 30px;
  color: #8B4513;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* ========== BOTÕES PADRÃO ========== */
button,
.btn,
.atalho-btn,
.relatorio-btn {
  padding: 12px 24px;
  background: #8B4513;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

button:hover,
.btn:hover,
.atalho-btn:hover,
.relatorio-btn:hover {
  background: #A0522D;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:active,
.btn:active,
.atalho-btn:active,
.relatorio-btn:active {
  transform: translateY(0);
}

/* ========== CARDS PADRÃO ========== */
.card,
.relatorio-card,
.card-resumo {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 4px solid #8B4513;
}

.card:hover,
.relatorio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card h3,
.card h4,
.relatorio-card h4 {
  color: #8B4513;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.card p,
.relatorio-card p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* ========== FILTROS PADRÃO ========== */
.filtro,
.filtro-section {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.filtro {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filtro label {
  font-weight: bold;
  color: #8B4513;
}

.filtro input[type="date"],
.filtro input[type="text"],
.filtro select {
  padding: 10px 15px;
  border: 2px solid #D2B48C;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.filtro input[type="date"]:focus,
.filtro input[type="text"]:focus,
.filtro select:focus {
  outline: none;
  border-color: #8B4513;
}

/* ========== GRÁFICOS PADRÃO ========== */
.graficos,
.graficos-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.grafico-container {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  min-height: 380px;
}

.grafico-container h3 {
  color: #8B4513;
  margin-bottom: 15px;
  font-size: 1.2rem;
  text-align: center;
}

.grafico-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ========== GRID PADRÃO ========== */
.grid,
.atalhos,
.cards-resumo,
.relatorios-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.atalhos {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cards-resumo {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.relatorios-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  header .titulo {
    font-size: 2rem;
  }

  .nav-links {
    gap: 20px;
    font-size: 0.9rem;
  }

  main,
  .main-content {
    padding: 0 15px;
    margin: 20px auto;
  }

  .subtitulo {
    font-size: 1.5rem;
  }

  .graficos,
  .graficos-section {
    grid-template-columns: 1fr;
  }

  .filtro {
    flex-direction: column;
    align-items: stretch;
  }

  .filtro input,
  .filtro select,
  .filtro button {
    width: 100%;
  }
}

/* ========== UTILITÁRIOS ========== */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.hidden {
  display: none;
}

/* ========== ANIMAÇÕES ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease;
}



