/* Tour guiado (Driver.js) — tema alinhado ao layout do sistema */
/* Força position:fixed para que o Driver.js possa calcular top/left via JS.
   Nenhum outro CSS pode sobrescrever isso ou o card fica desalinhado. */
/* Tamanhos em px (não rem): o layout do Plenário Virtual redefine o
   font-size do <html> para 62.5% (reset.css), então valores em rem saem bem
   menores ali do que nas telas padrão — px garante o mesmo tamanho (o
   tamanho original do design) em qualquer layout que carregue o tour. */
.driver-popover.sisleg-tour-popover {
    position: fixed !important;
    font-family: 'Figtree', ui-sans-serif, system-ui, sans-serif;
    max-width: 400px;
    padding: 22px 22px 18px;
    padding-top: 26px;
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 10px 15px -6px rgba(15, 23, 42, 0.08);
    overflow: visible !important;
}

.sisleg-tour-popover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    pointer-events: none;
}

.sisleg-tour-popover .driver-popover-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111827;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.sisleg-tour-popover .driver-popover-title::before {
    content: "\f0eb";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sisleg-tour-popover .driver-popover-description {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
    margin-top: 8px;
}

.sisleg-tour-popover .driver-popover-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.sisleg-tour-popover .driver-popover-progress-text {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
    font-size: 12px;
    padding: 5px 11px;
    border-radius: 9999px;
}

.sisleg-tour-popover .driver-popover-close-btn {
    color: #9ca3af;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.sisleg-tour-popover .driver-popover-close-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.sisleg-tour-popover .driver-popover-footer-btn {
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.sisleg-tour-popover .driver-popover-prev-btn {
    background-color: #fff;
    border-color: #e5e7eb;
    color: #374151;
}

.sisleg-tour-popover .driver-popover-prev-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.sisleg-tour-popover .driver-popover-next-btn,
.sisleg-tour-popover .driver-popover-done-btn {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
    box-shadow: 0 4px 10px -2px rgba(37, 99, 235, 0.4);
}

.sisleg-tour-popover .driver-popover-next-btn:hover,
.sisleg-tour-popover .driver-popover-done-btn:hover {
    box-shadow: 0 6px 14px -2px rgba(37, 99, 235, 0.5);
    transform: translateY(-1px);
}

.sisleg-tour-popover .driver-popover-arrow-side-bottom {
    border-bottom-color: #fff;
}

.sisleg-tour-popover .driver-popover-arrow-side-top {
    border-top-color: #fff;
}

.sisleg-tour-popover .driver-popover-arrow-side-left {
    border-left-color: #fff;
}

.sisleg-tour-popover .driver-popover-arrow-side-right {
    border-right-color: #fff;
}

.driver-active-element {
    border-radius: 10px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
