/* =============================================================================
   AI Beauty Barber — identidade própria: VERMELHO + AZUL (navy), combinando com
   o barber pole. Carrega depois do style.css e sobrescreve a paleta roxa só nas
   páginas da barbearia (o salão continua roxo).
   ========================================================================== */
:root {
    --pink:       #1e3a8a;   /* primária = navy (botões, links, nav) */
    --pink-deep:  #16295f;
    --purple:     #2a4bd0;   /* azul secundário */
    --lilac:      #3b82f6;
    --red:        #e23b3b;   /* vermelho de destaque (ícones/detalhes) */
    --grad:       linear-gradient(135deg, #2a4bd0 0%, #1e3a8a 100%);
    --grad-hover: linear-gradient(135deg, #2340b8 0%, #16295f 100%);
    --bg-grad:    linear-gradient(165deg, #f5f7fb 0%, #eef2f9 55%, #f5f7fb 100%);
    --ink:        #111827;
    --muted:      #5a6577;
    --line:       #e3e7f0;
    --shadow:       0 8px 30px rgba(30, 58, 138, .10);
    --shadow-hover: 0 16px 40px rgba(30, 58, 138, .18);
}

/* Badges de status do agendamento */
.badge.s-CONFIRMED { background: #e7edfb; color: #1e3a8a; }
.badge.s-COMPLETED { background: #e8f7ef; color: #1f8f56; }
.badge.s-CANCELLED { background: #fdecec; color: #d23b3b; }
.badge.s-NO_SHOW   { background: #f3eee0; color: #9a7b3b; }

/* Hero — barber pole clássico (vermelho/branco/azul), infinito e SEM emenda.
   Truque: um ::before gigante com as listras deslizando via transform (GPU);
   como ele extrapola o hero em todos os lados, a borda nunca aparece → parece
   infinito. translateX = 1 período do padrão (96px * √2 = 135.76px) → loop perfeito. */
.barber-hero {
    position: relative; overflow: hidden;
    text-align: center; padding: 3.2rem 1.25rem 2.4rem;
    color: #fff; border-radius: 0 0 28px 28px;
    background: #1e3a8a;   /* fallback */
}
.barber-hero::before {
    content: ""; position: absolute; inset: -60% -60%; z-index: 0;
    background: repeating-linear-gradient(45deg,
        #e23b3b 0, #e23b3b 24px,      /* vermelho */
        #ffffff 24px, #ffffff 48px,   /* branco   */
        #2a4bd0 48px, #2a4bd0 72px,   /* azul     */
        #ffffff 72px, #ffffff 96px);  /* branco   */
    animation: barberpole 5s linear infinite;
    will-change: transform;
}
.barber-hero::after {   /* escurece o centro p/ o texto ficar legível sobre o branco */
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(120% 120% at 50% 45%, rgba(17,24,39,.55), rgba(17,24,39,.18) 55%, rgba(17,24,39,0) 82%);
}
.barber-hero > * { position: relative; z-index: 2; }
@keyframes barberpole { to { transform: translateX(135.76px); } }
@media (prefers-reduced-motion: reduce) { .barber-hero::before { animation: none; } }
.barber-hero h1 { font-size: 2.1rem; color: #fff; display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; text-shadow: 0 2px 10px rgba(17,24,39,.6); }
.barber-hero p { color: #fff; max-width: 560px; margin: .6rem auto 1.4rem; text-shadow: 0 1px 8px rgba(17,24,39,.75); }
/* Logo fica BRANCO sobre o hero colorido (senão o AB some no fundo roxo) */
.barber-hero .brand-mark { height: 58px; width: auto; filter: brightness(0) invert(1) drop-shadow(0 2px 3px rgba(17,24,39,.55)) drop-shadow(0 4px 12px rgba(17,24,39,.4)); }
.barber-hero .btn-ghost { text-shadow: 0 1px 4px rgba(17,24,39,.4); }
.barber-hero .hero-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
/* Botões do hero: largura automática (o .btn base é width:100%) + contraste correto */
.barber-hero .btn, .barber-hero .btn-ghost {
    width: auto; display: inline-flex; align-items: center; justify-content: center;
}
.barber-hero .btn { background: #fff; color: var(--pink-deep); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.barber-hero .btn:hover { filter: brightness(1); background: #eef2fb; }
.barber-hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.barber-hero .btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; border-color: #fff; }

/* Ícones dos cards da landing — vermelho de barbearia, num "chip" claro */
.feature-ico {
    width: 22px; height: 22px; color: var(--red); vertical-align: -8px;
    margin-right: .55rem; padding: 7px; box-sizing: content-box;
    background: rgba(226, 59, 59, .10); border-radius: 10px;
}

/* Cards mais modernos (landing + painéis): borda-topo em degradê e hover */
.card { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.container .cards .card { position: relative; overflow: hidden; }
.container .cards .card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--red), var(--pink));
    opacity: 0; transition: opacity .16s ease;
}
.container .cards .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(30, 58, 138, .28); }
.container .cards .card:hover::before { opacity: 1; }

/* Botões um tom mais “sólido” e moderno */
.btn { letter-spacing: .01em; }

/* PDV / financeiro */
.fin-row td { font-variant-numeric: tabular-nums; }
.pos-line { display: grid; grid-template-columns: 1fr 90px; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.kpi .num { color: var(--pink-deep); }
.kpi.green .num { color: var(--ok-ink); }
.kpi.gray  .num { color: var(--muted); }
/* KPIs com um leve destaque de topo alternado (vermelho/azul) */
.cards.stats .stat { border-top: 3px solid var(--pink); }
.cards.stats .stat.kpi.green { border-top-color: #1f8f56; }
.cards.stats .stat.kpi:nth-child(2) { border-top-color: var(--red); }
