 estilo da cadastro da biblioteca
 
 *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --azul:         #0047BB;
    --azul-esc:     #003087;
    --azul-medio:   #0057D9;
    --azul-claro:   #E8F0FB;
    --branco:       #FFFFFF;
    --cinza-claro:  #F4F4F4;
    --cinza-linha:  #E0E0E0;
    --cinza-med:    #5A5A5A;
    --cinza-esc:    #1A1A1A;
    --texto:        #2C2C2C;
    --sombra:       0 4px 24px rgba(0,71,187,0.10);
    --sombra-card:  0 2px 12px rgba(0,0,0,0.07);
    --radius:       6px;
    --nav-h:        64px;
  }

  /* ── MODO ESCURO (DARK MODE) ── */
body.dark-mode {
  --branco:       #121212;
  --cinza-claro:  #1E1E1E;
  --cinza-linha:  #333333;
  --cinza-esc:    #F4F4F4;
  --texto:        #E0E0E0;
  --cinza-med:    #A0A0A0;
  --sombra:       0 4px 24px rgba(0,0,0,0.4);
  --sombra-card:  0 2px 12px rgba(0,0,0,0.3);
  --azul-claro:   #0B1B36; /* Tom escuro para tags e fundos secundários */
}

/* Estilo do botão de toggle na Navbar */
.btn-dark-mode {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-left: 10px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn-dark-mode:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--branco);
  transform: scale(1.05);
}

/* ── CORREÇÃO DO RODAPÉ NO MODO ESCURO ── */
body.dark-mode footer {
  background: #0A0A0A; /* Garante que o fundo do rodapé fique bem escuro */
  color: var(--cinza-med); /* Texto normal acinzentado */
  border-top: 1px solid var(--cinza-linha); /* Dá um acabamento premium */
}

body.dark-mode footer h4,
body.dark-mode .footer-logo-text {
  color: var(--texto); /* Títulos com a cor de texto clara do modo escuro */
}

body.dark-mode footer ul a,
body.dark-mode .footer-bottom a {
  color: var(--cinza-med); 
}

body.dark-mode footer ul a:hover,
body.dark-mode .footer-bottom a:hover {
  color: var(--texto); /* Fica mais claro ao passar o mouse */
}
/* ── FIM MODO ESCURO (DARK MODE) ── */

  html { scroll-behavior: smooth; }
  body {
    font-family: 'Barlow', sans-serif;
    color: var(--texto);
    background: var(--branco);
    overflow-x: hidden;
  }

  /* ── TOPBAR ── */
  .topbar {
    background: var(--branco);
    border-bottom: 1px solid var(--cinza-linha);
    padding: 7px 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    font-size: 12.5px;
    color: var(--cinza-med);
  }
  .topbar a { color: var(--cinza-med); text-decoration: none; transition: color .2s; }
  .topbar a:hover { color: var(--azul); }
  .topbar-sep { color: var(--cinza-linha); }

  /* ── HEADER LOGO ── */
  .header-logo {
    background: var(--branco);
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--cinza-linha);
  }
  .logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
  }
  .logo-firjan {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 36px;
    color: var(--azul-esc);
    letter-spacing: -.02em;
    line-height: 1;
  }
  .logo-linhas {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .logo-linhas span {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: var(--azul);
  }
  .logo-linhas span:nth-child(1) { width: 32px; }
  .logo-linhas span:nth-child(2) { width: 24px; }
  .logo-linhas span:nth-child(3) { width: 16px; }
  .logo-sub {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    padding-left: 14px;
    border-left: 2px solid var(--cinza-linha);
    margin-left: 4px;
  }
  .logo-sub span:first-child {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--azul-esc);
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .logo-sub span:last-child {
    font-size: 11px;
    color: var(--cinza-med);
    font-weight: 500;
  }
  .header-search {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .search-box {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--cinza-linha);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cinza-claro);
  }
  .search-box input {
    border: none;
    background: transparent;
    padding: 9px 14px;
    font-family: 'Barlow', sans-serif;
    font-size: 13.5px;
    color: var(--texto);
    width: 240px;
    outline: none;
  }
  .search-box button {
    background: var(--azul);
    border: none;
    padding: 9px 14px;
    cursor: pointer;
    color: var(--branco);
    display: flex;
    align-items: center;
  }
  .btn-associado {
    background: var(--azul);
    color: var(--branco);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background .2s;
  }
  .btn-associado:hover { background: var(--azul-esc); }

  /* ── NAVBAR ── */
  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--azul);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: 0 40px;
    gap: 0;
    box-shadow: 0 3px 16px rgba(0,48,135,0.25);
  }
  .nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
  .nav-links a {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: var(--radius);
    transition: background .2s, color .2s;
    white-space: nowrap;
  }
  .nav-links a:hover { background: rgba(255,255,255,.12); color: var(--branco); }
  .nav-links a.active { background: rgba(255,255,255,.18); color: var(--branco); }
  .nav-sep { width: 1px; height: 22px; background: rgba(255,255,255,.2); margin: 0 8px; }
  .nav-btn-new {
    margin-left: auto;
    background: var(--branco);
    color: var(--azul-esc) !important;
    border-radius: var(--radius);
    padding: 9px 20px !important;
    font-weight: 700 !important;
    transition: background .2s !important;
  }
  .nav-btn-new:hover { background: var(--azul-claro) !important; }

  /* ── HERO ── */
  .hero {
    background: var(--azul);
    min-height: 420px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 70px 40px;
  }
  .hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
      repeating-linear-gradient(
        -55deg,
        transparent,
        transparent 38px,
        rgba(255,255,255,.04) 38px,
        rgba(255,255,255,.04) 39px
      );
  }
  .hero-wave {
    position: absolute;
    right: 0; bottom: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(0,48,135,.6) 100%);
  }
  .hero-content {
    position: relative;
    max-width: 600px;
    animation: fadeUp .65s ease both;
  }
  .hero-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 24px; height: 2px;
    background: rgba(255,255,255,.5);
  }
  .hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    color: var(--branco);
    letter-spacing: -.01em;
    margin-bottom: 18px;
  }
  .hero h1 .underline {
    border-bottom: 3px solid rgba(255,255,255,.45);
    padding-bottom: 2px;
  }
  .hero p {
    font-size: 16.5px;
    line-height: 1.65;
    color: rgba(255,255,255,.75);
    font-weight: 300;
    max-width: 500px;
    margin-bottom: 34px;
  }
  .hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
  .btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--branco);
    color: var(--azul-esc);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 14px;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 13px 26px;
    border-radius: var(--radius);
    text-decoration: none;
    border: 2px solid var(--branco);
    cursor: pointer;
    transition: background .2s, transform .15s;
  }
  .btn-primary:hover { background: var(--azul-claro); transform: translateY(-1px); }
  .btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    color: var(--branco);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 14px;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 13px 26px;
    border-radius: var(--radius);
    text-decoration: none;
    border: 2px solid rgba(255,255,255,.4);
    cursor: pointer;
    transition: border-color .2s, background .2s;
  }
  .btn-outline:hover { border-color: var(--branco); background: rgba(255,255,255,.1); }

  .hero-stats {
    position: absolute;
    right: 60px; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 16px;
    animation: fadeUp .85s ease .2s both;
  }
  .stat-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-left: 3px solid rgba(255,255,255,.6);
    border-radius: var(--radius);
    padding: 16px 22px;
    min-width: 155px;
    text-align: center;
    backdrop-filter: blur(4px);
  }
  .stat-card .num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 34px; font-weight: 800;
    color: var(--branco); line-height: 1;
  }
  .stat-card .label {
    font-size: 10px; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255,255,255,.6);
    margin-top: 4px;
  }

  /* ── SEÇÕES ── */
  section { padding: 68px 40px; }
  .section-header {
    margin-bottom: 44px;
    display: flex; align-items: flex-end;
    justify-content: space-between; gap: 16px;
  }
  .section-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--azul); margin-bottom: 6px;
  }
  .section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800; font-size: clamp(26px,3vw,38px);
    color: var(--cinza-esc); line-height: 1.1;
  }
  .section-link {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 13px;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--azul); text-decoration: none;
    display: flex; align-items: center; gap: 5px;
    white-space: nowrap; transition: gap .2s;
  }
  .section-link:hover { gap: 9px; }

  /* ── EIXOS ── */
  /* ── GRIDS RESPONSIVAS AUTOMÁTICAS ── */

