/* =========================
   VARIÁVEIS (DESIGN SYSTEM)
========================= */
:root {
    /* Identidade */
    --cor-primaria: #115E59;      /* Verde petróleo */
    --cor-secundaria: #5EEAD4;    /* Verde água */
    --cor-fundo: #F8FAFC;         /* Branco suave */

    /* Texto */
    --cor-texto: #1F2937;         /* Cinza escuro */
    --cor-texto-sec: #4B5563;

    /* Ações */
    --cor-cta: #10B981;           /* Verde vivo */

    /* Estados */
    --cor-disponivel: #22C55E;
    --cor-cheio: #EF4444;
    --cor-parcial: #FACC15;
    --cor-bloqueado: #E5E7EB;
    --cor-hoje: #115E59;

    /* Layout */
    --radius: 12px;
    --shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* =========================
   RESET BÁSICO
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--cor-fundo);
    color: var(--cor-texto);
}

/* =========================
   HEADER FLUTUANTE PREMIUM
========================= */
.app-header {
    background: var(--cor-primaria);
    height: 64px; /* header fino */
    position: relative;
    display: flex;
    justify-content: center;
}



/* Centraliza tudo */
.header-content {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Logo flutuante */
.logo-wrapper {
    width: 96px;
    height: 96px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    bottom: -48px;

    box-shadow: var(--shadow);
    z-index: 50;
    overflow: hidden; /* 🔥 importante */
}

/* Logo imagem */
.logo-empresa {
    width: 120%;
    height: 120%;
    object-fit: cover;
    padding: 10px; /* controla o “respiro” */
    z-index: -1;
}

/* Placeholder */
.logo-placeholder {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--cor-primaria);
}

/* Logo clicável */
.logo-link {
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover / toque */
.logo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.15);
}

/* Acessibilidade: foco teclado */
.logo-link:focus-visible {
  outline: 3px solid var(--cor-cta);
  outline-offset: 4px;
}


.plano-badge {
  position: absolute;
  bottom: -6px;
  right: 30px;
  height: 70px;
}

/* =========================
   BANNER AVISO PLANO (ATENÇÃO)
========================= */
.plan-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  background: #FFFBEB;
  border: 1px solid #FACC15;
  border-radius: 12px;

  padding: 12px 14px;
  margin-bottom: 16px;
}

.plan-banner-text {
  font-size: 13px;
  color: #92400E;
}

.plan-banner-text span {
  display: block;
  font-size: 12px;
  color: #A16207;
  margin-top: 2px;
}

.btn-plan-banner {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;

  background: #FACC15;
  color: #78350F;
  border: none;
}

