/* 
   Driver.js Custom FinHome Theme 
   Replaces default driver.css with a Glassmorphism look
*/

/* 1. OVERLAY & HIGHLIGHT */
.driver-active .driver-overlay,
.driver-active .driver-element-mb,
.driver-active .driver-element-pl {
    border-radius: 24px;
    /* Matches FinHome cards */
    transition: all 0.3s ease;
}

/* 2. POPOVER CONTAINER */
.driver-popover {
    all: unset;
    box-sizing: border-box;
    color: #1e293b;
    margin: 0;
    padding: 24px;
    border-radius: 24px;
    min-width: 250px;
    max-width: 320px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000000000;

    /* GLASSMORPHISM BASE */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;

    font-family: 'Outfit', sans-serif !important;
    /* Force App Font */
    font-family: 'Outfit', sans-serif !important;
    /* Force App Font */
    /* opacity: 0; REMOVED to fix visibility */
    /* transform: translateY(10px); REMOVED to fix visibility */
}

/* Dark Mode Overrides */
.dark .driver-popover {
    background-color: rgba(15, 23, 42, 0.9);
    /* Slate-900 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* 3. ARROW */
.driver-popover-arrow {
    content: "";
    position: absolute;
    border: 5px solid transparent;
    border-width: 8px;
    display: none;
    /* Hiding arrow for cleaner floating look, or style closer if needed */
}

/* 4. CONTENT TYPOGRAPHY */
.driver-popover-title {
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
    color: #0f172a;
    /* Slate-900 */
    display: block;
}

.dark .driver-popover-title {
    color: #ffffff;
}

.driver-popover-description {
    font-size: 0.9rem;
    /* text-sm+ */
    line-height: 1.6;
    color: #475569;
    /* Slate-600 */
    margin-bottom: 24px;
    font-weight: 400;
}

.dark .driver-popover-description {
    color: #94a3b8;
    /* Slate-400 */
}

/* 5. FOOTER & BUTTONS */
.driver-popover-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
}

.driver-popover-progress-text {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

.driver-popover-footer button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Next / Finish Button */
.driver-popover-next-btn {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.driver-popover-next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
    filter: brightness(1.1);
}

.driver-popover-next-btn:active {
    transform: translateY(0);
}

/* Prev Button */
.driver-popover-prev-btn {
    background: transparent;
    color: #64748b;
}

.driver-popover-prev-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #334155;
}

.dark .driver-popover-prev-btn {
    color: #94a3b8;
}

.dark .driver-popover-prev-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Close Button (X) */
.driver-popover-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 1.2rem;
    padding: 0;
}

.driver-popover-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #ef4444;
}

.dark .driver-popover-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Disabled State */
.driver-popover-btn-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Utility: Hidden */
.driver-popover-hidden {
    display: none !important;
}