.eixos-grid,
.dash-grid {
  display: grid;
  /* Cria colunas automáticas de no mínimo 240px. Se a tela encolher, eles quebram de linha sozinhos! */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.cinebib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
}
  /* .eixos-bg { background: var(--cinza-claro); }
  .eixos-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
  }
  .eixo-card {
    background: var(--branco);
    border-radius: var(--radius);
    border-top: 4px solid var(--azul);
    padding: 26px 22px;
    box-shadow: var(--sombra-card);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
  }
  .eixo-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,71,187,.14); }
  .eixo-icon {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--azul-claro);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px; font-size: 19px;
  }
  .eixo-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 16px;
    color: var(--cinza-esc); margin-bottom: 7px;
    letter-spacing: .02em;
  }
  .eixo-card p { font-size: 12.5px; color: var(--cinza-med); line-height: 1.55; }
  .eixo-count {
    margin-top: 16px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800; font-size: 30px;
    color: var(--azul);
  }
  .eixo-count span {
    font-size: 12px; font-weight: 500;
    color: var(--cinza-med); font-family: 'Barlow', sans-serif;
  } */

  /* ── EVENTOS ── */
  /* .eventos-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 22px;
  } */
  .evento-card {
    border-radius: var(--radius);
    border: 1px solid var(--cinza-linha);
    overflow: hidden; box-shadow: var(--sombra-card);
    transition: transform .2s, box-shadow .2s;
    background: var(--branco); cursor: pointer;
  }
  .evento-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,71,187,.13); }
  .evento-card-top { height: 5px; background: var(--azul); }
  .evento-card-body { padding: 22px; }
  .evento-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
  .tag {
    font-size: 10px; font-weight: 600;
    letter-spacing: .07em; text-transform: uppercase;
    border-radius: 2px; padding: 3px 7px;
  }
  .tag-eixo         { background: var(--azul-claro); color: var(--azul-esc); }
  .tag-realizado    { background: #E8F5E9; color: #2E7D32; }
  .tag-planejado    { background: #E3F2FD; color: #1565C0; }
  .tag-andamento    { background: #FFF8E1; color: #E65100; }
  .tag-planejar     { background: #F3E5F5; color: #6A1B9A; }
  .evento-card h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 17px;
    color: var(--cinza-esc); margin-bottom: 7px; line-height: 1.2;
  }
  .evento-card p { font-size: 12.5px; color: var(--cinza-med); line-height: 1.55; margin-bottom: 16px; }
  .evento-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 22px;
    background: var(--cinza-claro); border-top: 1px solid var(--cinza-linha);
    font-size: 12px; color: var(--cinza-med);
  }
  .evento-data { display: flex; align-items: center; gap: 5px; font-weight: 500; }
  .evento-publico {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 11px;
    letter-spacing: .04em; text-transform: uppercase; color: var(--cinza-med);
  }

  /* ── CINEBIBLIOTECA ── */
  .cinebib-bg { background: var(--azul-esc); }
  .cinebib-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
  .cine-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-left: 4px solid rgba(255,255,255,.5);
    border-radius: var(--radius);
    padding: 22px; display: flex; gap: 16px;
    transition: background .2s; cursor: pointer; text-decoration: none;
  }
  .cine-card:hover { background: rgba(255,255,255,.1); }
  .cine-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800; font-size: 40px;
    color: rgba(255,255,255,.2); line-height: 1;
    min-width: 46px; text-align: center;
  }
  .cine-info { flex: 1; }
  .cine-data {
    font-size: 10px; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255,255,255,.5); margin-bottom: 6px;
  }

  /* CONTINUAÇÃO DO SEU CSS - CINEBIBLIOTECA */
  .cine-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; 
    font-size: 16px;
    color: var(--branco); 
    margin-bottom: 6px; 
    line-height: 1.2;
  }
  .cine-desc {
    font-size: 12.5px; 
    color: rgba(255,255,255,.7); 
    line-height: 1.5;
  }

  /* ── DASHBOARD (AQUI ESTÁ A CORREÇÃO PRINCIPAL) ── */
  .dash-bg { 
    background: var(--branco); 
  }
  .dash-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* ➔ Corrigido aqui */
    gap: 20px; 
    margin-bottom: 30px;
  }
  .dash-card {
    background: var(--branco);
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--cinza-linha);
    box-shadow: var(--sombra-card);
  }
  .d-realizado { border-top: 4px solid #2E7D32; }
  .d-planejado { border-top: 4px solid #1565C0; }
  .d-andamento { border-top: 4px solid #E65100; }
  .d-planejar { border-top: 4px solid #6A1B9A; }

  .dash-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; 
    font-size: 13px;
    letter-spacing: .06em; 
    text-transform: uppercase;
    color: var(--cinza-med); 
    margin-bottom: 8px;
  }
  .dash-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800; 
    font-size: 38px;
    color: var(--cinza-esc); 
    line-height: 1; 
    margin-bottom: 4px;
  }
  .dash-sub {
    font-size: 12px; 
    color: var(--cinza-med);
  }

  /* Impede que a tabela jogue o layout para fora da tela */
  .table-wrapper {
    width: 100%;
    overflow-x: auto; /* Correção vital: cria scroll se a tela for pequena */
    border: 1px solid var(--cinza-linha);
    border-radius: var(--radius);
    background: var(--branco);
    box-shadow: var(--sombra-card);
  }
  table {
    width: 100%;
    min-width: 700px; /* Garante que as colunas não amassem */
    border-collapse: collapse;
    text-align: left;
  }
  thead th {
    background: var(--cinza-claro);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; 
    font-size: 14px;
    letter-spacing: .04em; 
    text-transform: uppercase;
    color: var(--cinza-esc);
    padding: 14px 20px;
    border-bottom: 2px solid var(--cinza-linha);
  }
  tbody td {
    padding: 14px 20px;
    font-size: 13.5px;
    color: var(--cinza-med);
    border-bottom: 1px solid var(--cinza-linha);
  }
  tbody tr:last-child td {
    border-bottom: none;
  }
  .td-atividade {
    font-weight: 600;
    color: var(--cinza-esc);
  }

  /* ── FOOTER ── */
  footer {
    background: var(--cinza-esc);
    padding: 60px 40px 30px;
    color: rgba(255,255,255,.6);
  }
  .footer-grid {
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 40px; 
    margin-bottom: 40px;
  }
  .footer-logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800; 
    font-size: 28px;
    color: var(--branco); 
    margin-bottom: 14px;
  }
  .footer-brand p {
    font-size: 13px; 
    line-height: 1.6;
  }
  footer h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; 
    font-size: 16px;
    letter-spacing: .05em; 
    text-transform: uppercase;
    color: var(--branco); 
    margin-bottom: 16px;
  }
  footer ul {
    list-style: none; 
    padding: 0;
  }
  footer ul li {
    margin-bottom: 10px;
  }
  footer ul a {
    color: rgba(255,255,255,.6); 
    text-decoration: none;
    font-size: 13.5px; 
    transition: color .2s;
  }
  footer ul a:hover { color: var(--branco); }
  .footer-bottom {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding-top: 24px; 
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: 12px;
  }
  .footer-bottom a {
    color: rgba(255,255,255,.6); 
    text-decoration: none; 
    margin-left: 16px;
    transition: color .2s;
  }
  .footer-bottom a:hover { color: var(--branco); }

  

  /* ==========================================================================
   ESTILOS ESPECÍFICOS DA TELA DE LOGIN (UI/UX PREMIUM)
   ========================================================================== */

