:root {
    --primary-color: #5b3a89;
    --primary-color-hover: #5813a5;
    --primary-background-hover: #451977;
    --secondary-background-hover: #e1d4f2;
    --primary-purple: #782DC8;
    --primary-purple-hover: #e5ccff;
    --text-color: #636466;
    --text-secondary: #727272;
    --border-color: #e0e0e0;
}

.onboarding-start-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 10px;
    border: none;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 12px;
    gap: 8px;
    width: 134px;
    height: 32px;
    transition: background 0.2s ease;
    text-decoration: none;

    i {
        font-size: 12px !important;
    }
}

.custom-leave-button {
    margin-right: auto !important;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.custom-leave-button:hover {
    background-color: var(--secondary-background-hover);
}

.custom-leave-button:focus {
    outline: none;
    box-shadow:
            0 0 0 2px #fff,
            0 0 0 4px rgba(120, 45, 200, 0.3),
            0 0 0 6px rgba(120, 45, 200, 0.1);
    background-color: var(--secondary-background-hover);
}


.onboarding-start-button:hover {
    background-color: var(--primary-color-hover);
}

.driver-active .driver-overlay, .driver-active * {
    pointer-events: none
}

.driver-active .driver-active-element, .driver-active .driver-active-element *, .driver-popover, .driver-popover * {
    pointer-events: auto;
}

@keyframes animate-fade-in {
    0% {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

.driver-fade .driver-overlay {
    animation: animate-fade-in .2s ease-in-out
}

.driver-fade .driver-popover {
    animation: animate-fade-in .2s
}

.driver-popover {
    all: unset;
    box-sizing: border-box;
    color: var(--text-color);
    margin: 0;
    padding: 20px;
    border-radius: 12px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000000000;
    position: fixed;
    top: 0;
    right: 0;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.driver-popover * {
    font-family: Helvetica Neue, Inter, ui-sans-serif, "Apple Color Emoji", Helvetica, Arial, sans-serif
}

/* Tag no topo */
.driver-popover-tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #000;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: #000;
    margin-bottom: 12px;
    width: fit-content;
    background-color: transparent;
}

.driver-popover-title {
    color: #424242;
    font-weight: 500;
    font-size: 20px;
    display: block;
    position: relative;
    line-height: 1.3;
    padding-right: 40px;
}

.driver-popover-close-btn {
    all: unset;
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    color: #d2d2d2;
    z-index: 1;
    text-align: center;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.driver-popover-close-btn:hover {
    color: #2d2d2d;
    background-color: #f5f5f5;
}

/* Estilo de focus (ring) para botão de fechar - estilo shadcn */
.driver-popover-close-btn:focus {
    outline: none;
    color: #2d2d2d;
    background-color: #f5f5f5;
    box-shadow:
            0 0 0 2px #fff,
            0 0 0 4px rgba(120, 45, 200, 0.3),
            0 0 0 6px rgba(120, 45, 200, 0.1);
}

.driver-popover-title[style*=block] + .driver-popover-description {
    margin-top: 12px
}

.driver-popover-description {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--text-color);
    margin-top: 12px;
}

/* Indicadores de progresso (pontos) - usado no footer */
.driver-popover-progress-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

@keyframes dot-appear {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.driver-popover-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d2d2d2;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0;
    animation: dot-appear 0.2s ease forwards;
}

.driver-popover-progress-dot.active {
    background-color: var(--primary-purple);
    width: 15px;
    border-radius: 10px;
}

.driver-popover-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.driver-popover-progress-text {
    font-size: 0;
    font-weight: 400;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 6px;
    margin: 0;
    padding: 0;
    min-height: 8px;
    width: 100%;
}

.driver-popover-navigation-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.driver-popover-footer button {
    display: inline-block;
    box-sizing: border-box;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    outline: 0;
    line-height: 1.5;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.driver-popover-footer .driver-popover-btn-disabled {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

:not(body):has(>.driver-active-element) {
    overflow: hidden !important
}

.driver-no-interaction, .driver-no-interaction * {
    pointer-events: none !important
}

.driver-popover-navigation-btns {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
    gap: 16px;
}

.driver-popover-navigation-btns button + button {
    margin-left: 0;
}

/* Botão Pular (Skip) */
.driver-popover-prev-btn,
.driver-popover-skip-btn {
    background-color: transparent;
    color: var(--primary-purple);
    padding: 6px    22px;
    font-size: 14px;
    border: 1px solid var(--primary-purple);
    box-sizing: border-box;
    position: relative;
}

/* Estilo de focus (ring) para botões prev e skip - estilo shadcn */
.driver-popover-prev-btn:focus,
.driver-popover-skip-btn:focus {
    outline: none;
    box-shadow:
            0 0 0 2px #fff,
            0 0 0 4px rgba(120, 45, 200, 0.3),
            0 0 0 6px rgba(120, 45, 200, 0.1);
}

.driver-popover-prev-btn:hover,
.driver-popover-skip-btn:hover {
    background-color: var(--secondary-background-hover);
}

/* Botão Avançar (Next) */
.driver-popover-next-btn {
    background-color: var(--primary-purple);
    color: #fff;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    padding: 10px 24px;
    border: 1px solid var(--primary-purple);
    position: relative;
}

.driver-popover-next-btn:hover {
    background-color: var(--primary-background-hover);
}

/* Estilo de focus (ring) para botão next - estilo shadcn */
.driver-popover-next-btn:focus {
    outline: none;
    box-shadow:
            0 0 0 2px #fff,
            0 0 0 4px rgba(120, 45, 200, 0.3),
            0 0 0 6px rgba(120, 45, 200, 0.1);
}

.driver-popover-next-btn:active {
    transform: translateY(0);
}

/* Botão Concluir */
.driver-popover-done-btn {
    background-color: var(--primary-purple);
    color: #fff;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    position: relative;
}

.driver-popover-done-btn:hover {
    background-color: var(--primary-purple-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(120, 45, 200, 0.3);
}

/* Estilo de focus (ring) para botão done - estilo shadcn */
.driver-popover-done-btn:focus {
    outline: none;
    background-color: var(--primary-purple);
    box-shadow:
            0 0 0 2px #fff,
            0 0 0 4px rgba(120, 45, 200, 0.3),
            0 0 0 6px rgba(120, 45, 200, 0.1);
}

.driver-popover-arrow {
    content: "";
    position: absolute;
    border: 5px solid #fff
}

.driver-popover-arrow-side-over {
    display: none
}

.driver-popover-arrow-side-left {
    left: 100%;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-top-color: transparent
}

.driver-popover-arrow-side-right {
    right: 100%;
    border-left-color: transparent;
    border-bottom-color: transparent;
    border-top-color: transparent
}

.driver-popover-arrow-side-top {
    top: 100%;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent
}

.driver-popover-arrow-side-bottom {
    bottom: 100%;
    border-left-color: transparent;
    border-top-color: transparent;
    border-right-color: transparent
}

.driver-popover-arrow-side-center {
    display: none
}

.driver-popover-arrow-side-left.driver-popover-arrow-align-start, .driver-popover-arrow-side-right.driver-popover-arrow-align-start {
    top: 20px
}

.driver-popover-arrow-side-top.driver-popover-arrow-align-start, .driver-popover-arrow-side-bottom.driver-popover-arrow-align-start {
    left: 20px
}

.driver-popover-arrow-align-end.driver-popover-arrow-side-left, .driver-popover-arrow-align-end.driver-popover-arrow-side-right {
    bottom: 20px
}

.driver-popover-arrow-side-top.driver-popover-arrow-align-end, .driver-popover-arrow-side-bottom.driver-popover-arrow-align-end {
    right: 20px
}

.driver-popover-arrow-side-left.driver-popover-arrow-align-center, .driver-popover-arrow-side-right.driver-popover-arrow-align-center {
    top: 50%;
    margin-top: -5px
}

.driver-popover-arrow-side-top.driver-popover-arrow-align-center, .driver-popover-arrow-side-bottom.driver-popover-arrow-align-center {
    left: 50%;
    margin-left: -5px
}

.driver-popover-arrow-none {
    display: none
}

#driver-popover-title {
    height: auto !important;
}