/* ============================================
   Driver.js Tour — Priovox Theme
   ============================================ */

.priovox-tour.driver-popover {
    font-family: var(--font-body);
    border-radius: 12px;
    max-width: 360px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 1.25rem;
    background: #fff;
}

.priovox-tour .driver-popover-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--color-foreground);
    margin-bottom: 0.35rem;
}

.priovox-tour .driver-popover-description {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.priovox-tour .driver-popover-footer {
    margin-top: 1rem;
}

.priovox-tour .driver-popover-next-btn {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 6px;
    padding: 0.4rem 0.9rem;
    text-shadow: none;
}

.priovox-tour .driver-popover-next-btn:hover {
    background: #d45303;
    border-color: #d45303;
}

.priovox-tour .driver-popover-close-btn {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 1.1rem;
    font-weight: 400;
    padding: 0.2rem 0.4rem;
    cursor: pointer;
    line-height: 1;
}

.priovox-tour .driver-popover-close-btn:hover {
    color: #b91c1c;
    background: none;
}

.priovox-tour .driver-popover-prev-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-foreground);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 6px;
    padding: 0.4rem 0.9rem;
}

.priovox-tour .driver-popover-prev-btn:hover {
    background: var(--color-background);
}

/* Progress dots */
.tour-progress {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 6px 0 2px;
}

.tour-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-border);
    transition: background 0.2s, transform 0.2s;
}

.tour-dot.active {
    background: var(--color-accent);
    transform: scale(1.25);
}

.tour-dot.completed {
    background: var(--color-secondary);
}


/* ============================================
   Getting Started Checklist Widget
   ============================================ */

.checklist-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 900;
    font-family: var(--font-body);
}

/* Minimized pill button */
.checklist-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(232, 93, 4, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.checklist-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.4);
}

.checklist-pill.hidden {
    display: none;
}

/* Expanded card */
.checklist-card {
    display: none;
    width: 300px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    animation: checklist-slide-up 0.25s ease-out;
}

.checklist-card.open {
    display: block;
}

@keyframes checklist-slide-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checklist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem 0.5rem;
}

.checklist-header h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0;
    color: var(--color-foreground);
}

.checklist-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checklist-counter {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    background: rgba(232, 93, 4, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.checklist-close {
    background: none;
    border: none;
    font-size: 1.1rem;
    color: var(--color-muted);
    cursor: pointer;
    padding: 0 0.15rem;
    line-height: 1;
}

.checklist-close:hover {
    color: var(--color-foreground);
}

/* Progress bar */
.checklist-progress-bar {
    height: 3px;
    background: var(--color-border);
    margin: 0 1rem 0.5rem;
    border-radius: 2px;
    overflow: hidden;
}

.checklist-progress-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Items list */
.checklist-items {
    list-style: none;
    margin: 0;
    padding: 0 0.75rem 0.25rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.25rem;
    border-radius: 6px;
    transition: background 0.15s;
}

.checklist-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.checklist-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checklist-check svg {
    color: var(--color-secondary);
}

.checklist-circle {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
}

.checklist-item.done .checklist-label,
.checklist-item.done .checklist-action {
    color: var(--color-muted);
    text-decoration: line-through;
}

.checklist-label {
    font-size: 0.8125rem;
    color: var(--color-foreground);
}

.checklist-action {
    font-size: 0.8125rem;
    color: var(--color-accent);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-body);
    font-weight: 500;
}

.checklist-action:hover {
    text-decoration: underline;
}

/* Minimize button */
.checklist-minimize {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.4rem;
    background: none;
    border: none;
    border-top: 1px solid var(--color-border);
    cursor: pointer;
    color: var(--color-muted);
}

.checklist-minimize:hover {
    background: rgba(0, 0, 0, 0.02);
}


/* ============================================
   Responsive
   ============================================ */

@media (max-width: 640px) {
    .checklist-widget {
        bottom: 1rem;
        right: 1rem;
    }

    .checklist-card {
        width: 280px;
    }

    .priovox-tour.driver-popover {
        max-width: 300px;
    }
}
