/* src/css/walkthrough.css */
/* Driver.js Custom Styling for InvoicePad.app */
/* Note: The base driver.css is imported separately */

/* Overlay styling - much lighter and more transparent */
.driver-overlay {
    background: rgba(0, 0, 0, 0.1) !important;
    /* Very light overlay */
    transition: all 0.2s ease;
}

/* Custom styling for the popover */
.driver-popover {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.02);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    max-width: 350px;
}

.driver-popover .driver-popover-title {
    color: #363636;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.25;
}

.driver-popover .driver-popover-description {
    color: #4a4a4a;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.driver-popover .driver-popover-description strong {
    color: #363636;
    font-weight: 600;
}

/* Custom styling for buttons */
.driver-popover .driver-popover-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
    align-items: center;
}

.driver-popover .driver-popover-footer button {
    background: #3273dc;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    transition: background-color 0.15s ease;
    /* Fix text rendering issues */
    text-shadow: none !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.driver-popover .driver-popover-footer button:hover {
    background: #2366d1;
}

.driver-popover .driver-popover-footer button:focus {
    outline: none !important;
    box-shadow: none !important;
}

.driver-popover .driver-popover-footer .driver-popover-prev-btn {
    background: #f5f5f5;
    color: #363636;
    text-shadow: none !important;
}

.driver-popover .driver-popover-footer .driver-popover-prev-btn:hover {
    background: #eeeeee;
}

.driver-popover .driver-popover-footer .driver-popover-prev-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Close button styling - remove focus outline */
.driver-popover .driver-popover-close-btn {
    background: transparent !important;
    color: #7a7a7a !important;
    padding: 8px 12px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

.driver-popover .driver-popover-close-btn:hover {
    background: #f5f5f5 !important;
    color: #363636 !important;
}

.driver-popover .driver-popover-close-btn:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Remove any Bulma focus styles from driver buttons */
.driver-popover button:focus,
.driver-popover button:active,
.driver-popover button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* Progress indicator styling */
.driver-popover .driver-popover-progress-text {
    color: #7a7a7a;
    font-size: 0.75rem;
    margin-right: auto;
    font-weight: 500;
}

/* Arrow styling */
.driver-popover .driver-popover-arrow {
    border-color: white;
}

.driver-popover .driver-popover-arrow-side-over {
    display: none;
    /* Hide arrow for overlay popovers */
}

/* Highlighted element styling */
.driver-highlighted-element {
    background: transparent !important;
    border-radius: 4px;
    box-shadow: 0 0 0 4px rgba(50, 115, 220, 0.4), 0 0 0 2px #3273dc;
    transition: all 0.2s ease;
}

/* Special styling for intro and outro steps */
.driver-popover[data-step-index="0"],
.driver-popover[data-step-index="12"] {
    max-width: 450px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .driver-popover {
        max-width: 300px;
        margin: 10px;
    }

    .driver-popover[data-step-index="0"],
    .driver-popover[data-step-index="12"] {
        max-width: 320px;
    }

    .driver-popover .driver-popover-footer {
        flex-wrap: wrap;
        gap: 6px;
    }

    .driver-popover .driver-popover-footer button {
        font-size: 0.8125rem;
        padding: 6px 12px;
    }
}

/* Custom class for specific tour styling if needed */
.scoped-driver .driver-popover {
    z-index: 9999;
}

/* Ensure tour works well with Bulma components */
.driver-highlighted-element.button,
.driver-highlighted-element.input,
.driver-highlighted-element.textarea {
    box-shadow: 0 0 0 4px rgba(50, 115, 220, 0.4), 0 0 0 2px #3273dc !important;
}

/* Special highlighting for file upload areas */
.driver-highlighted-element .file-input,
.driver-highlighted-element .file-cta {
    border-color: #3273dc !important;
}

/* Override any global button focus styles that might interfere */
.driver-popover *:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Custom styling for the popover */
.driver-popover {
    background: white;
    border: 1px solid #dbdbdb;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.02);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    max-width: 350px;
}

.driver-popover .driver-popover-title {
    color: #363636;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.25;
}

.driver-popover .driver-popover-description {
    color: #4a4a4a;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.driver-popover .driver-popover-description strong {
    color: #363636;
    font-weight: 600;
}

/* Custom styling for buttons */
.driver-popover .driver-popover-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
    align-items: center;
}

.driver-popover .driver-popover-footer button {
    background: #3273dc;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    transition: background-color 0.15s ease;
}

.driver-popover .driver-popover-footer button:hover {
    background: #2366d1;
}

.driver-popover .driver-popover-footer .driver-popover-prev-btn {
    background: #f5f5f5;
    color: #363636;
}

.driver-popover .driver-popover-footer .driver-popover-prev-btn:hover {
    background: #eeeeee;
}

.driver-popover .driver-popover-footer .driver-popover-close-btn {
    background: transparent;
    color: #7a7a7a;
    padding: 8px 12px;
}

.driver-popover .driver-popover-footer .driver-popover-close-btn:hover {
    background: #f5f5f5;
    color: #363636;
}

/* Progress indicator styling */
.driver-popover .driver-popover-progress-text {
    color: #7a7a7a;
    font-size: 0.75rem;
    margin-right: auto;
    font-weight: 500;
}

/* Arrow styling */
.driver-popover .driver-popover-arrow {
    border-color: white;
}

.driver-popover .driver-popover-arrow-side-over {
    display: none;
    /* Hide arrow for overlay popovers */
}

/* Overlay styling */
.driver-overlay {
    background: rgba(0, 0, 0, 0.75);
    transition: all 0.2s ease;
}

/* Highlighted element styling */
.driver-highlighted-element {
    background: transparent !important;
    border-radius: 4px;
    box-shadow: 0 0 0 4px rgba(50, 115, 220, 0.4), 0 0 0 2px #3273dc;
    transition: all 0.2s ease;
}

/* Special styling for intro and outro steps */
.driver-popover[data-step-index="0"],
.driver-popover[data-step-index="12"] {
    max-width: 450px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .driver-popover {
        max-width: 300px;
        margin: 10px;
    }

    .driver-popover[data-step-index="0"],
    .driver-popover[data-step-index="12"] {
        max-width: 320px;
    }

    .driver-popover .driver-popover-footer {
        flex-wrap: wrap;
        gap: 6px;
    }

    .driver-popover .driver-popover-footer button {
        font-size: 0.8125rem;
        padding: 6px 12px;
    }
}

/* Custom class for specific tour styling if needed */
.scoped-driver .driver-popover {
    z-index: 9999;
}

/* Ensure tour works well with Bulma components */
.driver-highlighted-element.button,
.driver-highlighted-element.input,
.driver-highlighted-element.textarea {
    box-shadow: 0 0 0 4px rgba(50, 115, 220, 0.4), 0 0 0 2px #3273dc !important;
}

/* Special highlighting for file upload areas */
.driver-highlighted-element .file-input,
.driver-highlighted-element .file-cta {
    border-color: #3273dc !important;
}