
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Exo+2:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* ==============================
   RESET / BASE
============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Exo 2", sans-serif;
  font-size:large;
  background: #0b0b0d;
  color: #f2f2f2;
  line-height: 1.6;
  padding-top: 70px; /* ajusta conforme a altura real do header */
}



img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ==============================
   LAYOUT
============================== */
.container {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

/* ==============================
   HEADER
============================== */
/* ==============================
   HEADER (fixo e responsivo)
============================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #111;
  padding: 16px 0;           /* altura inicial */
  z-index: 1000;
  transition: padding 0.3s ease, background 0.3s ease;
}
.site-header.shrink {
  padding: 8px 0;            /* altura reduzida ao rolar */
  background: rgba(17, 17, 17, 0.9);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}



/* Botão do menu mobile */
.menu-toggle {
  display: flex;
  flex-direction: column;   /* força ficar em coluna */
  justify-content: center;
  justify-self: end;
  align-items: center;
  width: 40px;
  height: 32px;
  gap: 6px;                 /* espaço entre as barrinhas */
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Barrinhas */
.menu-toggle .bar {
  display: block;
  width: 28px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}




/* ==============================
   MENU MÓVEL (overlay flutuante)
============================== */
.mobile-menu[hidden] {
  display: none;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
}
.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}
.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86%, 360px);
  height: 100%;
  background: #141414;
  border-left: 1px solid #222;
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.4);
  padding: 18px 16px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open .mobile-menu__panel {
  transform: translateX(0);
}
.mobile-menu__close {
  background: transparent;
  border: none;
  color: #f2f2f2;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  margin-left: auto;
  display: block;
  margin-bottom: 10px;
}

/* Lista do menu móvel */
.mobile-menu__list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 10px;
}
.mobile-menu__list a {
  display: block;
  padding: 12px 10px;
  border-radius: 8px;
  background: #1b1b1b;
  color: #f2f2f2;
}
.mobile-menu__list a:hover {
  background: #232323;
}
.mobile-menu__login a {
  background: #ffd166;
  color: #111;
  font-weight: 700;
}

/* Evita scroll do body quando o menu está aberto */
.no-scroll {
  overflow: hidden;
}

/* ==============================
   RESPONSIVIDADE
============================== */
/* Mobile first: por padrão, esconda nav e login desktop; mostre hambúrguer */
.main-nav,
.login-cta {
  display: none;
}
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* A partir de 768px (ou o breakpoint que preferir), mostra nav/login e esconde o hambúrguer */
@media (min-width: 768px) {
  .main-nav,
  .login-cta {
    display: inline-flex;
  }
  .menu-toggle {
    display: none;
  }
}

.brand img {
  width: 100px;
  height: auto;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
}
.main-nav a {
  padding: 8px 12px;
  border-radius: 4px;
}
.main-nav a.active,
.main-nav a:hover {
  background: #222;
}
.login-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #222;
  border-radius: 4px;
}

/* ==============================
   CARROSSEL (mantendo tamanho original)
============================== */
.carousel {
  position: relative;
  margin: 20px 0;
  overflow: hidden;
  width: 100%;
  height: 80vh; /* espaço reservado, pode ajustar */
  background: #0b0b0d; /* fundo neutro atrás das fotos */
  display: block;
  align-items: center;
  justify-content: center;
}

.carousel-title {
  text-align: center;
  font-size: 1.8rem;
  margin: 80px 0 20px; /* empurra pra baixo do header */
}

@media (max-width: 600px) {
  .carousel-title {
    font-size: 1.3rem;
    margin: 70px 0 12px;
  }
}



.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* mantém proporção original */
  border-radius: 5px;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;

}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #888;
  cursor: pointer;
}
.carousel-dots button.active {
  background: #ffd166;
}

/* ==============================
   BANNER CTA
============================== */
.banner-cta {
  display: block;
  margin: 20px 0;
  border-radius: 6px;
  overflow: hidden;
}
.banner-cta:hover {
  background: #0b0b0d;
}
.banner-cta img {
  width: 75%;
  height: auto;       /* mantém proporção original */
  display:block;
  margin: 0 auto;
  border-radius: 5px;
}
.cta-text{
  text-align: center;
}