/* ── GRID DE CAMPOS ── */
.fields-grid { 
  display: grid; 
  gap: 20px; 
  align-items: start; /* Garante que todos os campos comecem alinhados perfeitamente pelo topo */
}
.fields-grid-2 { grid-template-columns: 1fr 1fr; }
.fields-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.field-full { grid-column: 1 / -1; }

/* ── CAMPO ── */
.field { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}
.field label {
  font-size: 12.5px; font-weight: 600;
  color: var(--cinza-esc); letter-spacing: .02em;
  display: flex; align-items: center; gap: 4px;
}
.field label .required {
  color: var(--azul); font-size: 14px; line-height: 1;
}

/* ── ELEMENTOS DE INPUT EQUALIZADOS ── */
.field input,
.field select,
.field textarea {
  font-family: 'Barlow', sans-serif;
  font-size: 14px; 
  color: var(--texto);
  background: var(--branco);
  border: 1.5px solid var(--cinza-linha);
  border-radius: var(--radius);
  padding: 10px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  box-sizing: border-box; /* Crucial para alinhar tamanhos: inclui a borda e o padding no cálculo da largura/altura */
}

/* Força EXATAMENTE a mesma altura para Inputs e Selects em qualquer navegador */
.field input,
.field select {
  height: 42px; 
}

