/* Fonte futurista */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
}

/* Body */
body {
    background: #121212;
    color: #e0e0e0;
    min-height: 100vh;
    padding: 0;
}
/* Cabeçalho */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    padding: 15px 30px;
    border-bottom: 2px solid #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .logo img {
    height: 50px;
}

.header .menu a {
    margin-left: 20px;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.header .menu a:hover {
    color: #fff;
}

/* Container centralizado */
.container {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    margin: 50px auto 50px auto; /* centraliza e dá espaçamento do header */
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Títulos */
h1, h2 {
    text-align: center;
    color: #f0f0f0;
    margin-bottom: 20px;
}

/* Inputs e textareas */
input, textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #222;
    color: #e0e0e0;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

input:focus, textarea:focus {
    border-color: #555;
    box-shadow: 0 0 5px rgba(255,255,255,0.2);
}

/* Botões */
button, .btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #444;
    color: #f0f0f0;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
}

button:hover, .btn:hover {
    background: #666;
}

/* Links gerais */
a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #fff;
}

/* Tabela admin */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    border: 1px solid #333;
    text-align: center;
}

th {
    background: #222;
    color: #e0e0e0;
}

td {
    background: #1a1a1a;
}

/* Mensagens de erro */
p.error {
    color: #ff4c4c;
    text-align: center;
    margin-bottom: 20px;
}

/* ====== MOBILE OPTIMIZADO ====== */
@media (max-width: 1000px) {

  /* ===== HEADER ===== */
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    width: 100%;
  }

  .header .logo img {
    height: 70px;
    margin-bottom: 10px;
  }

  .header .menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .header .menu a {
    font-size: 18px;
    padding: 10px;
    background: #222;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    transition: background 0.3s;
  }

  .header .menu a:hover {
    background: #333;
  }

  /* ===== CONTAINER GERAL ===== */
  .container {
    width: 95%;
    padding: 20px;
    margin: 20px auto;
    border-radius: 12px;
    font-size: 16px;
  }

  h1, h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* ===== FORMULÁRIOS ===== */
  input, textarea {
    font-size: 15px;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  button, .btn {
    font-size: 16px;
    padding: 12px;
    width: 100%;
  }

  /* ===== TABELAS → VERSÃO CARTÃO ===== */
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 15px;
    background: #222;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  }

  td {
    border: none;
    padding: 8px 0;
    text-align: left;
  }

  td::before {
    content: attr(data-label);
    font-weight: bold;
    color: #ff6f61;
    display: block;
    margin-bottom: 4px;
  }

  /* ===== FOOTER ===== */
  .labmedia-footer {
    padding: 25px 15px;
    font-size: 14px;
    margin-top: 50px;
    text-align: center;
  }

  .footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding: 0;
  }

  .footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}


/* Footer geral */
.labmedia-footer {
  background-color: #1e1e1e; /* cor do fundo */
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-align: center;
  padding: 40px 20px;
}

/* Conteúdo principal do footer */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Navegação do footer */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.footer-nav li {
  display: inline-block;
  margin: 0 15px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #ff6f61; /* cor ao passar o mouse */
}

/* Redes sociais */
.footer-social {
  margin-bottom: 20px;
}

.footer-social .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background-color: #333; /* fundo do botão */
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}
.social-logo {
  width: 20px;       /* define a largura */
  height: auto;      /* altura ajusta automaticamente */
  margin-right: 8px; /* espaço entre ícone e texto */
  vertical-align: middle; /* alinha verticalmente com o texto */
  display: inline-block;
}

.footer-social .social-icon:hover {
  background-color: #e1306c; /* cor do Instagram */
  color: #fff;
}

/* Linha inferior */
.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  font-size: 12px;
  color: #aaa;
}

/* Efeito inicial invisível */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* Quando entra no ecrã */
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
