/* Driver.js Theme Overrides */

/* Popover Container */
.driver-popover {
    background-color: var(--ui-white, #ffffff);
    color: var(--text-dark, #333333);
    border-radius: 12px; /* Matches modern rounded look */
    border: 1px solid var(--ui-border, #dcdcdc);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    font-family: "Sage UI", "Helvetica Neue", Arial, sans-serif;
    max-width: 350px;
}

/* Popover Title */
.driver-popover-title {
    font-family: "Sage UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    color: var(--brand-primary, #007e45);
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Popover Description */
.driver-popover-description {
    font-family: "Sage UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem; /* ~15px */
    line-height: 1.5;
    color: var(--text-medium, #666666);
    margin-bottom: 20px;
}

/* Footer / Buttons Container */
.driver-popover-footer {
    margin-top: 0; /* Spacing handled by description margin */
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Navigation Buttons (Next/Done) */
.driver-popover-next-btn {
    background-color: var(--brand-primary, #007e45) !important;
    color: #ffffff !important;
    border: 1px solid var(--brand-primary, #007e45) !important;
    border-radius: 9999px !important; /* Pill shape */
    padding: 6px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background-color 0.2s;
    text-shadow: none !important;
}

.driver-popover-next-btn:hover {
    background-color: var(--brand-primary-hover, #215515) !important;
    border-color: var(--brand-primary-hover, #215515) !important;
}

/* Previous Button */
.driver-popover-prev-btn {
    background-color: transparent !important;
    color: var(--text-medium, #666666) !important;
    border: 1px solid var(--ui-border, #dcdcdc) !important;
    border-radius: 9999px !important;
    padding: 6px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.2s;
    text-shadow: none !important;
}

.driver-popover-prev-btn:hover {
    background-color: var(--ui-light, #f4f4f4) !important;
    color: var(--text-dark, #333) !important;
}

/* Close Button (X) */
.driver-popover-close-btn {
    color: var(--text-muted, #999) !important;
    font-size: 1.2rem !important;
    top: 10px !important;
    right: 10px !important;
    font-weight: 300 !important;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.driver-popover-close-btn:hover {
    color: var(--brand-danger, #da1e28) !important;
    opacity: 1;
}

/* Progress Text (e.g. "1 of 4") */
.driver-popover-progress-text {
    color: var(--text-muted, #999999) !important;
    font-size: 0.8rem !important;
    font-weight: 500;
}

/* Highlighted Element Overlay */
.driver-overlay path {
    fill: rgba(0, 0, 0, 0.6) !important; /* Darker overlay */
}

/* Active Element Border/Highlight */
/* Driver.js creates a cutout, but we can style the stage if needed.
   Currently, the default stage look is usually fine, but we can soften it. */