/* Rodapé */
.rodape {
  background: linear-gradient(135deg, #111, #333);
  color: white;
  padding: 40px 20px 20px;
  text-align: center;
  margin-top: 50px;
}

.rodape h3 {
  margin-bottom: 10px;
  font-size: 1.6em;
  color: #ffcc00;
}

.rodape p {
  margin-bottom: 20px;
  font-size: 1em;
  color: #ccc;
}

.social-links {
  margin-bottom: 20px;
}

.social-links a {
  color: white;
  font-size: 1.5em;
  margin: 0 10px;
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
  color: #ffcc00;
  transform: scale(1.2);
}

/* Botão de orçamento */
.btn-orcamento {
  display: inline-block;
  padding: 12px 25px;
  background: #ffcc00;
  color: #111;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.btn-orcamento:hover {
  background: #ffaa00;
  transform: scale(1.05);
}

/* Copy */
.copy {
  margin-top: 20px;
  font-size: 0.9em;
  color: #888;
}

/* Serviços */
.services-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 18px; 
  
}

/* ==============================
   Serviços — cards sem carrossel
============================== */
.service-card { 
  background: linear-gradient(180deg, #151727, #121424); 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  overflow: hidden; 
  box-shadow: var(--shadow); 
  transition: transform .15s ease, box-shadow .2s ease; 
}

.service-card:hover { 
  transform: translateY(-2px); 
}

.service-card img { 
  height: 225px; 
  object-fit: cover; 
  border-radius: 0; 
  margin: 0 auto;
}

.service-card .body { 
  padding: 14px; 
  font-size: 14px; 
  color: var(--muted); 
}
.service-card .title { 
  font-size: 17px; 
  font-weight: 700; color: var(--text); 
  margin-bottom: 6px; 
  font-family: var(--font-serif); 
}

@media (min-width: 640px) {
.services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
.carousel-slide { height: 62vh; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Sections */
.section { 
  padding: 28px 0;
  padding-top: 70px; /* ajusta conforme a altura real do header */ }
.section h1, .section h2 { font-family: var(--font-serif); letter-spacing: .3px; }
.section h1 { font-size: clamp(28px, 3.2vw, 40px); margin: 8px 0 8px; }
.section h2 { font-size: clamp(20px, 2.2vw, 28px); margin: 8px 0 14px; }

/*Sobre mim*/
.foto-mari{
  display:block;
  margin:0 auto;
  width: 350px;
  height: auto;
  border-radius: 5px;
}

.foto-marifamilia{
  width: 500px;
   display:block;
  margin:0 auto;
  height: auto;
  border-radius: 5px;
}
.texto-qse{
    text-align: justify;
    margin: 0 auto;
    padding-top: 20px;
}
.quemsoueu{
    text-align: center;
}
.familia{
  padding-top: 20px;
}
/* Página de Contato */
.contato {
  text-align: center;
  padding: 60px 20px;
  background: #5e5d5d;
}

.contato h2 {
  font-size: 2em;
  margin-bottom: 10px;
  color: black;
}

.contato p {
  font-size: 1.1em;
  color: black;
  margin-bottom: 30px;
}

/* ========== LOGIN PAGE ========== */


.login-container {
  margin: 0 auto;
  margin-top: 100px;
  background: #3f3e3e;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 300px;
  text-align: center;

}

.login-container h2 {
  margin-bottom: 20px;
}

.login-container input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.login-container .entrar {
  width: 100%;
  padding: 12px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.login-container button:hover {
  background: #555;
}

.error {
  color: red;
  margin-top: 10px;
  font-size: 0.9em;
}
/* ===== Campo de senha com botão lateral ===== */
.password-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-line input {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #555;
  
  color: #fff;
}

.toggle-password {
  background: #555;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1.1em;
  cursor: pointer;
  padding: 9px;
  transition: background 0.3s, transform 0.2s;
}

.toggle-password:hover {
  background: #777;
  transform: scale(1.05);
}




/* === Galeria do Cliente === */

.container-areacliente h2 {
  margin-top: 120px;
  text-align: center;
}

.container-areacliente p {
  
  text-align: center;
}
.container-areacliente{
  
  margin:0 auto;
}

#baixar-todas {
  
  background: #007bff;
}
#baixar-todas:hover {
  background: #0056b3;
}

/* =========================
   Galeria tipo "Masonry"
========================= */
.galeria-container {
  
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}
/* ============================================================
   GALERIA DO CLIENTE — Estilo Mosaico fluido (somente CSS)
============================================================ */
.galeria-container {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  margin-top:30px;

}

.galeria-grid {
  max-width: 1400px;
  margin: 0 auto;
  column-gap: 10px;
  column-fill: balance; /* ajuda a equilibrar as colunas */
}

.galeria-grid img {
  width: 100%;
  display: block;
  border-radius: 8px;
  margin-bottom: 10px;
  break-inside: avoid;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: scale(0.97);
}

.galeria-grid img.loaded {
  opacity: 1;
  transform: scale(1);
}

.galeria-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Colunas dinâmicas conforme a tela */
@media (min-width: 1400px) {
  .galeria-grid { column-count: 4; }
}
@media (min-width: 900px) and (max-width: 1399px) {
  .galeria-grid { column-count: 3; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .galeria-grid { column-count: 2; }
}
@media (max-width: 599px) {
  .galeria-grid { column-count: 1; }
}


/* =========================
   Efeito suave de aparição
========================= */
.galeria-grid img {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.galeria-grid img.loaded {
  opacity: 1;
  transform: scale(1);
}


/* =========================
   Modal (visualização ampliada)
========================= */
.modal {
  display: none; /* 🔹 Garantia de que inicia fechado */
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: hidden;
  box-sizing: border-box;
  opacity: 0;                 /* 🔹 invisível por padrão */
  pointer-events: none;       /* 🔹 não clicável enquanto oculto */
  transition: opacity 0.3s ease;
}

.modal.ativo {
  display: flex;              /* 🔹 aparece centralizado */
  opacity: 1;                 /* 🔹 suavemente visível */
  pointer-events: all;
}


.modal img {
  max-width: 95%;
  max-height: 85vh;
  object-fit: contain; /* garante proporção e centralização */
  border-radius: 10px;
  transition: transform 0.3s ease;
}

/* Botões de navegação */
.nav-btn {
  position: absolute;
  top: 50%;
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  font-size: 2em;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background 0.3s;
  z-index: 10000;
}
.nav-btn:hover {
  background: rgba(255,255,255,0.4);
}
.prev { left: 30px; }
.next { right: 30px; }

/* Botão de download */
.download-btn {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  z-index: 10000;
}

/* Botão de fechar */
.fechar {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

/* Responsivo — melhora alinhamento em telas pequenas */
@media (max-width: 768px) {
  .modal img {
    max-width: 100%;
    max-height: 80vh;
  }
  .prev { left: 10px; }
  .next { right: 10px; }
}


/* Marca d’água sobre as fotos */
.foto-item {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.foto-item img {
  width: 100%;
  display: block;
  opacity: 0.9;
}

/* Marca d’água (logo semi-transparente centralizada) */
.foto-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../imagens/logo-em-branco-png.png");
  background-size: 40%;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
}

/* Checkbox sobre a imagem */
.foto-checkbox {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  accent-color: #007bff;
  transform: scale(1.3);
  cursor: pointer;
}

/* Foto selecionada */
.foto-item.selecionada {
  outline: 4px solid #007bff;
  filter: brightness(1.1);
}

.selecionar-fotos {
  text-align: center;
  margin: 25px 0 50px;
}


/* ==============================
   PEÇA UM ORÇAMENTO — estilos
============================== */

/* Container do formulário (opcional: aplique .card no wrapper do form no HTML, se quiser) */
.quote-form {
  display: grid;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;             /* centraliza */
}

/* Inputs / textarea (herda o tema global, mas reforçamos para o bloco) */
.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 14px 12px;
  border-radius: 12px;
  background: #2e2e31;        /* combina com o tema */
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .06s ease;
}

.quote-form select {
  width: 100%;
  padding: 14px 12px;
  border-radius: 12px;
  background: #2e2e31;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  appearance: none; /* remove seta padrão (pode customizar depois) */
  cursor: pointer;
}

.quote-form select:focus {
  outline: none;
  box-shadow: var(--ring);
  border-color: var(--primary);
  background: #1e2033;
}


.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #8a92b1;             /* placeholder elegante */
  opacity: .9;
}

/* Foco acessível e chique */
.quote-form input:focus,
.quote-form textarea:focus {
  outline: none;
  box-shadow: var(--ring);
  border-color: var(--primary);
  background: #1e2033;
}

/* Hover sutil (desktop) */
@media (hover: hover) {
  .quote-form input:hover,
  .quote-form textarea:hover {
    border-color: #2d3158;
    transform: translateY(-1px);
  }
}

/* Tamanhos */
.quote-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Linha com dois campos lado a lado quando houver espaço (ex.: telefone + data) */
.quote-form .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .quote-form .row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Botão principal */
.quote-form .btn {
  justify-self: start; /* fica alinhado à esquerda; troque para center se preferir */
}

/* Realce do botão enviar */
.quote-form .btn.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--secondary), #ffc34d);
  --btn-fg: #1a140a;
  --btn-bd: #e2b75a;
}

/* Estados de validação (nativo) */
.quote-form input:invalid,
.quote-form textarea:invalid {
  border-color: rgba(26, 21, 68, 0.45);
}
.quote-form input:invalid:focus,
.quote-form textarea:invalid:focus {
  box-shadow: 0 0 0 3px rgba(24, 27, 78, 0.25);
}

/* Mensagens opcionais de feedback (se usar) */
.quote-feedback {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.quote-feedback.success {
  color: #9be49b;
}
.quote-feedback.error {
  color: #ff9e9e;
}

/* Cartão opcional para a seção toda (se envolver o form em uma div.card) */
.quote-card.card {
  padding: 18px;
  background: linear-gradient(180deg, var(--card), #0f1020);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}




.dash-header {
  position:sticky;
  top: 84px; /* compensa o header fixo do site */
  display: flex;
  justify-content: center;
  z-index: 2;
  margin-bottom: 12px;
  
}

.areacliente{
  text-align: center;
}
.auth-state {
  margin-bottom: 16px;
  color: #cfd3ea;
}







/* ==============================
   Esteira de Parceiros
============================== */
.partners {
  padding: 40px 0;
  text-align: center;
  overflow: hidden;
  background: var(--bg-light, #0b0b0d);
}

.partners h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--text);
}

/*.partners-track {
  display: flex;
  gap: 40px;
  animation: scroll-logos 20s linear infinite;
  width: max-content;
}
quando tiver mais parceiros - descomentar */ 

.partners-track {
  display: flex;
  justify-content: center; /* centraliza */
  gap: 40px;
}


.partners-track a {
  display: inline-block;
}

.partners-track img {
  height: 250px;
  object-fit: contain;
  transition: transform .2s ease;
}

.partners-track img:hover {
  transform: scale(1.1);
}
/*
@keyframes scroll-logos {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); } /* só metade, pois duplicamos */

.btn {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}
.btn-primary {
  background: #007bff;
  color: white;
}
.btn-primary:hover {
  background: #0056b3;
}
.btn-secondary {
  background: #444;
  color: #fff;
}
.btn-secondary:hover {
  background: #666;
}
/* =========================
   Estilos Adicionar Fotos
========================= */
#upload-form {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  background: #1b1b1b;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  margin:0 auto;
}

#upload-form h3{
  text-align: center;
}

#upload-form input{
  padding: 10px;
  margin: 8px 0;
  font-size: 1rem;
  border-radius: 6px;
}

