/*
Theme Name: ASP Pereira Custom
Author: Teu Nome
Description: Conversão de projeto PHP para WordPress
Version: 1.0
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #fff;
  color: #222;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =============================================
   HERO / SLIDER
============================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
  background: #111;
}

.hero-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
}

/* Dark overlay */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-sub {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  line-height: 1.1;
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dot.active {
  background: #8dc21f;
}

/* =============================================
   SECTION TITLES
============================================= */
.section-title-green {
  font-size: 1.5rem;
  font-weight: 800;
  color: #8dc21f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

/* =============================================
   OPINIÃO + INSCRIÇÃO
============================================= */
.opiniao-inscricao {
  padding: 70px 0 60px;
}

.opiniao-inscricao .container-wide {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.col-opiniao,
.col-inscricao {
  flex: 1;
}

/* Accordion */
.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.accordion-item {
  border: 1px solid #d0d0d0;
  margin-bottom: -1px;
}

.accordion-btn {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #fff;
  border: none;
  padding: 16px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #222;
  transition: background 0.15s;
}

.accordion-btn:hover {
  background: #f7fbee;
}

.accordion-icon {
  background: #333;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  flex-shrink: 0;
  min-width: 26px;
  text-align: center;
  transition: transform 0.2s;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding: 16px 18px;
  background: #fafafa;
  border-top: 1px solid #e5e5e5;
}

.accordion-body.open {
  display: block;
  position: relative;
  z-index: 2;
}

.accordion-body p {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #444;
}

.accordion-body textarea {
  width: 100%;
  min-height: 80px;
  border: 1px solid #ccc;
  padding: 8px;
  font-size: 0.9rem;
  resize: vertical;
  margin-bottom: 10px;
  font-family: inherit;
}

.btn-enviar {
  display: inline-block;
  background: #8dc21f;
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-enviar:hover {
  background: #72a018;
}

/* =============================================
   ATIVIDADES
============================================= */
.atividades {
  padding: 60px 0;
  background: #fff;
}

.atividades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 20px;
}

.atividade-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 16px;
}

.atividade-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #333;
  text-align: justify;
  margin-bottom: 10px;
}

.atividade-date {
  font-size: 0.78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =============================================
   VER INSTALAÇÕES
============================================= */
.ver-instalacoes {
  padding: 40px 0 60px;
}

.btn-instalacoes {
  display: inline-block;
  background: #8dc21f;
  color: #fff;
  padding: 14px 36px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid #8dc21f;
  transition: background 0.2s, color 0.2s;
}

.btn-instalacoes:hover {
  background: #fff;
  color: #8dc21f;
}

/* =============================================
   VOLUNTARIO / SOCIO / DONATIVOS
============================================= */
.ajuda-section {
  background: #111;
  padding: 60px 0;
}

.ajuda-section .container-wide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.ajuda-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ajuda-bar {
  display: inline-block;
  width: 4px;
  height: 18px;
  background: #8dc21f;
  flex-shrink: 0;
}

.ajuda-col p {
  color: #bbb;
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.ajuda-col ul {
  list-style: none;
  padding: 0;
}

.ajuda-col ul li {
  border-top: 1px solid #333;
  padding: 10px 0;
}

.ajuda-col ul li a {
  color: #bbb;
  font-size: 0.88rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.ajuda-col ul li a::before {
  content: '›';
  color: #8dc21f;
  font-size: 1.1rem;
  font-weight: 700;
}

.ajuda-col ul li a:hover {
  color: #8dc21f;
}

.donativos-list li:first-child {
  border-top: 1px solid #333;
}

/* =============================================
   FOOTER VERDE
============================================= */
.footer-green {
  background: #8dc21f;
  text-align: center;
  padding: 18px 20px;
}

.footer-green a {
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.footer-green a:hover {
  text-decoration: underline;
}

/* =============================================
   SCROLL TO TOP
============================================= */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #333;
  color: #fff;
  border: none;
  padding: 10px 12px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 999;
  line-height: 1.2;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background: #8dc21f;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  .opiniao-inscricao .container-wide {
    flex-direction: column;
    gap: 40px;
  }

  .atividades-grid {
    grid-template-columns: 1fr;
  }

  .ajuda-section .container-wide {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* =============================================
   PÁGINAS INTERNAS - Layout Sidebar + Conteúdo
============================================= */

.page-main {
  min-height: 60vh;
  padding: 50px 0;
  background: #fff;
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* ----- Sidebar ----- */
.page-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
}

.sidebar-nav {
  list-style: none;
  border-left: 4px solid #8dc21f;
}

.sidebar-nav li {
  border-bottom: 1px solid #e5e5e5;
}

.sidebar-link {
  display: block;
  padding: 14px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #333;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: #f7fbee;
  color: #8dc21f;
}

/* ----- Conteúdo ----- */
.page-content {
  flex: 1;
  min-width: 0;
}

.content-section {
    padding: 60px 0; /* Dá espaço entre os anos */
    border-bottom: 1px solid #eee; /* Linha subtil para separar os anos */
    min-height: 300px; /* Garante que a secção tem corpo */
}

/* Garante que o link ativo fica com o verde da ASP */
.sidebar-link.active {
    color: #8dc21f !important;
    font-weight: bold;
    border-left: 3px solid #8dc21f;
    padding-left: 10px;
}

.content-section:last-child {
  border-bottom: none;
}

.content-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #8dc21f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.content-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  margin: 20px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.content-section p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 12px;
}

.content-list {
  list-style: none;
  padding: 0;
  margin-bottom: 12px;
}

.content-list li {
  font-size: 0.9rem;
  color: #444;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-list li::before {
  content: '›';
  color: #8dc21f;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ----- Botões de documento ----- */
.btn-doc {
  display: inline-block;
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #333;
  padding: 10px 18px;
  font-size: 0.88rem;
  text-decoration: none;
  margin: 6px 0;
  transition: background 0.2s, color 0.2s;
  border-left: 3px solid #8dc21f;
}

.btn-doc:hover {
  background: #f7fbee;
  color: #8dc21f;
}

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ----- Galeria ----- */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.galeria-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  display: block;
}

.galeria-grid img:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

/* ----- Lightbox ----- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 4px 40px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* ----- Responsive páginas internas ----- */
@media (max-width: 768px) {
  .page-container {
    flex-direction: column;
    padding: 0 20px;
  }

  .page-sidebar {
    width: 100%;
    position: static;
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    border-left: none;
    border-top: 4px solid #8dc21f;
  }

  .sidebar-nav li {
    border-bottom: none;
    border-right: 1px solid #e5e5e5;
  }

  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   SOBRE NÓS
============================================= */

/* Banner topo */
.sobre-banner {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.sobre-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.sobre-main {
  background: #fff;
}

/* --- Ideologia --- */
.ideologia-section {
  padding: 60px 0 50px;
  border-bottom: 1px solid #eee;
}

.ideologia-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.ideologia-texto {
  flex: 1;
}

.ideologia-texto p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 16px;
  text-align: justify;
}

.ideologia-logo {
  flex-shrink: 0;
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ideologia-logo img {
  width: 100%;
  height: auto;
}

/* --- Quem Somos --- */
.quem-somos-section {
  padding: 60px 0 70px;
}

.quem-somos-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 40px;
}

.content-title.center {
  text-align: center;
  margin-bottom: 36px;
}

.quem-somos-texto p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 18px;
  text-align: justify;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .ideologia-inner {
    flex-direction: column;
    gap: 30px;
  }

  .ideologia-logo {
    width: 140px;
    margin: 0 auto;
  }

  .sobre-banner {
    height: 140px;
  }
}

/* ideologia dentro do page-content */
.page-content .ideologia-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin: 16px 0 24px;
}

.page-content .ideologia-texto {
  flex: 1;
}

.page-content .ideologia-texto p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 12px;
  text-align: justify;
}

.page-content .ideologia-logo {
  flex-shrink: 0;
  width: 150px;
}

.page-content .ideologia-logo img {
  width: 100%;
  height: auto;
}

.page-content .content-section p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 12px;
  text-align: justify;
}

@media (max-width: 768px) {
  .page-content .ideologia-inner {
    flex-direction: column;
  }
  .page-content .ideologia-logo {
    width: 120px;
    margin: 0 auto;
  }
}

.contactos-section {
  padding: 60px 0;
  background: #fafafa;
}

.contactos-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.contactos-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.contacto-icon {
  font-size: 1.8rem;
}

.contacto-item a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.contacto-item a:hover {
  color: #8dc21f;
}

.contactos-sociais {
  text-align: center;
  padding-left: 40px;
  border-left: 2px solid #eaeaea;
}

.contactos-sociais p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #333;
}