/* Tratamento para a Textarea (área de texto longa) */
.field textarea {
  min-height: 104px; /* Altura proporcional a múltiplas linhas (equivalente a 2.5x a altura do input) */
  resize: vertical;  /* Permite ao usuário esticar apenas para baixo, preservando a largura da grid */
}

/* ── ESTADOS DE FOCO ── */
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(0,71,187,.1);
}

.login-page {
  background: var(--cinza-claro);
  background-image: radial-gradient(circle at top right, rgba(0, 71, 187, 0.05), transparent 60%),
                    repeating-linear-gradient(-55deg, transparent, transparent 38px, rgba(0, 71, 187, 0.01) 38px, rgba(0, 71, 187, 0.01) 39px);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeUp 0.5s ease both;
}

.login-card {
  background: var(--branco);
  border-radius: var(--radius);
  border-top: 4px solid var(--azul);
  padding: 40px;
  
  /* Sombra de alto destaque (Premium & Moderna) */
  box-shadow: 0 4px 10px rgba(0, 48, 135, 0.05), 
              0 20px 40px rgba(0, 48, 135, 0.13),
              0 1px 3px rgba(0, 0, 0, 0.05);
              
  /* Opcional: Uma transição suave caso queira colocar um efeito de hover depois */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efeito extra de UX: O card reage sutilmente quando o usuário interage */
.login-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 48, 135, 0.08), 
              0 24px 48px rgba(0, 48, 135, 0.18),
              0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Identidade Visual no Login */
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}
.login-brand .logo-firjan {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: var(--azul-esc);
  line-height: 1;
}
.login-brand .logo-linhas {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.login-brand .logo-linhas span {
  display: block;
  height: 3px;
  border-radius: 1.5px;
  background: var(--azul);
}
.login-brand .logo-linhas span:nth-child(1) { width: 24px; }
.login-brand .logo-linhas span:nth-child(2) { width: 18px; }
.login-brand .logo-linhas span:nth-child(3) { width: 12px; }

.login-sub-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--cinza-med);
  letter-spacing: .04em;
  text-transform: uppercase;
  border-left: 2px solid var(--cinza-linha);
  padding-left: 12px;
}

/* Cabeçalho de Introdução */
.login-welcome {
  text-align: center;
  margin-bottom: 28px;
}
.login-welcome h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--cinza-esc);
  margin-bottom: 6px;
}
.login-welcome p {
  font-size: 13.5px;
  color: var(--cinza-med);
  line-height: 1.5;
}

/* Formulário de Login */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Input customizado de senha com ícone acoplado */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-input-wrapper input {
  width: 100%;
  padding-right: 44px; /* Abre espaço para o botão do olho no canto direito */
}
.password-toggle-btn {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 40px;
  background: transparent;
  border: none;
  color: var(--cinza-med);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: color 0.2s, background-color 0.2s;
}
.password-toggle-btn:hover {
  color: var(--azul);
  background-color: rgba(0, 71, 187, 0.05);
}

/* Utilitários Extras do Login (UX) */
.login-utilities {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  user-select: none;
  margin-top: -4px;
}

/* Checkbox Acessível e Confortável */
.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--texto);
  cursor: pointer;
  font-weight: 500;
}
.remember-me input {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: var(--azul);
}

.forgot-password-link {
  color: var(--azul);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, text-decoration 0.2s;
}
.forgot-password-link:hover {
  color: var(--azul-esc);
  text-decoration: underline;
}

/* Customização do botão padrão para ocupar bloco completo */
.btn-login-block {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 15px;
  margin-top: 6px;
  border: 1px solid #0047BB;
}

/* Rodapé do Sistema de Login */
.login-system-footer {
  text-align: center;
  font-size: 11.5px;
  color: var(--cinza-med);
}

/* Responsividade específica da tela de Login */
@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
  }
  .login-page {
    padding: 16px;
  }
}


/* ── IDENTIFICAÇÃO DO USUÁRIO E LOGOUT ── */
.header-right {
  display: flex;
  align-items: center;
  gap: 24px; /* Espaço entre a barra de busca e o bloco do usuário */
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 20px;
  border-left: 1.5px solid var(--cinza-linha); /* Linha sutil separadora */
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--azul-claro);
  color: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.user-name {
  font-family: 'Barlow', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cinza-esc);
}

.user-meta {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  color: var(--cinza-med);
}

/* Botão de Sair com feedback visual em tom vermelho sutil (alerta/saída) */
.btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid #FFCDD2;
  color: #C62828;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  margin-left: 8px;
  transition: background .2s, border-color .2s;
}

.btn-logout:hover {
  background: #FFEBEE;
  border-color: #EF9A9A;
}

/* ── BOTÃO DE EXPORTAR NO MENU ── */
.nav-btn-export {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 7px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s, border-color .2s, color .2s;
  margin: 0 6px;
  position: absolute;
  right: 250px;
}

.nav-btn-export:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--branco);
  color: var(--branco);
}

.nav-btn-export svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}

/* Efeito sutil de balanço no ícone ao passar o mouse */
.nav-btn-export:hover svg {
  transform: translateY(1px);
}

/* ── COLUNA DE CONTROLE/AÇÕES DA TABELA ── */
.td-acoes {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 8px 12px !important;
}

.btn-tabela {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1.5px solid var(--cinza-linha);
  background: var(--branco);
  color: var(--cinza-med);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Efeito Hover do botão Editar (Azul Firjan) */
.btn-editar:hover {
  color: var(--azul);
  border-color: var(--azul);
  background: var(--azul-claro);
}

/* Efeito Hover do botão Excluir (Vermelho de Erro) */
.btn-excluir:hover {
  color: #C62828;
  border-color: #C62828;
  background: #FFEBEE;
}

.btn-tabela svg {
  transition: transform 0.15s ease;
}

.btn-tabela:hover svg {
  transform: scale(1.08);
}

/* ── ESTRUTURA DOS MODAIS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.5); /* Fundo escurecido suave */
  backdrop-filter: blur(2px);        /* Leve desfoque no fundo */
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Classe que ativa a exibição do modal */
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--branco);
  border-radius: var(--radius);
  width: 100%;
  max-width: 550px;
  box-shadow: 0 8px 32px rgba(0, 48, 135, 0.15);
  border: 1px solid var(--cinza-linha);
  transform: translateY(-20px);
  transition: transform 0.25s ease;
  overflow: hidden;
  margin: 0 16px;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}