.upload-progress {
  margin-top: 20px;
  text-align: left;
}

.progress-bar {
  margin-bottom: 10px;
  color: #ccc;
}

.upload-options {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
}

.upload-type {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #504f4f;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #504f4f;
  cursor: pointer;
  transition: 0.2s;
  
}

.upload-type:hover {
  background: #504f4f;
  border-color: #007bff;
}

.admin-section {
  margin-top: 40px;
  padding-top: 25px;
  max-width: 600px;
  margin:0 auto;
  border-radius: 10px;
  background-color: #1b1b1b;
}

#delete-form{
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
}

#delete-form input{
  padding: 10px;
  border-radius: 6px;
  font-size: 1rem;
}

#limpar-selecao h3 {
  text-align: center;
  margin-bottom: 15px;
}


.btn-danger {
  background-color: #c62828;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-danger:hover {
  background-color: #b71c1c;
}

/* SELEÇÕES */

.buscar-selecoes {
  
 margin: 40px auto 40px auto;
  background: #1b1b1b;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;

  
}
.buscar-selecoes h3{

  text-align: center;
  margin-bottom: 15px;
}
.buscar-selecoes h3 {
  margin-bottom: 15px;
}

.buscar-selecoes input{

  width: 90%;
  padding: 10px;
  border-radius: 6px;
  font-size: 1rem;
}
.buscar-selecoes form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.selecao-resultados {
  background: #1b1b1b;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.fotos-grid-admin {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.foto-item-admin {
  display: inline-block;
  margin: 10px;
  text-align: center;
}