.sociais-botoes {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-social {
  display: inline-block;
  padding: 12px 24px;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-social:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-facebook {
  background-color: #3b5998;
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

@media (max-width: 768px) {
  .contactos-wrapper {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  .contacto-item {
    justify-content: center;
  }
.contactos-sociais {
  text-align: center;
  /* Removi o padding e a linha (border) daqui */
}

.contactos-sociais p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #333;
}

.sociais-botoes {
  display: flex;
  gap: 25px;
  justify-content: center;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

/* Efeito de subir ligeiramente quando se passa o rato */
.btn-social:hover {
  transform: translateY(-4px) scale(1.05);
  opacity: 0.8;
}

/* Remover aquela linha do @media antigo para o telemóvel também ficar limpo */
@media (max-width: 768px) {
  .contactos-wrapper {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  .contacto-item {
    justify-content: center;
  }
  .contactos-sociais {
    padding-top: 20px;
  }
}
}

/* Estilos para a página de Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-color: #fafafa;
    padding: 20px;
}

.login-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    width: 100px;
    margin-bottom: 20px;
}

.login-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.login-header p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.login-form {
    text-align: left;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #8dc21f;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #8dc21f;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: #7ab11a;
    transform: translateY(-2px);
}

.forgot-password {
    display: block;
    margin-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #8dc21f;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Este contentor ocupa o espaço abaixo do header */
.login-wrapper {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;     /* Centra verticalmente */
    min-height: 80vh;        /* Dá altura suficiente para o centro parecer o meio da página */
    padding: 20px;
    background-color: #f9f9f9;
}

/* O "Cartão" branco onde fica o formulário */
.login-card {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px; /* Impede que o formulário fique demasiado largo */
    text-align: center;
}

.login-logo {
    width: 100px;
    margin-bottom: 20px;
}

.input-box {
    text-align: left;
    margin-bottom: 15px;
}

.input-box label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.input-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Botão com o verde oficial da ASP */
.btn-entrar {
    width: 100%;
    padding: 12px;
    background-color: #8dc21f; /* Cor verde vista no logo e menu */
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-entrar:hover {
    background-color: #7ab11a;
}

.btn-esqueceu {
    display: block;
    margin-top: 15px;
    color: #8dc21f;
    text-decoration: none;
    font-size: 0.9rem;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Ajusta este valor conforme a altura do teu header fixo */
}
/* =============================================
   ÁREA RESTRITA
============================================= */

/* Info do utilizador na sidebar */
.sidebar-user {
  margin-top: 24px;
  padding: 16px 18px;
  border-top: 1px solid #e5e5e5;
  font-size: 0.88rem;
}

.sidebar-user p {
  color: #333;
  margin-bottom: 4px;
}

.sidebar-cargo {
  color: #888;
  font-size: 0.82rem;
  margin-bottom: 12px !important;
}

.btn-logout {
  display: inline-block;
  margin-top: 8px;
  background: #333;
  color: #fff;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s;
}

.btn-logout:hover {
  background: #c0392b;
  color: #fff;
}

/* Mensagem feedback */
.msg-box {
  padding: 12px 18px;
  border-radius: 3px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.msg-box.sucesso {
  background: #f0fadf;
  border-left: 4px solid #8dc21f;
  color: #4a7a00;
}

.msg-box.erro {
  background: #fff0f0;
  border-left: 4px solid #e74c3c;
  color: #c0392b;
}

/* Tabela de documentos */
.doc-table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.doc-table th {
  background: #f5f5f5;
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  color: #555;
  border-bottom: 2px solid #e0e0e0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.doc-table tr:last-child td { border-bottom: none; }
.doc-table tr:hover td { background: #fafff5; }

.doc-nome a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.doc-nome a:hover { color: #8dc21f; }

.doc-ausente {
  color: #bbb;
  font-weight: 600;
}

.doc-tamanho {
  display: block;
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 2px;
}

.estado-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.estado-badge.disponivel { background: #f0fadf; color: #5a9a00; }
.estado-badge.ausente    { background: #fef0f0; color: #c0392b; }

.form-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.input-file {
  font-size: 0.8rem;
  color: #555;
  max-width: 180px;
}

.btn-upload {
  background: #8dc21f;
  color: #fff;
  border: none;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 3px;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-upload:hover { background: #72a018; }

.btn-apagar {
  background: transparent;
  color: #e74c3c;
  border: 1px solid #e74c3c;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 3px;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-apagar:hover { background: #e74c3c; color: #fff; }

.sem-ficheiro { color: #ccc; }

/* Documento indisponível */
.doc-indisponivel {
  font-size: 0.88rem;
  color: #aaa;
  font-style: normal;
  padding: 10px 14px;
  border-left: 3px solid #ddd;
  background: #fafafa;
}

.doc-indisponivel em {
  color: #bbb;
}

/* ----- Livro de Reclamações ----- */
.livro-reclamacoes {
  display: flex;
  align-items: center;
  padding: 28px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}

.livro-reclamacoes:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  .livro-reclamacoes {
    display: none;
  }
}