/*==============================================================================
  AgendaZ — Tour guiado

  Tema proprio para o Shepherd. O visual padrao da biblioteca e um balao branco
  generico, com botoes que nao pertencem a este produto; aqui ele passa a ser o
  mesmo cartao do sistema — mesma borda, mesmo raio, mesma sombra, mesma
  tipografia.

  As duas adicoes que fazem o tour parecer curto sao o contador ("2 de 8") e a
  barra de progresso: quem sabe quanto falta nao abandona no meio.
==============================================================================*/

:root {
    --az-tour-bg: #ffffff;
    --az-tour-border: rgba(15, 23, 42, 0.09);
    --az-tour-title: #101828;
    --az-tour-text: #4b5568;
    --az-tour-muted: #7c879e;
    --az-tour-primary: #4a6cf7;
    --az-tour-primary-hover: #3a5ae0;
    --az-tour-shadow: 0 24px 60px -18px rgba(15, 23, 42, 0.28), 0 4px 14px rgba(15, 23, 42, 0.08);
    --az-tour-track: rgba(74, 108, 247, 0.14);
}

:root[data-theme='dark'],
html.dark-style {
    --az-tour-bg: #161d2b;
    --az-tour-border: rgba(255, 255, 255, 0.1);
    --az-tour-title: #f1f4fb;
    --az-tour-text: #c2cbdd;
    --az-tour-muted: #8794ad;
    --az-tour-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.7), 0 4px 14px rgba(0, 0, 0, 0.4);
}

/*------------------------------------------------------------------------------
  Balao
------------------------------------------------------------------------------*/

.shepherd-element {
    max-width: 380px;
    border-radius: 16px;
    background: var(--az-tour-bg);
    border: 1px solid var(--az-tour-border);
    box-shadow: var(--az-tour-shadow);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    filter: none;
}

.shepherd-element .shepherd-content {
    border-radius: 16px;
    background: transparent;
}

.shepherd-arrow::before {
    background: var(--az-tour-bg);
    border: 1px solid var(--az-tour-border);
    border-width: 0;
}

.shepherd-element[data-popper-placement^='bottom'] .shepherd-arrow::before { border-top-width: 1px; border-left-width: 1px; }
.shepherd-element[data-popper-placement^='top'] .shepherd-arrow::before { border-bottom-width: 1px; border-right-width: 1px; }
.shepherd-element[data-popper-placement^='right'] .shepherd-arrow::before { border-bottom-width: 1px; border-left-width: 1px; }
.shepherd-element[data-popper-placement^='left'] .shepherd-arrow::before { border-top-width: 1px; border-right-width: 1px; }

/*------------------------------------------------------------------------------
  Conteudo
------------------------------------------------------------------------------*/

.shepherd-text {
    padding: 22px 22px 6px;
    color: var(--az-tour-text);
    font-size: 0.875rem;
    line-height: 1.6;
}

.shepherd-text p {
    margin: 0;
}

/* Cabecalho do passo: selo de posicao + titulo. */
.az-tour__step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--az-tour-track);
    color: var(--az-tour-primary);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.az-tour__title {
    margin: 0 0 8px;
    color: var(--az-tour-title);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.az-tour__hint {
    display: block;
    margin-top: 10px;
    color: var(--az-tour-muted);
    font-size: 0.75rem;
}

/*------------------------------------------------------------------------------
  Progresso e botoes
------------------------------------------------------------------------------*/

.az-tour__track {
    /* E um <span> dentro do texto do passo: sem `block` ele fica inline e a
       altura de 3px colapsa. */
    display: block;
    height: 3px;
    margin: 16px 22px 0;
    border-radius: 999px;
    background: var(--az-tour-track);
    overflow: hidden;
}

.az-tour__bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--az-tour-primary);
    transition: width 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.shepherd-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px 18px;
}

.shepherd-button {
    margin: 0;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.shepherd-button.az-tour__next {
    margin-left: auto;
    background: var(--az-tour-primary);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(74, 108, 247, 0.7);
}

.shepherd-button.az-tour__next:not(:disabled):hover {
    background: var(--az-tour-primary-hover);
    color: #fff;
}

.shepherd-button.az-tour__back {
    background: transparent;
    border-color: var(--az-tour-border);
    color: var(--az-tour-text);
}

.shepherd-button.az-tour__back:not(:disabled):hover {
    background: var(--az-tour-track);
    color: var(--az-tour-title);
}

/* "Pular" e uma saida, nao uma acao: fica discreto e a esquerda. */
.shepherd-button.az-tour__skip {
    padding-left: 0;
    padding-right: 6px;
    background: transparent;
    color: var(--az-tour-muted);
    font-weight: 500;
}

.shepherd-button.az-tour__skip:not(:disabled):hover {
    background: transparent;
    color: var(--az-tour-title);
    text-decoration: underline;
}

.shepherd-button:focus-visible {
    outline: 2px solid var(--az-tour-primary);
    outline-offset: 2px;
}

.shepherd-cancel-icon {
    color: var(--az-tour-muted);
    font-size: 1.5rem;
    transition: color 160ms ease;
}

.shepherd-cancel-icon:hover {
    color: var(--az-tour-title);
}

.shepherd-has-title .shepherd-content .shepherd-header {
    padding: 14px 14px 0;
    background: transparent;
}

/*------------------------------------------------------------------------------
  Realce do alvo

  O overlay do Shepherd ja recorta o elemento; o anel abaixo diz qual e a peca
  sem escurecer o proprio conteudo que se quer mostrar.
------------------------------------------------------------------------------*/

.shepherd-modal-overlay-container {
    opacity: 0.62;
}

.shepherd-enabled.shepherd-target {
    border-radius: 12px;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.55), 0 0 0 9px rgba(74, 108, 247, 0.16);
    transition: box-shadow 240ms ease;
}

/*------------------------------------------------------------------------------
  Celular: o balao encosta nas bordas e os botoes ganham area de toque.
------------------------------------------------------------------------------*/

@media (max-width: 575.98px) {
    .shepherd-element {
        max-width: calc(100vw - 24px);
    }

    .shepherd-text {
        padding: 18px 18px 4px;
    }

    .az-tour__track {
        margin: 14px 18px 0;
    }

    .shepherd-footer {
        padding: 12px 18px 16px;
    }

    .shepherd-button {
        padding: 11px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .az-tour__bar,
    .shepherd-enabled.shepherd-target {
        transition: none;
    }
}
