/* AgendaPro - estilos auxiliares. MudBlazor cuida do resto. */
html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Logo ───────────────────────────────────────────────── */
.ap-logo {
    display: block;
    height: 48px;
    width: 200px;
    object-fit: contain;
}
.ap-logo-lg {
    display: block;
    height: 48px;
    width: 200px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
}
.ap-logo-nav {
    display: block;
    height: 40px;
    width: auto;
    object-fit: contain;
    margin: 1rem auto 0.5rem;
}

/* ── Login ─────────────────────────────────────────────── */
.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1B1340 0%, #6D4AFF 100%);
    padding: 1rem;
}
.login-card {
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
}

/* ── Registro ───────────────────────────────────────────── */
.registro-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1B1340 0%, #6D4AFF 100%);
    padding: 2rem 1rem;
}
.registro-card {
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
}

/* ── Agenda Pública ─────────────────────────────────────── */
.ap-shell {
    min-height: 100vh;
    display: flex;
    background: #F6F6FA;
}

/* Painel esquerdo — branding (oculto em mobile) */
.ap-branding {
    display: none;
    flex: 0 0 400px;
    background: linear-gradient(160deg, #1B1340 0%, #6D4AFF 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    text-align: center;
}

.ap-branding-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(8px);
}

.ap-branding-feature {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: rgba(255,255,255,.1);
    border-radius: 12px;
    padding: .75rem 1rem;
    margin-bottom: .75rem;
    text-align: left;
    backdrop-filter: blur(4px);
}

.ap-branding-feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Painel direito — formulário */
.ap-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem 4rem;
    overflow-y: auto;
    min-height: 100vh;
}

.ap-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
    overflow: hidden;
}

/* Header do card */
.ap-card-header {
    background: linear-gradient(135deg, #1B1340, #6D4AFF 60%, #6D4AFF);
    padding: 2rem 2rem 1.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ap-card-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Steps */
.ap-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
    padding: 0 .5rem;
}

.ap-step-bubble {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
    transition: all .3s ease;
    position: relative;
    z-index: 1;
}

.ap-step-bubble.done   { background: #10b981; color: #fff; box-shadow: 0 0 0 4px rgba(16,185,129,.2); }
.ap-step-bubble.active { background: #6D4AFF; color: #fff; box-shadow: 0 0 0 4px rgba(109,74,255,.2); }
.ap-step-bubble.idle   { background: #e2e8f0; color: #94a3b8; }

.ap-step-line {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    transition: background .4s ease;
    margin: 0 -2px;
    position: relative;
    z-index: 0;
}

/* Cards de serviço */
.ap-servico-card {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: .6rem;
    cursor: pointer;
    transition: all .2s ease;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ap-servico-card:hover {
    border-color: #b39dff;
    background: #f8f6ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(109,74,255,.12);
}

.ap-servico-card.selecionado {
    border-color: #6D4AFF;
    background: #ede8ff;
    box-shadow: 0 4px 16px rgba(109,74,255,.2);
}

.ap-servico-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ede8ff, #d9d0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ap-servico-card.selecionado .ap-servico-icon {
    background: linear-gradient(135deg, #1B1340, #6D4AFF);
}

/* Chips de data */
.ap-data-chip {
    cursor: pointer;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    padding: .6rem .9rem;
    text-align: center;
    background: #fff;
    transition: all .2s ease;
    min-width: 68px;
    user-select: none;
}

.ap-data-chip:hover {
    border-color: #b39dff;
    background: #f8f6ff;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(109,74,255,.1);
}

.ap-data-chip.selecionado {
    border-color: #6D4AFF;
    background: #ede8ff;
    box-shadow: 0 4px 12px rgba(109,74,255,.2);
    transform: translateY(-2px);
}

.ap-data-dow  { font-size: .6rem; font-weight: 700; text-transform: uppercase; color: #94a3b8; letter-spacing: .05em; }
.ap-data-day  { font-size: 1.4rem; font-weight: 800; color: #1e293b; line-height: 1.1; }
.ap-data-mon  { font-size: .6rem; color: #94a3b8; text-transform: uppercase; font-weight: 600; }
.ap-data-chip.selecionado .ap-data-dow,
.ap-data-chip.selecionado .ap-data-day,
.ap-data-chip.selecionado .ap-data-mon { color: #1B1340; }
.ap-data-chip.selecionado .ap-data-day { color: #6D4AFF; }

/* Chips de horário */
.ap-slot-chip {
    cursor: pointer;
    padding: .6rem 1.1rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #fff;
    font-weight: 700;
    font-size: .9rem;
    color: #374151;
    transition: all .2s ease;
    user-select: none;
}

.ap-slot-chip:hover {
    border-color: #b39dff;
    background: #f0edff;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(109,74,255,.12);
}

.ap-slot-chip.selecionado {
    border-color: #6D4AFF;
    background: #6D4AFF;
    color: #fff;
    box-shadow: 0 4px 14px rgba(109,74,255,.35);
    transform: translateY(-2px);
}

/* Resumo */
.ap-resumo {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1.5px solid #a7f3d0;
    border-radius: 16px;
    padding: 1.25rem;
}

.ap-resumo-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .35rem 0;
    font-size: .9rem;
    color: #374151;
    border-bottom: 1px solid rgba(167,243,208,.5);
}

.ap-resumo-row:last-child { border-bottom: none; }

.ap-resumo-label { font-weight: 700; color: #065f46; min-width: 70px; }

/* Confirmação */
.ap-confirmado {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

/* Botões de navegação */
.ap-nav-btn-back {
    background: #F6F6FA !important;
    color: #475569 !important;
    border: none !important;
    border-radius: 14px !important;
}

.ap-nav-btn-back:hover { background: #e2e8f0 !important; }

/* Responsivo — mostra branding acima de 1024px */
@media (min-width: 1024px) {
    .ap-branding  { display: flex; }
    .ap-content  { padding: 2.5rem 3rem 4rem; }
}

@media (max-width: 480px) {
    .ap-content { padding: 1rem .5rem 3rem; }
    .ap-card { border-radius: 18px; }
}

/* ── Blazor Error UI ────────────────────────────────────── */
#blazor-error-ui {
    background: #fde68a;
    color: #1f2937;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: .75rem;
    top: .5rem;
}