.foto-item-admin img {
  width: 150px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.foto-item-admin .nome-arquivo {
  font-size: 0.85rem;
  color: #555;
  margin-top: 4px;
  word-break: break-all;
}

.foto-item-admin img:hover {
  transform: scale(1.05);
}

.foto-item-admin.erro {
  background: #ffeaea;
  color: #b30000;
  padding: 5px;
  border-radius: 4px;
}

.lista-nomes {
  margin-top: 30px;
  padding: 15px;
  background: #1b1b1b;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lista-nomes h4 {
  margin-bottom: 10px;
  color: #dddbdb;
}

.lista-nomes ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
  font-family: monospace;
  font-size: 0.9rem;
  max-height: 200px;
  overflow-y: auto;
}

.lista-nomes li {
  padding: 2px 0;
  border-bottom: 1px solid #eee;
}

#copiar-nomes {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

#copiar-nomes:hover {
  background: #0056b3;
}




/* =========================
   Overlay de carregamento
========================= */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 1.2rem;
  z-index: 9999;
}

#loading-overlay[hidden] {
  display: none !important;
}

.loader-content {
  text-align: center;
  width: 80%;
  max-width: 400px;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 15px;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: #0056b3;
  border-radius: 4px;
  animation: progressLoad 6s ease-in-out infinite;
}

