:root {
  --senai-blue-dark: #002B5C;
  --senai-blue: #005CAA;
  --senai-blue-light: #0082E6;
  --senai-red: #E30613;
  --senai-red-hover: #B8040F;
  --bg-gray: #F4F6F9;
  --text-dark: #2C3E50;
  --text-light: #6C757D;
  --white: #FFFFFF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-gray);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ================= CABEÇALHO ================= */
header {
  background-color: var(--senai-blue-dark);
  color: var(--white);
  padding: 0 5%;
  height: 75px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-logo {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: var(--white);
  color: var(--senai-blue-dark);
  padding: 4px 12px;
  border-radius: 4px;
  border-bottom: 3px solid var(--senai-red);
}

.brand-title {
  border-left: 2px solid rgba(255, 255, 255, 0.3);
  padding-left: 15px;
}

.brand-title h1 {
  font-size: 18px;
  font-weight: 700;
}

.brand-title p {
  font-size: 12px;
  opacity: 0.8;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--senai-blue-light);
}

.btn-login {
  background-color: var(--senai-red);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-login:hover {
  background-color: var(--senai-red-hover);
  transform: translateY(-2px);
}

/* ================= ÁREA HERO / DESTAQUE ================= */
.hero {
  background: linear-gradient(135deg, var(--senai-blue-dark) 0%, var(--senai-blue) 100%);
  color: var(--white);
  padding: 60px 5%;
  text-align: center;
  position: relative;
}

.hero h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 30px auto;
  opacity: 0.9;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-action-primary {
  background-color: var(--senai-red);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
  transition: all 0.2s;
}

.btn-action-primary:hover {
  background-color: var(--senai-red-hover);
  transform: translateY(-2px);
}

.btn-action-secondary {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-action-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* ================= CORPO / CARDS DE SERVIÇO ================= */
main {
  flex: 1;
  padding: 50px 5%;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h3 {
  font-size: 26px;
  color: var(--senai-blue-dark);
  font-weight: 800;
}

.section-title p {
  color: var(--text-light);
  font-size: 15px;
  margin-top: 5px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 35px 25px;
  text-align: center;
  border: 1px solid #E0E6ED;
  box-shadow: 0 8px 24px rgba(0, 43, 92, 0.08);
  border-top: 5px solid var(--senai-blue);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 43, 92, 0.15);
  border-top-color: var(--senai-red);
}

.card-icon {
  font-size: 42px;
  margin-bottom: 15px;
  display: inline-block;
}

.card h4 {
  font-size: 19px;
  color: var(--senai-blue-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

/* ================= MODAL DE LOGIN / CADASTRO ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 43, 92, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.auth-card {
  background: var(--white);
  width: 100%;
  max-width: 440px;
  padding: 35px 30px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  position: relative;
  border-top: 6px solid var(--senai-red);
}

.btn-close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text-light);
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid #EEEEEE;
  margin-bottom: 25px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  color: var(--senai-blue);
  border-bottom: 3px solid var(--senai-blue);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.form-group input, .form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #CCCCCC;
  border-radius: 6px;
  font-size: 14px;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--senai-blue);
  box-shadow: 0 0 0 3px rgba(0, 92, 170, 0.15);
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 13px;
  color: var(--senai-blue);
  text-decoration: none;
  margin-top: -10px;
  margin-bottom: 20px;
  font-weight: 600;
}

.forgot-link:hover {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background-color: var(--senai-blue);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-submit:hover {
  background-color: var(--senai-blue-dark);
}

/* ================= RODAPÉ ================= */
footer {
  background-color: var(--senai-blue-dark);
  color: var(--white);
  padding: 50px 5% 20px 5%;
  margin-top: auto;
  border-top: 4px solid var(--senai-red);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 35px;
  padding-bottom: 35px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col h5 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 18px;
  color: #FFFFFF !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p, .footer-col li {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.8;
  list-style: none;
}

.footer-col a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 12px;
  opacity: 0.7;
}

/* ================= RESPONSIVIDADE ================= */
@media (max-width: 768px) {
  header {
    height: auto;
    padding: 15px 5%;
    flex-direction: column;
    gap: 15px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding: 40px 5%;
  }

  .hero h2 {
    font-size: 24px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-action-primary, .btn-action-secondary {
    width: 100%;
    text-align: center;
  }

  .auth-card {
    padding: 25px 20px;
  }
}

.btn-login span {
  display: inline-block;
  filter: brightness(0) invert(1); /* Torna o emoji totalmente branco */
}

/* ================= DASHBOARD & PAINEL ================= */
.dash-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 5%;
  width: 100%;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.dash-header h2 {
  color: var(--senai-blue-dark);
  font-size: 24px;
}

/* CARDS DE INDICADORES / ESTATÍSTICAS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #E0E6ED;
  box-shadow: 0 4px 12px rgba(0, 43, 92, 0.05);
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
}

.stat-icon.total { background: #EBF3FA; color: var(--senai-blue); }
.stat-icon.pending { background: #FFF4E5; color: #E67E22; }
.stat-icon.progress { background: #E8F4FD; color: #2980B9; }
.stat-icon.done { background: #E8F8F5; color: #27AE60; }

.stat-info h4 {
  font-size: 22px;
  color: var(--senai-blue-dark);
  font-weight: 800;
}

.stat-info p {
  font-size: 13px;
  color: var(--text-light);
}

/* ÁREA DA TABELA E FILTROS */
.content-box {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid #E0E6ED;
  box-shadow: 0 6px 18px rgba(0, 43, 92, 0.06);
}

.table-filters {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-input, .filter-select {
  padding: 10px 14px;
  border: 1px solid #CCCCCC;
  border-radius: 6px;
  font-size: 14px;
}

.search-input {
  flex: 1;
  min-width: 200px;
}

/* TABELA DE CHAMADOS (RESPONSIVA) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.custom-table th {
  background-color: var(--bg-gray);
  color: var(--senai-blue-dark);
  padding: 12px 15px;
  font-weight: 700;
  border-bottom: 2px solid #E0E6ED;
}

.custom-table td {
  padding: 14px 15px;
  border-bottom: 1px solid #EEEEEE;
}

.custom-table tr:hover {
  background-color: #F8FAFC;
}

/* BADGES DE STATUS */
.badge-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

.status-pendente { background: #FFEAA7; color: #D63031; }
.status-andamento { background: #74B9FF; color: #0984E3; }
.status-concluido { background: #55E6C1; color: #1B1464; }

.btn-sm-action {
  background: var(--senai-blue);
  color: var(--white);
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.btn-sm-action:hover {
  background: var(--senai-blue-dark);
}

/* ================= ACCESSIBILITY & CONTRAST IMPROVEMENTS ================= */
/* Ajuste de alto contraste para acessibilidade em cards e tabelas */
.stat-card {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #000000 !important; /* Borda preta nítida para alta acessibilidade */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}

.content-box {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid #000000 !important; /* Borda preta de alto contraste */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* BOTÃO SAIR (VERMELHO COM TEXTO BRANCO) */
.btn-nav-logout {
  background-color: var(--senai-red) !important;
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #000000;
  transition: background-color 0.2s ease;
}

.btn-nav-logout:hover {
  background-color: #B31010 !important;
}

/* BOTÃO NOVO CHAMADO (SINAL DE + BRANCO) */
.btn-action-primary {
  background-color: var(--senai-red);
  color: #FFFFFF !important;
  font-weight: 700;
  border: 1px solid #000000;
  padding: 12px 22px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  transition: background-color 0.2s ease;
}

.btn-action-primary .icon-plus {
  color: #FFFFFF !important;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}

.btn-action-primary:hover {
  background-color: #B31010;
}

/* ================= RODAPÉ (LINHA ÚNICA) ================= */
footer {
  background-color: var(--senai-blue-dark);
  color: var(--white);
  padding: 40px 5% 20px 5%;
  margin-top: 50px;
  border-top: 3px solid var(--senai-red); /* Borda vermelha do topo do rodapé */
  border-bottom: none !important;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
  border-bottom: none !important; /* Garante que as colunas não tenham linha abaixo */
}

.footer-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
  text-transform: uppercase;
}

.footer-info p, .footer-info a {
  color: #D0D7DE;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.8;
  display: block;
}

.footer-info a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* LINHA ÚNICA DIVISÓRIA */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border: none !important; /* Limpa qualquer borda lateral/inferior herdada */
  border-top: 1px solid rgba(255, 255, 255, 0.25) !important; /* ÚNICA LINHA PERMITIDA */
  text-align: center;
  font-size: 13px;
  color: #D0D7DE;
}

.footer-bottom p {
  margin: 0;
  padding: 0;
}

/* ESTILIZAÇÃO CUSTOMIZADA DO INPUT FILE (BOTÃO ESCOLHER ARQUIVO) */
.file-upload-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-gray);
  color: var(--text-dark);
  border: var(--border-accessible);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  width: 100%;
}

.file-upload-label:hover {
  background-color: #E2E8F0;
  border-color: var(--senai-blue);
}

.file-upload-input {
  display: none; /* Esconde o botão feio nativo do sistema */
}

/* RESPONSIVIDADE PARA DISPOSITIVOS MÓVEIS (CELULARES) */
@media (max-width: 600px) {
  .grid-2-col {
    grid-template-columns: 1fr !important; /* Transforma grids de 2 colunas em 1 coluna */
  }
  
  .auth-card {
    padding: 20px 15px !important;
  }
  
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .btn-action-primary {
    width: 100%;
    justify-content: center;
  }
}

/* --- ESTILOS DO MODAL DE SUPORTE --- */
.suporte-card {
  max-width: 600px;
  width: 90%;
  padding: 30px;
  text-align: left;
}

.suporte-header {
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color, #eee);
  padding-bottom: 12px;
}

.suporte-header h2 {
  font-size: 1.4rem;
  color: var(--senai-blue, #0056b3);
  margin-bottom: 5px;
}

.suporte-header p {
  font-size: 0.9rem;
  color: #666;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 5px;
  margin-bottom: 20px;
}

.faq-item {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px 15px;
  transition: all 0.2s ease;
}

.faq-item[open] {
  background: #ffffff;
  border-color: var(--senai-blue, #0056b3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  color: #333;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "➕";
  font-size: 0.8rem;
}

.faq-item[open] summary::after {
  content: "➖";
}

.faq-item p {
  margin-top: 10px;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
}

.faq-item a {
  color: var(--senai-blue, #0056b3);
  text-decoration: underline;
}

.suporte-contatos {
  background: #eef5ff;
  border-left: 4px solid var(--senai-blue, #0056b3);
  padding: 12px 15px;
  border-radius: 0 6px 6px 0;
}

.suporte-contatos h4 {
  font-size: 0.9rem;
  color: #003366;
  margin-bottom: 8px;
}

.contatos-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: #444;
}
