/**
 * Estilos do widget Neexus Appointment View (popup do listing de agendamentos).
 * Prefixo: .nap-* (Neexus APPointments)
 */

.nap-widget {
    box-sizing: border-box;
    font-family: inherit;
}

.nap-widget *,
.nap-widget *::before,
.nap-widget *::after {
    box-sizing: inherit;
}

/* ── Cabeçalho ─────────────────────────────────────────────────────────────── */

.nap-header {
    margin-bottom: 24px;
}

.nap-title {
    margin: 0 0 8px;
    padding: 0;
    font-size: inherit;
    line-height: 1.3;
}

.nap-subtitle {
    margin: 0;
    padding: 0;
}

/* ── Bloco de informações ──────────────────────────────────────────────────── */

.nap-info-view {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nap-info-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nap-info-label {
    display: block;
}

.nap-info-value {
    display: block;
}

/* ── Botão Meet ──────────────────────────────────────────────────────────────  */

.nap-meet-wrap {
    margin-top: 24px;
}

.nap-meet-btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s ease, background-color 0.15s ease;
    width: 100%;
}

.nap-meet-btn:hover {
    opacity: 0.85;
}

/* ── Avaliação ───────────────────────────────────────────────────────────────  */

.nap-rating-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.nap-rating-label {
    display: block;
}

.nap-rating-btns {
    display: flex;
}

.nap-rate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    padding: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.nap-rate-btn:disabled {
    cursor: default;
}

/* ── Badge de status ─────────────────────────────────────────────────────────  */

.nap-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Botão Agendar novamente ─────────────────────────────────────────────────  */

.nap-rebook-wrap {
    margin-top: 24px;
}

.nap-rebook-btn {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s ease, background-color 0.15s ease;
    width: 100%;
}

.nap-rebook-btn:hover {
    opacity: 0.85;
}

/* ── Reagendar ───────────────────────────────────────────────────────────────  */

.nap-reschedule-wrap {
    margin-top: 16px;
}

.nap-reschedule-trigger {
    display: block;
    width: 100%;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nap-reschedule-trigger:hover {
    opacity: 0.85;
}

.nap-reschedule-panel {
    margin-top: 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 16px;
}

/* ── Calendário inline ───────────────────────────────────────────────────────  */

.nap-cal {
    user-select: none;
}

.nap-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.nap-cal-prev,
.nap-cal-next {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4em;
    line-height: 1;
    padding: 4px 8px;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.nap-cal-prev:hover,
.nap-cal-next:hover {
    opacity: 1;
}

.nap-cal-title {
    font-weight: 600;
}

.nap-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.nap-cal-day-name {
    text-align: center;
    font-size: 0.72em;
    font-weight: 600;
    padding: 4px 0;
    opacity: 0.5;
}

.nap-cal-day {
    text-align: center;
    padding: 6px 2px;
    border-radius: 4px;
    font-size: 0.85em;
    cursor: default;
}

.nap-cal-empty {
    visibility: hidden;
}

.nap-cal-past {
    opacity: 0.3;
}

.nap-cal-has-slots {
    cursor: pointer;
    font-weight: 600;
}

.nap-cal-has-slots:hover {
    opacity: 0.75;
}

.nap-cal-selected {
    outline: 2px solid currentColor;
}

/* ── Slots de horário ────────────────────────────────────────────────────────  */

.nap-slots-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.nap-slot-btn {
    padding: 6px 14px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 6px;
    background: none;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.15s, border-color 0.15s;
}

.nap-slot-btn:hover {
    opacity: 0.8;
}

.nap-slot-selected {
    outline: 2px solid currentColor;
    font-weight: 600;
}

/* ── Ações do reagendamento ──────────────────────────────────────────────────  */

.nap-reschedule-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.nap-reschedule-confirm,
.nap-reschedule-cancel {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9em;
    transition: opacity 0.15s;
}

.nap-reschedule-confirm {
    background: currentColor;
    flex: 1;
}

.nap-reschedule-confirm span,
.nap-reschedule-confirm {
    color: inherit;
}

.nap-reschedule-cancel {
    background: none;
    border-color: currentColor;
}

.nap-reschedule-confirm:disabled,
.nap-reschedule-cancel:disabled {
    opacity: 0.5;
    cursor: default;
}

.nap-reschedule-msg {
    margin-top: 10px;
    font-size: 0.9em;
    font-weight: 500;
    display: none;
}

.nap-rsc-loading,
.nap-rsc-error {
    opacity: 0.6;
    font-style: italic;
    margin: 8px 0;
}