@keyframes progressLoad {
  0% { width: 0%; }
  50% { width: 80%; }
  100% { width: 100%; }
}

/* =========================
   Estilos Adicionar Cliente
========================= */

.criar-cliente {
  margin-top: 40px;
  padding: 20px;
  background: #1b1b1b;
  border-radius: 10px;
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.criar-cliente h3 {
  margin-bottom: 15px;
}

.criar-cliente input {
  display: block;
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.criar-cliente button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.criar-cliente button:hover {
  background: #0056b3;
}

#msg-criar-cliente {
  margin-top: 10px;
  font-weight: bold;
}


/* ===============================
   Galeria Final — layout mosaico (corrigido)
=============================== */
#galeria {
  display: block;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  column-count: 4;
  column-gap: 12px;
  column-fill: balance;
}
@media (max-width: 1200px) { #galeria { column-count: 3; } }
@media (max-width: 768px) { #galeria { column-count: 2; } }
@media (max-width: 480px) { #galeria { column-count: 1; } }

#galeria img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
  display: block;
  break-inside: avoid;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}
#galeria img:hover {
  transform: scale(1.03);
}

/* Esconde o botão de seleção nas fotos finais */
.auth-state.azul + .dash-header + .galeria-container .selecionar-fotos {
  display: none !important;
}
.foto-item-final {
  background: #0b0b0d; /* em vez de #fafafa */
}

/* === MODAL GALERIA === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal img {
  max-width: 95%;
  max-height: 85vh;
  border-radius: 10px;
  object-fit: contain;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  font-size: 2em;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: background 0.3s;
}
.nav-btn:hover { background: rgba(255,255,255,0.4); }
.prev { left: 30px; }
.next { right: 30px; }

.download-btn {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
}

.fechar {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
}


.progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  background: #2b2b2b;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.progress-bar progress {
  flex: 1;
  height: 6px;
  margin: 0 8px;
}
.progress-bar.done {
  color: #7bff7b;
}

/* ========= Correção: Campo de senha visível ========= */
.password-line input[type="password"],
.password-line input[type="text"] {
  color: #fff !important;                /* texto sempre visível */
  background-color: #2e2e31 !important;  /* fundo escuro */
  border: 1px solid #555;
  caret-color: #fff;                     /* cursor branco */
}

.password-line input::placeholder {
  color: #aaa !important;                /* placeholder visível */
}

.password-line input:focus {
  outline: none;
  border-color: #007bff;
  background-color: #1e1e1e;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.toggle-password {
  background: #555;
  border: none;
  color: #fff;
  font-size: 1.1em;
  padding: 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.toggle-password:hover {
  background: #777;
}

/* Efeito suave no arraste das fotos no modal */
#modal img {
  cursor: grab;
  user-select: none;
  transition: transform 0.3s ease;
}
#modal img:active {
  cursor: grabbing;
}


/* 🔹 Barra fixa de seleção (logo abaixo do header principal) */
#barra-fixa-selecao {
  position: sticky;
  top: 110px; /* ajusta conforme a altura real do header */
  z-index: 100;
  background: #111;
  color: #f2f2f2;
  text-align: center;
  padding: 10px 15px;
  border-bottom: 1px solid #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#barra-fixa-selecao p {
  margin: 5px 0;
  font-size: 1rem;
}

#contador-fixo span {
  font-weight: bold;
  color: #ffd166;
}




