/* Painel administrativo — Lojas Duque */
:root { --vermelho: #c4161c; --vermelho-escuro: #9e1116; --amarelo: #f9bf29; --fundo: #f5f2ed; --texto: #23201e; }
body { font-family: "Inter", system-ui, Arial, sans-serif; background: var(--fundo); color: #4a4541; }
h1, h2, h3, h4 { font-family: "Poppins", "Inter", sans-serif; color: var(--texto); font-weight: 700; }
a { color: var(--vermelho); }

.admin-wrap { display: flex; min-height: 100vh; }
.lateral { width: 250px; flex: 0 0 250px; background: #1d1a18; color: rgba(255,255,255,.75); padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.lateral .marca { font-family: "Poppins"; font-weight: 800; font-size: 1.3rem; color: #fff; display: block; margin: 0 8px 28px; text-decoration: none; }
.lateral .marca span { color: var(--amarelo); }
.lateral .marca small { display: block; font-size: .7rem; letter-spacing: 2px; color: rgba(255,255,255,.5); text-transform: uppercase; font-weight: 600; }
.lateral a.item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: rgba(255,255,255,.78); text-decoration: none; font-weight: 500; margin-bottom: 4px; }
.lateral a.item:hover { background: rgba(255,255,255,.06); color: #fff; }
.lateral a.item.ativo { background: var(--vermelho); color: #fff; }
.lateral a.item i { width: 20px; text-align: center; }
.lateral .badge { margin-left: auto; background: var(--amarelo); color: var(--texto); }
.lateral .divisor { height: 1px; background: rgba(255,255,255,.1); margin: 18px 8px; }

.conteudo { flex: 1; min-width: 0; padding: 30px 34px; }
.topo-admin { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.topo-admin h1 { font-size: 1.6rem; margin: 0; }

.cartao { background: #fff; border-radius: 16px; box-shadow: 0 4px 18px rgba(0,0,0,.05); padding: 22px; }
.numero { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 4px 18px rgba(0,0,0,.05); display: flex; gap: 16px; align-items: center; height: 100%; text-decoration: none; color: inherit; }
.numero .icone { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: #fdecec; color: var(--vermelho); }
.numero b { font-family: "Poppins"; font-size: 1.7rem; color: var(--texto); display: block; line-height: 1.1; }

.btn { border-radius: 30px; font-weight: 600; }
.btn-duque { background: var(--vermelho); color: #fff; border: 0; }
.btn-duque:hover { background: var(--vermelho-escuro); color: #fff; }

.table { vertical-align: middle; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: #8a827a; font-weight: 700; border-bottom-width: 1px; }
.miniatura { width: 56px; height: 56px; object-fit: contain; background: var(--fundo); border-radius: 10px; padding: 3px; }
.nao-lida td { font-weight: 600; background: #fffaf0; }

.form-label { font-weight: 600; color: var(--texto); }
.form-control, .form-select { border-radius: 10px; }
.foto-atual { max-width: 220px; max-height: 220px; object-fit: contain; border-radius: 12px; background: var(--fundo); padding: 6px; }
/* Caixa de erros só aparece quando há erro */
.validation-summary-valid { display: none !important; }
.botao-padrao-oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fotos-extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.foto-extra { border: 1px solid #eee4d6; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.foto-extra img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--fundo); border-radius: 10px; }
.foto-extra .ordem { width: 70px; }
.foto-extra:has(.form-check-input:checked) { opacity: .45; }
.fotos-previa { display: flex; flex-wrap: wrap; gap: 8px; }
.fotos-previa img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid #eee4d6; }
.texto-depoimento-admin { min-width: 260px; font-size: .9rem; }
/* Escolha de estrelas: da direita para a esquerda para o "hover" acender as anteriores */
.escolha-estrelas { display: inline-flex; flex-direction: row-reverse; gap: 4px; font-size: 1.6rem; }
.escolha-estrelas input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.escolha-estrelas label { color: #ddd3c4; cursor: pointer; }
.escolha-estrelas input:checked ~ label, .escolha-estrelas label:hover, .escolha-estrelas label:hover ~ label { color: #f9bf29; }
.escolha-estrelas input:focus-visible + label { outline: 2px solid #f9bf29; border-radius: 4px; }
.logo-mini { width: 90px; height: 50px; object-fit: contain; background: #fff; border: 1px solid #eee4d6; border-radius: 8px; padding: 4px; }
.logo-previa { max-width: 240px; max-height: 140px; object-fit: contain; background: #fff; border: 1px solid #eee4d6; border-radius: 12px; padding: 10px; }
.promo-previa { width: 100%; max-width: 360px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; background: var(--fundo); display: block; }
/* Cores do mês */
.usar-agora { border-left: 5px solid #f9bf29; }
.grade-meses { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.mes-cores { padding: 16px; border: 2px solid transparent; }
.mes-cores.mes-atual { border-color: #23201e; }
.mes-cores.mes-ligado { background: #f6fbf7; }
.opcao-campanha { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
.opcao-campanha:hover { background: #f5f1ea; }
.opcao-campanha input { flex: 0 0 auto; }
.opcao-campanha .amostras { display: flex; flex: 0 0 auto; }
.opcao-campanha .amostras span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #ddd3c4; margin-left: -5px; }
.opcao-campanha .amostras span:first-child { margin-left: 0; }
.opcao-campanha .texto-campanha { flex: 1; line-height: 1.2; }
.opcao-campanha .texto-campanha b { display: block; font-size: .92rem; }
.opcao-campanha .texto-campanha small { color: #6b6560; font-size: .78rem; }
.opcao-campanha .previa { color: #6b6560; padding: 4px; }
.opcao-campanha .previa:hover { color: #23201e; }
.status-promo { background: #f3f0eb; border-radius: 14px; padding: 14px 18px; }
.status-promo.no-ar { background: #e7f6ec; color: #146c2e; }
.logo-topo-previa { display: block; max-width: 100%; max-height: 90px; object-fit: contain; background: #fff; border: 1px dashed #ddd3c4; border-radius: 10px; padding: 8px; }
.banner-previa { width: 100%; max-height: 260px; object-fit: cover; border-radius: 14px; background: var(--fundo); }
@media (min-width: 992px) { .salvar-fixo { position: sticky; bottom: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.12); } }
.ajuda-texto { background: #fff8e1; border-radius: 12px; padding: 14px 16px; font-size: .88rem; }
.ajuda-texto code { background: #fff; padding: 1px 6px; border-radius: 6px; color: var(--vermelho-escuro); }

.login-pagina { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(120deg, var(--vermelho), var(--vermelho-escuro)); padding: 20px; }
.login-caixa { background: #fff; border-radius: 24px; padding: 38px; width: 100%; max-width: 440px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.login-caixa .marca { font-family: "Poppins"; font-weight: 800; font-size: 1.5rem; color: var(--vermelho); }

@media (max-width: 991.98px) {
    .admin-wrap { flex-direction: column; }
    .lateral { width: 100%; height: auto; position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 14px; }
    .lateral .marca { width: 100%; margin-bottom: 10px; }
    .lateral a.item { margin: 0; padding: 8px 12px; font-size: .9rem; }
    .lateral .divisor { display: none; }
    .conteudo { padding: 20px 16px; }
}