/* Mobile */
@media (max-width: 600px) {
  .plan-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =========================
   AÇÕES DE AGENDAMENTO
========================= */

.acoes-agenda {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 🔥 sempre 3 colunas */
  gap: 8px;
  margin-top: 12px;
}

/* Botão base */
.btn-agendar-cliente,
.btn-compartilhar,
.btn-copiar-link {
  display: flex;
  flex-direction: column; /* 🔥 ícone em cima, texto embaixo */
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;

  padding: 10px 4px;
  border-radius: 10px;

  font-size: 12px;
  font-weight: 600;
  text-align: center;

  width: 100%;
  min-width: 0; /* 🔒 ESSENCIAL para grid */
}


/* Ícone menor no mobile */
.btn-icone {
  font-size: 14px;
}

/* Hover */
.btn-agendar-cliente:hover,
.btn-compartilhar:hover,
.btn-copiar-link:hover {
  transform: translateY(-1px);
}


/* Botão principal */
.btn-agendar-cliente {
  background: #10B981; /* verde sucesso */
  color: #fff;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* Botão secundário */
.btn-compartilhar {
  background: #EEF2FF; /* azul claro */
  color: #1E3A8A;
}

/* Ícones */
.btn-icone {
  font-size: 16px;
}

/* Efeito toque */
.btn-agendar-cliente:active,
.btn-compartilhar:active {
  transform: scale(0.97);
}

/* Texto de ajuda */
.hint-agendar {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #6B7280;
}

/* =========================
   DESKTOP (opcional ajuste)
========================= */
@media (min-width: 768px) {
  .acoes-agenda {
    max-width: 420px;
  }
}

/* =========================
   HEADER — INFORMAÇÕES
========================= */
.header-info {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #fff;
    opacity: 0.9;
}

.header-info-left {
    left: 16px;
}

.header-info-right {
    right: 16px;
}

/* Data */
.header-data {
    font-weight: 500;
}

/* Notificação */
.notificacao {
    position: relative;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Badge */
.notificacao-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #EF4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
    line-height: 1;
}

/* =========================
   NOTIFICAÇÕES
========================= */
.notificacao-wrapper {
    position: relative;
}

.notificacao-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.notificacao-dropdown {
    display: none;
    position: fixed;
    right: 0;
    top: 36px;
    width: 280px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 9999;
    overflow: hidden;
}

.notificacao-dropdown.ativo {
    display: block;
}

.dropdown-header {
    padding: 12px 14px;
    font-weight: 600;
    border-bottom: 1px solid #E5E7EB;
}

.dropdown-lista {
    list-style: none;
}

.dropdown-item {
    padding: 10px 14px;
    border-bottom: 1px solid #F1F5F9;
}

.dropdown-item.nao-vista {
    background: #ECFEFF;
}

.dropdown-msg {
    display: block;
    font-size: 0.85rem;
}

.dropdown-data {
    font-size: 0.7rem;
    color: var(--cor-texto-sec);
}

.dropdown-vazio {
    padding: 14px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--cor-texto-sec);
}

.notificacao-cliente {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: #000;
}

.notificacao-detalhes {
    display: block;
    font-size: 0.8rem;
    color: var(--cor-texto-sec);
    margin-bottom: 4px;
}

.btn-instalar-app {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  background: #10B981;
  color: #fff;
  cursor: pointer;
}
/* =========================
   IDENTIDADE DA EMPRESA
========================= */
.empresa-identidade {
    text-align: center;
    margin-top: 56px; /* espaço da logo flutuante */
    margin-bottom: 12px;
}

.empresa-nome {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--cor-primaria);
    margin-bottom: 4px;
}


.agenda-subtitulo {
    font-size: 0.85rem;
    color: var(--cor-texto-sec);
    margin-bottom: 1rem;
}
/* =========================
   CONTAINER PRINCIPAL
========================= */
.app-main {
    padding: 16px;
    padding-top: 64px; /* espaço pra logo flutuante */
}

.agenda-container {
    max-width: 720px;
    margin: 0 auto;
}

/* =========================
   CABEÇALHO DA AGENDA
========================= */
.agenda-header {
    margin-bottom: 16px;
}

.agenda-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.agenda-nav {
    display: flex;
    justify-content: space-between;
}

.nav-link {
    color: var(--cor-primaria);
    font-weight: 500;
    text-decoration: none;
}

/* =========================
   ESTADO VAZIO — AGENDAMENTOS
========================= */
.agenda-vazia {
    background: #fff;
    padding: 20px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    margin: 24px 0;
}

.agenda-vazia-icone {
    font-size: 2rem;
    margin-bottom: 8px;
}

.agenda-vazia-titulo {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--cor-texto);
}

.agenda-vazia-descricao {
    font-size: 0.85rem;
    color: var(--cor-texto-sec);
}
/* =========================
   AGENDAMENTO — CLIENTE
========================= */

.agendamento-item {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* Cor alternada nos agendamentos */
.agendamentos li:nth-child(even) .agendamento-item,
.agendamento-item:nth-child(even) {
  background: #d3dae1; /* cinza bem leve */
}

.whatsapp-link {
  color: #16a34a;          /* verde WhatsApp */
  text-decoration: none;
  font-weight: 500;
}

.whatsapp-link:hover {
  text-decoration: underline;
}

.whatsapp-link::after {
  content: " ↗";
  font-size: 0.85em;
}

/* Bloco principal */
.agendamento-principal {
    display: flex;
    gap: 14px;
}

/* Hora */
.agendamento-hora {
    font-weight: 700;
    color: var(--cor-primaria);
    min-width: 48px;
}

/* Dados */
.agendamento-dados {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cliente-nome {
    font-size: 0.95rem;
}

.cliente-contato {
    font-size: 0.85rem;
    color: var(--cor-texto-sec);
}

.servico-nome {
    font-size: 0.85rem;
    color: var(--cor-texto-sec);
}

/* Ações */
.agendamento-acoes {
    display: flex;
    align-items: center;
}

/* Cancelar */
.btn-cancelar {
    color: #EF4444;
    font-weight: 600;
    text-decoration: none;
}

/* Finalizado */
.agendamento-finalizado {
    font-size: 0.8rem;
    color: #9CA3AF;
}


.dia-inativo {
  background: #F1F5F9;
  color: #9CA3AF;
  cursor: not-allowed;
  opacity: 0.7;
}

.calendario-semana {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
  text-align: center;
}

.calendario-semana span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cor-texto-sec);
}