/* --- ESTILIZAÇÃO DOS MODAIS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Fundo escurecido translúcido */
    display: none;                  /* Começa ESCONDIDO */
    justify-content: center;
    align-items: center;
    z-index: 9999;                  /* Fica na frente de tudo */
    backdrop-filter: blur(4px);     /* Efeito borrado elegante ao fundo */
}

/* Classe utilitária para exibir o modal via JavaScript */
.modal-overlay.mostrar {
    display: flex;
    display: flex !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

.modal-card {
    background: #ffffff;
    border-radius: 12px;
    width: 550px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: abrirModal 0.3s ease-out;
}

.modal-card-perigo {
    border-top: 5px solid #C62828;
}

.modal-header {
    padding: 16px 24px;
    background: #F4F4F4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E0E0E0;
}

.modal-header h2 {
    font-size: 1.2rem;
    color: #1A1A1A;
    font-family: 'Barlow', sans-serif;
}

.modal-fechar {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #5A5A5A;
}

.modal-body {
    padding: 24px;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-field label {
    font-size: 13px;
    font-weight: 600;
    color: #5A5A5A;
}

.modal-field input, .modal-field select {
    padding: 10px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-size: 14px;
}

.modal-footer {
    padding: 16px 24px;
    background: #F4F4F4;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #E0E0E0;
}

/* Animação de surgimento */
@keyframes abrirModal {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ── HEADER DO MODAL ── */
/* .modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--cinza-linha);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--azul-esc);
  letter-spacing: .02em;
}

.modal-fechar {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--cinza-med);
  cursor: pointer;
  line-height: 1;
}
.modal-fechar:hover { color: var(--cinza-esc); }

/* ── CORPO E GRID DE CAMPOS ── 
.modal-body { padding: 24px; }

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-field { display: flex; flex-direction: column; gap: 4px; }
.modal-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--cinza-esc);
}

.modal-field input {
  font-family: 'Barlow', sans-serif;
  font-size: 13.5px;
  padding: 8px 12px;
  border: 1.5px solid var(--cinza-linha);
  border-radius: var(--radius);
  outline: none;
  color: var(--texto);
}
.modal-field input:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(0,71,187,.1);
} */

/* ── CARD DE EXCLUSÃO (PERIGO) ── */
.modal-card-perigo .modal-header h2 { color: #C62828; }
.alerta-exclusao { display: flex; gap: 16px; align-items: flex-start; }
.alerta-exclusao-icone {
  background: #FFEBEE; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.alerta-exclusao-texto p { font-size: 14.5px; color: var(--cinza-esc); font-weight: 500; }
.alerta-exclusao-texto span { font-size: 12px; color: var(--cinza-med); display: block; margin-top: 4px; }

/* ── FOOTER E BOTÕES ── */
.modal-footer {
  padding: 14px 24px;
  background: var(--cinza-claro);
  border-top: 1px solid var(--cinza-linha);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-modal-cancelar {
  background: transparent; border: 1.5px solid var(--cinza-linha);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase; padding: 8px 16px;
  border-radius: var(--radius); color: var(--cinza-med); cursor: pointer;
}
.btn-modal-cancelar:hover { border-color: var(--cinza-med); color: var(--cinza-esc); }

.btn-modal-salvar {
  background: var(--azul); border: none;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase; padding: 9px 20px;
  border-radius: var(--radius); color: var(--branco); cursor: pointer;
}
.btn-modal-salvar:hover { background: var(--azul-esc); }

.btn-modal-excluir {
  background: #C62828; border: none;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase; padding: 9px 20px;
  border-radius: var(--radius); color: var(--branco); cursor: pointer;
}
.btn-modal-excluir:hover { background: #B71C1C; }

/* Responsividade do Grid */
@media (max-width: 500px) { .modal-grid { grid-template-columns: 1fr; } .modal-grid > div { grid-column: span 1 !important; } }


/*estilizações do login*/
/* Container Geral da Direita do Header */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* O "Card/Pílula" do Perfil */
.user-profile-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #f8fafc; /* Cinza bem claro e moderno */
  padding: 6px 14px;
  border-radius: 50px; /* Formato pílula rounded */
  border: 1px solid #e2e8f0;
  font-family: 'Barlow', sans-serif;
}

/* Círculo do Avatar */
.user-avatar-circle {
  width: 36px;
  height: 36px;
  background-color: #0047BB; /* Azul Firjan institucional */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 2px 4px rgba(0, 71, 187, 0.2);
  user-select: none;
}

/* Alinhamento dos Textos Internos */
.user-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-welcome {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.user-name {
  font-size: 14px;
  color: #1e293b;
  font-weight: 600;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Corta nomes gigantes com '...' */
}

.user-role {
  font-size: 11px;
  color: #0057D9; /* Tom de azul secundário */
  font-weight: 500;
}

/* Botão Moderno de Logout */
.btn-logout-modern {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ef4444; /* Vermelho moderno */
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 30px;
  border: 1px solid transparent;
  transition: all 0.2s ease-in-out;
  margin-left: 4px;
}

/* Efeito Hover Dinâmico ao passar o mouse para sair */
.btn-logout-modern:hover {
  background-color: #fee2e2;
  border-color: #fca5a5;
  transform: translateY(-1px);
}


/* ──────────────────────────────────────────────────────────────────────────
   CORREÇÃO DE RESPONSIVIDADE — COMPLETA (PAINEL, CADASTRO E BIBLIOTECA)
   ────────────────────────────────────────────────────────────────────────── */

/* Ajuste Geral Prévio */
body, html {
  overflow-x: hidden !important; /* Impede a barra de rolagem horizontal indesejada */
}

/* 📱 1. DISPOSITIVOS MÉDIOS (Tablets — até 1024px) */
@media (max-width: 1024px) {
  
  /* biblioteca_firjan.php: Topo Institucional */
  .header-logo {
    flex-direction: column !important;
    height: auto !important;
    padding: 20px !important;
    gap: 15px;
  }
  .logo-wrap {
    flex-direction: column !important;
    text-align: center;
  }
  .logo-linhas {
    flex-direction: row !important;
    width: 60px !important;
    height: 3px !important;
    margin: 8px auto !important;
  }
  .logo-linhas span {
    width: 33% !important;
    height: 100% !important;
  }

  /* cadastro_evento.php: Contentor Lado a Lado vira Vertical */
  .cadastro-container, 
  #conteudo-relatorio {
    flex-direction: column !important;
    padding: 16px !important;
    gap: 24px !important;
  }
  
  .form-card, 
  .side-card {
    width: 100% !important; /* Força ocupação total da largura */
    position: static !important; /* Remove o comportamento fixo lateral */
  }

  /* biblioteca_firjan.php: Grelhas de Elementos */
  .eixos-grid, 
  .cine-grid, 
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Passa para 2 colunas */
    gap: 16px !important;
  }
}

/* 📱 2. DISPOSITIVOS PEQUENOS (Telemóveis — até 768px) */
@media (max-width: 768px) {
  
  /* Topbar dos Painéis */
  .topbar {
    padding: 12px 16px !important;
    height: auto !important;
    flex-direction: column !important;
    gap: 10px !important;
    text-align: center;
  }
  .user-info-text {
    display: none !important;
  }

  /* Barra de Pesquisa e Botão Novo */
  .acoes-barra {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .pesquisa-wrapper, .btn-novo {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
  }

  /* ➔ CORREÇÃO 1: Topo Azul (Hero) amigável no celular */
  .hero {
    padding: 40px 20px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .hero-content {
    max-width: 100% !important;
  }
  .hero-stats {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    margin-top: 30px !important;
    width: 100% !important;
    gap: 12px !important;
  }
  .stat-card {
    flex: 1 1 100px !important; /* Estica para preencher o espaço */
    min-width: 100px !important;
    padding: 12px !important;
  }

  /* ➔ CORREÇÃO 2: Grids com os nomes corretos empilhando em 1 coluna */
  .eixos-grid, 
  .cinebib-grid, 
  .footer-grid, 
  .dash-grid,
  .eventos-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Botões de Ação do Cadastro */
  div[style*="display: flex"][style*="gap: 12px"] {
    flex-direction: column-reverse !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .acao-btn, .btn-salvar {
    width: 100% !important;
    justify-content: center !important;
  }

  /* ➔ CORREÇÃO 3: Tabela virando Cards no Mobile */
  .table-wrapper {
    border: none !important; box-shadow: none !important;
    background: transparent !important; overflow-x: visible !important;
  }
  .table-wrapper table, 
  .table-wrapper tbody, 
  .table-wrapper tr {
    display: block !important; width: 100% !important;
  }
  .table-wrapper thead {
    display: none !important; /* Oculta cabeçalhos horizontais */
  }
  .table-wrapper tr {
    background: var(--branco); border: 1px solid var(--cinza-linha);
    border-radius: var(--radius); margin-bottom: 16px !important;
    padding: 14px !important; box-shadow: var(--sombra-card);
  }
  .table-wrapper td {
    display: flex !important; justify-content: space-between !important;
    align-items: center !important; padding: 10px 0 !important;
    border-bottom: 1px dashed var(--cinza-claro) !important;
    font-size: 14px !important; text-align: right !important;
  }
  .table-wrapper td:last-child {
    border-bottom: none !important; padding-top: 12px !important;
    justify-content: flex-end !important; gap: 12px;
  }
  .table-wrapper td::before {
    content: attr(data-label); font-weight: 600;
    color: var(--cinza-med); text-align: left; margin-right: 15px;
  }
  .table-wrapper td.td-acoes::before { content: "Ações"; }

  /* Modais */
  .modal-card {
    width: 95% !important; margin: 10px auto !important;
    padding: 16px !important; max-height: 90vh; overflow-y: auto;
  }
  .modal-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .modal-grid > div { grid-column: span 1 !important; }
  
  /* Header Superior e Busca */
  .header-right {
    flex-direction: column !important; width: 100% !important;
    align-items: stretch !important; gap: 16px !important; margin-top: 15px;
  }
  .search-box, .search-box input { width: 100% !important; }
  .user-profile-box { justify-content: center !important; }

  /* Central de Notificações Mobile */
  .notif-dropdown {
    position: fixed !important; top: auto !important; bottom: 20px !important;
    left: 50% !important; transform: translateX(-50%) !important;
    width: 90vw !important; z-index: 99999 !important;
  }

  /* Navegação com Rolagem Horizontal */
  nav {
    padding: 0 16px !important; overflow-x: auto !important;
    white-space: nowrap !important; -webkit-overflow-scrolling: touch !important;
  }
  .nav-links { width: max-content !important; padding-right: 20px !important; }
  .nav-btn-export { position: static !important; margin: 0 6px !important; }


  /* ── TRANSFORMAÇÃO DA TABELA DO PAINEL EM CARDS ── */
  .tabela-wrapper {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow-x: visible !important;
  }
  .tabela-eventos {
    display: block !important;
    width: 100% !important;
  }
  .tabela-eventos thead {
    display: none !important; /* Oculta os cabeçalhos horizontais */
  }
  .tabela-eventos tbody, 
  .tabela-eventos tr {
    display: block !important;
    width: 100% !important;
  }
  .tabela-eventos tr {
    background: var(--branco);
    border: 1px solid var(--cinza-linha);
    border-radius: var(--radius);
    margin-bottom: 16px !important;
    padding: 14px !important;
    box-shadow: var(--sombra-card);
  }
  .tabela-eventos td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    border-bottom: 1px dashed var(--cinza-claro) !important;
    font-size: 14px !important;
  }
  .tabela-eventos td:last-child {
    border-bottom: none !important;
    padding-top: 12px !important;
    justify-content: flex-end !important;
    gap: 12px;
  }
  /* Injeta as legendas no telemóvel usando o atributo data-label */
  .tabela-eventos td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--cinza-med);
    text-align: left;
  }
  .tabela-eventos td.td-acoes::before {
    content: "Ações";
  }

  /* Modais (Edição e Exclusão) */
  .modal-card {
    width: 95% !important;
    margin: 10px auto !important;
    padding: 16px !important;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-body form {
    grid-template-columns: 1fr !important; /* Inputs em coluna única */
    gap: 12px !important;
  }
  .form-botoes {
    flex-direction: column-reverse !important;
    gap: 8px !important;
  }
  .form-botoes button {
    width: 100% !important;
    margin: 0 !important;
  }

  /* ── LAPIDAÇÃO FINAL DE RESPONSIVIDADE (MOBILE) ── */
  
  /* 1. Header Superior (Busca, Sino e Perfil) */
  .header-right {
    flex-direction: column !important;
    width: 100% !important;
    align-items: stretch !important;
    gap: 16px !important;
    margin-top: 15px;
  }
  
  .search-box {
    width: 100% !important;
  }
  
  .search-box input {
    width: 100% !important; /* Barra de busca ocupa toda a largura */
  }

  .user-profile-box {
    justify-content: center !important; /* Centraliza o perfil do usuário */
  }

  /* 2. Central de Notificações Mobile */
  .notif-dropdown {
    position: fixed !important;
    top: auto !important;
    bottom: 20px !important; /* Aparece por baixo no mobile, tipo popup nativo */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90vw !important; /* 90% da tela do celular */
    z-index: 99999 !important;
  }

  /* 3. Navegação com Rolagem Horizontal (Scroll Suave) */
  nav {
    padding: 0 16px !important;
    overflow-x: auto !important; /* Permite arrastar com o dedo */
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important; /* Deixa o deslizar macio no iPhone */
  }
  
  .nav-links {
    width: max-content !important; /* Impede os botões de ficarem espremidos */
    padding-right: 20px !important;
  }
  
  .nav-btn-export {
    position: static !important; /* Remove o alinhamento forçado à direita */
    margin: 0 6px !important;
  }
}

/* Efeito Hover do botão Inscrever (Verde Sucesso) */
.btn-inscrever:hover {
  color: #2E7D32;
  border-color: #2E7D32;
  background: #E8F5E9;
}


/* ── BARRA DE FILTROS DA TABELA ── */
.filtros-barra {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  background: var(--cinza-claro);
  border-bottom: 1px solid var(--cinza-linha);
  align-items: flex-end;
  flex-wrap: wrap;
}

.filtro-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 180px;
}

.filtro-item label {
  font-size: 12px;
  font-weight: 600;
  color: var(--cinza-med);
}

.filtro-item select, 
.filtro-item input[type="date"] {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--cinza-linha);
  border-radius: var(--radius);
  font-family: 'Barlow', sans-serif;
  font-size: 13.5px;
  color: var(--texto);
  background: var(--branco);
  outline: none;
  transition: border-color 0.2s;
  height: 42px;
}

.filtro-item select:focus, 
.filtro-item input[type="date"]:focus {
  border-color: var(--azul);
}

.btn-limpar-filtros {
  height: 42px;
  padding: 0 16px;
  background: transparent;
  border: 1.5px solid var(--cinza-linha);
  border-radius: var(--radius);
  color: var(--cinza-med);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-limpar-filtros:hover {
  border-color: var(--cinza-med);
  color: var(--cinza-esc);
}

/* Modo escuro para os filtros */
body.dark-mode .filtro-item select,
body.dark-mode .filtro-item input[type="date"] {
  background-color: #1A1A1A;
  color: var(--texto);
  color-scheme: dark; /* Faz o calendário nativo do HTML ficar escuro */
}


/* ── CORREÇÃO DE ALINHAMENTO DO INPUT DE DATA ── */
.filtro-item input[type="date"] {
  box-sizing: border-box;
  height: 42px !important;       /* Trava a altura para bater exatamente com o select */
  line-height: 20px;             /* Alinha o texto perfeitamente no centro vertical */
  padding: 8px 12px;             /* Ajuste fino do preenchimento interno */
  -webkit-appearance: none;      /* Remove a formatação teimosa do Chrome/Safari */
  appearance: none;
}

/* Deixa o ícone de calendário nativo mais elegante e interativo */
.filtro-item input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  margin-right: -4px; /* Puxa o ícone levemente para a direita */
}

.filtro-item input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  color: var(--azul);
}

/* Correção para garantir que no Modo Escuro o calendário continue alinhado */
body.dark-mode .filtro-item input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1); /* Deixa o ícone visível no fundo escuro */
}


/* ── CENTRAL DE NOTIFICAÇÕES (DIFERENCIAL 2) ── */
.notif-container {
  position: relative;
  display: inline-block;
  margin-right: 6px;
}
.btn-notif {
  background: transparent;
  border: none;
  color: var(--cinza-med);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s, color 0.2s;
}
.btn-notif:hover {
  background: var(--cinza-claro);
  color: var(--azul);
}
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #C62828;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid var(--branco);
  animation: pulse 2s infinite;
}
.notif-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 12px;
  width: 310px;
  background: var(--branco);
  border: 1px solid var(--cinza-linha);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  display: none;
  z-index: 1000;
  overflow: hidden;
  animation: fadeUp 0.2s ease both;
}
.notif-dropdown.mostrar { display: block !important; }
.notif-header {
  padding: 12px 16px;
  background: var(--cinza-claro);
  border-bottom: 1px solid var(--cinza-linha);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notif-header h4 { font-family: 'Barlow', sans-serif; font-size: 13px; font-weight: 700; color: var(--cinza-esc); margin: 0; }
.notif-count { font-size: 10.5px; font-weight: 700; color: #C62828; background: #FFEBEE; padding: 2px 8px; border-radius: 12px; }
.notif-body { max-height: 260px; overflow-y: auto; }
.notif-vazia { padding: 24px; text-align: center; font-size: 12.5px; color: var(--cinza-med); }
.notif-item { padding: 12px 16px; border-bottom: 1px solid var(--cinza-linha); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.notif-item:last-child { border-bottom: none; }
.notif-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.notif-titulo { font-size: 13px; font-weight: 600; color: var(--cinza-esc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-data { font-size: 11px; color: var(--cinza-med); }
.notif-tag { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; white-space: nowrap; }

.notif-atrasado { background: #FFEBEE; color: #C62828; }
.notif-hoje { background: #FFF3E0; color: #E65100; }
.notif-urgente { background: #E8F0FB; color: #0047BB; }

/* Adaptação estrita para o Modo Escuro */
body.dark-mode .btn-notif:hover { background: #2A2A2A; }
body.dark-mode .notif-badge { border-color: #121212; }
body.dark-mode .notif-count { background: #421216; color: #FF8A80; }
body.dark-mode .notif-atrasado { background: #421216; color: #FF8A80; }
body.dark-mode .notif-hoje { background: #4A2800; color: #FFB74D; }
body.dark-mode .notif-urgente { background: #0F2547; color: #82B1FF; }

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(198, 40, 40, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); }
}

/* ==========================================================================
   CORREÇÃO DEFINITIVA DO PAINEL DE EVENTOS NO CELULAR
   (Tem que ficar no final do arquivo para ter prioridade máxima!)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Conserta a Barra de Filtros (Ficam empilhados e bonitos) */
  .filtros-barra {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 16px !important;
    gap: 12px !important;
  }
  .filtro-item {
    width: 100% !important;
    min-width: 100% !important;
  }
  .btn-limpar-filtros {
    width: 100% !important;
    margin-top: 8px !important;
  }

  /* 2. Conserta a Tabela (Força ela a virar Cartões) */
  .main-wrapper#conteudo-relatorio {
    padding: 16px !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  .table-wrapper {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow-x: hidden !important; 
  }
  
  .table-wrapper table {
    min-width: 0 !important; /* MATADOR DE BUGS: Remove os 700px da tabela */
    width: 100% !important;
    display: block !important;
  }
  
  .table-wrapper thead {
    display: none !important; /* Esconde os títulos horizontais antigos */
  }
  
  .table-wrapper tbody, 
  .table-wrapper tr {
    display: block !important;
    width: 100% !important;
  }
  
  .table-wrapper tr {
    background: var(--branco); 
    border: 1px solid var(--cinza-linha);
    border-radius: var(--radius); 
    margin-bottom: 16px !important;
    padding: 16px !important; 
    box-shadow: var(--sombra-card);
  }
  
  .table-wrapper td {
    display: flex !important; 
    justify-content: space-between !important;
    align-items: center !important; 
    padding: 10px 0 !important;
    border-bottom: 1px dashed var(--cinza-claro) !important;
    font-size: 13.5px !important; 
    text-align: right !important;
    word-break: break-word !important; 
    gap: 12px;
  }
  
  .table-wrapper td:last-child {
    border-bottom: none !important; 
    padding-top: 12px !important;
    justify-content: flex-end !important;
  }
  
  .table-wrapper td::before {
    content: attr(data-label); 
    font-weight: 700;
    color: var(--cinza-med); 
    text-align: left;
    flex-shrink: 0;
  }
}


/* ==========================================================================
   REFINAMENTO COMPLETO DE FONTES NO MODO ESCURO (DARK MODE)
   ========================================================================== */
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode th, 
body.dark-mode strong, 
body.dark-mode .logo-firjan, 
body.dark-mode .logo-sub span:first-child,
body.dark-mode .td-atividade,
body.dark-mode .section-title {
    color: #FFFFFF !important; /* ➔ Branco Puro para títulos, logos e destaques cruciais */
}

body.dark-mode p, 
body.dark-mode td, 
body.dark-mode label, 
body.dark-mode li, 
body.dark-mode .cine-desc,
body.dark-mode .logo-sub span:last-child,
body.dark-mode a:not(.btn-primary):not(.nav-btn-new):not(.btn-modal-salvar):not(.btn-modal-excluir):not(.nav-links a) {
    color: #E0E0E0 !important; /* ➔ Cinza Claro para textos corridos, descrições e links normais */
}

body.dark-mode span:not(.notif-badge):not(.tag) {
    color: #B0B0B0 !important; /* ➔ Cinza Médio Confortável para textos secundários e welcomes */
}

/* Garante a leitura perfeita dentro de caixas de texto e seletores */
body.dark-mode input, 
body.dark-mode select, 
body.dark-mode textarea {
    color: #FFFFFF !important;
    background-color: #1A1A1A !important;
    border-color: #444444 !important;
}

/* Ajuste fino para os placeholders (textos de dica internos vazios) */
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #707070 !important;
}