.dia-vazio {
  background: transparent;
  pointer-events: none;
}
/* =========================
   ALERTA
========================= */
.alerta-configuracao {
    background: #fff;
    padding: 14px;
    border-left: 4px solid var(--cor-cta);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.alerta-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--cor-primaria);
    font-weight: 600;
    text-decoration: none;
}

/* =========================
   CALENDÁRIO
========================= */
.calendario-titulo {
    text-align: center;
    margin-bottom: 10px;
}

.calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.dia {
    padding: 10px 0;
    text-align: center;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.dia-disponivel {
    background: var(--cor-disponivel);
    color: #fff;
}

.dia-cheio {
    background: var(--cor-cheio);
    color: #fff;
}

.dia-parcial {
    background: var(--cor-parcial);
    color: #000;
}

.dia-hoje {
    background: var(--cor-hoje);
    color: #fff;
}

.dia-passado {
    opacity: 0.4;
}

.dia-bloqueado {
    background: var(--cor-bloqueado);
    color: #666;
}

/* =========================
   AÇÕES (FOOTER PREMIUM)
========================= */
.acoes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.acao-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--cor-texto);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.acao-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

.acao-icone {
    font-size: 1.4rem;
}

.acao-texto strong {
    display: block;
    font-size: 0.95rem;
}

.acao-texto small {
    font-size: 0.8rem;
    color: var(--cor-texto-sec);
}

/* Ação de sair */
.acao-sair {
    border-left: 4px solid #EF4444;
}

.acao-sair strong {
    color: #EF4444;
}


/* Espaçamento geral entre seções */
.agenda-header,
.agenda-filter,
.agenda-list,
.agenda-calendario,
.agenda-footer {
    margin-bottom: 28px;
}

/* Cards mais “soltos” */
.agendamento-item {
    margin-bottom: 8px;
}

/* Calendário mais confortável */
.calendario-grid {
    margin-top: 12px;
}

/* Footer não colado */
.agenda-footer {
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
}

/* Links mais elegantes */
.nav-link,
.footer-link {
    transition: color 0.2s ease;
}

.nav-link:hover,
.footer-link:hover {
    color: var(--cor-cta);
}

/* Botão mais “clicável” */
.btn-primary {
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background: #059669;
}

.btn-primary:active {
    transform: scale(0.97);
}

.acao-card.bloqueado {
  opacity: 0.5;
  filter: grayscale(1);
  cursor: not-allowed;
  position: relative;
  z-index: 1;
}

.acao-card.bloqueado::after {
  content: "🔒";
  position: fixed;
  top: 8px;
  right: 10px;
  font-size: 16px;
}

.bloqueado {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: auto;
  z-index: 1;
}

/* =========================
   BOTÃO ASSINAR PLANO PRO
========================= */
.btn-assinar-pro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  width: 100%;
  padding: 14px;
  border-radius: 12px;

  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;

  color: #fff;
  background: linear-gradient(
    135deg,
    #6D28D9, /* roxo */
    #7C3AED
  );

  position: relative;
  z-index: 1;

  box-shadow:
    0 0 0 0 rgba(250, 204, 21, 0.0),
    0 6px 18px rgba(124, 58, 237, 0.45);

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* NEON DOURADO ATRÁS */
.btn-assinar-pro::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;

  background: linear-gradient(
    135deg,
    #FACC15, /* dourado */
    #F59E0B
  );

  filter: blur(10px);
  opacity: 0.7;
  z-index: -1;
}

/* Interação */
.btn-assinar-pro:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .btn-assinar-pro:hover {
    box-shadow:
      0 0 20px rgba(250, 204, 21, 0.75),
      0 8px 22px rgba(124, 58, 237, 0.6);
  }
}
/* =========================
   DESKTOP (UPGRADE)
========================= */
@media (min-width: 768px) {

    .agenda-nav {
        justify-content: flex-start;
        gap: 16px;
    }

    .agenda-filter {
        max-width: 420px;
    }

    .agendamento-item {
        align-items: center;
    }
    
    .acoes-grid {
        grid-template-columns: repeat(2, 1fr);
    }


}
