/* Guide Me System Styles */

/* Guide Me Button */
.guide-me-button {
    /* Fixed position - always visible, scrolls with page */
    position: fixed;
    top: 120px;
    right: 20px;
    padding: 14px 24px;
    background: var(--brand, #2F5D9F);
    color: white;
    border: 2px solid var(--brand, #2F5D9F);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(47, 93, 159, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
    font-family: inherit;
    display: flex !important;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
    animation: slideInRight 0.5s ease-out, gentlePulse 2s ease-in-out 0.5s 3;
}

/* Button content wrapper - shift left to compensate for emoji spacing */
.guide-btn-content {
    display: flex;
    align-items: center;
    gap: 4px;
    transform: translateX(-4px);
    letter-spacing: 0.01em;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(47, 93, 159, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(47, 93, 159, 0.6);
    }
}

.guide-me-button:hover {
    background: #254a7f;
    border-color: #254a7f;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(47, 93, 159, 0.5);
    animation: none;
}

.guide-me-button:active {
    transform: translateY(0) scale(1.02);
}

/* Welcome Screen */
.guide-welcome {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.guide-welcome-content {
    background: #fff;
    border: 1px solid var(--border, #E6EDF6);
    border-radius: 16px;
    padding: 28px 32px 32px;
    max-width: 560px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.guide-welcome-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 12px;
}

.guide-welcome-content h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    color: var(--ink, #0F172A);
    text-align: center;
    font-weight: 700;
}

.guide-welcome-intro {
    text-align: center;
    color: var(--muted, #475569);
    font-size: 0.95rem;
    margin: 0 0 20px;
    line-height: 1.5;
}

.guide-welcome-resume {
    background: #f0f9ff;
    border: 1px solid #7dd3fc;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    color: var(--ink, #0F172A);
    text-align: center;
    font-size: 0.95rem;
}

.guide-welcome-resume strong {
    display: block;
    margin-bottom: 8px;
    color: var(--brand, #2F5D9F);
}

.guide-welcome-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.guide-welcome-feature {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
}

.guide-welcome-feature strong {
    display: block;
    color: var(--ink, #0F172A);
    margin-bottom: 3px;
    font-size: 0.95rem;
    font-weight: 600;
}

.guide-welcome-feature p {
    margin: 0;
    color: var(--muted, #475569);
    font-size: 0.875rem;
    line-height: 1.4;
}

.guide-welcome-tips {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 2px solid #60a5fa;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 20px;
    overflow: hidden;
}

.guide-welcome-tips-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.guide-welcome-tips-header:hover {
    background: rgba(59, 130, 246, 0.1);
}

.guide-welcome-tips-header strong {
    color: #1e40af;
    font-size: 0.95rem;
    font-weight: 600;
}

.toggle-icon {
    color: #3b82f6;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.guide-welcome-tips-content {
    margin: 0;
    padding: 0 16px 12px 36px;
    color: #1e40af;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.guide-welcome-tips-content li {
    margin-bottom: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.guide-welcome-tips-content li:last-child {
    margin-bottom: 0;
}

.guide-welcome-notice {
    background: #f0f9ff;
    border: 1px solid #7dd3fc;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--ink, #0F172A);
    line-height: 1.5;
}

.guide-welcome-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 4px;
}

.guide-btn-cancel {
    padding: 10px 20px;
    background: #f8fafc;
    border: 1px solid var(--border, #E6EDF6);
    color: var(--muted, #475569);
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.guide-btn-cancel:hover {
    background: #f1f5f9;
    border-color: var(--muted, #cbd5e1);
}

.guide-btn-outline {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--brand, #2F5D9F);
    color: var(--brand, #2F5D9F);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.guide-btn-outline:hover {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.guide-btn-start {
    padding: 10px 20px;
    background: var(--brand, #2F5D9F);
    border: 1px solid var(--brand, #2F5D9F);
    color: white;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.guide-btn-start:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 12px rgba(47, 93, 159, 0.25);
}

/* Mobile responsive for welcome */
@media (max-width: 768px) {
    .guide-welcome-content {
        padding: 24px;
    }
    
    .guide-welcome-content h2 {
        font-size: 1.3rem;
    }
    
    .guide-welcome-intro {
        font-size: 1rem;
    }
    
    .guide-welcome-actions {
        flex-direction: column;
    }
    
    .guide-btn-cancel,
    .guide-btn-start {
        width: 100%;
    }
}

/* Overlay - dims page so preview changes are visible */
.guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 9998;
    backdrop-filter: blur(1px);
}

/* Highlighted sections */
.guide-highlight {
    position: relative;
    z-index: 9999 !important;
    background: white !important;
    border-radius: 8px;
    box-shadow: 0 0 0 3px var(--brand, #2F5D9F), 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    padding: 12px;
    animation: guideGlow 2s ease-in-out infinite;
}

/* Override background for buttons that have guide-highlight directly applied */
button.guide-highlight,
.add-job-btn.guide-highlight {
    background: var(--brand, #2F5D9F) !important;
    color: white !important;
    padding: 10px 20px !important;
}

@keyframes guideGlow {
    0%, 100% { box-shadow: 0 0 0 3px var(--brand, #2F5D9F), 0 8px 32px rgba(0, 0, 0, 0.3); }
    50% { box-shadow: 0 0 0 3px #5a8dd4, 0 8px 32px rgba(47, 93, 159, 0.4); }
}

/* Control Panel */
.guide-controls {
    position: fixed;

/* Ensure buttons within highlighted sections remain visible */
.guide-highlight button,
.guide-highlight .add-job-btn {
    background: var(--brand, #2F5D9F) !important;
    color: white !important;
    border: 2px solid var(--brand, #2F5D9F) !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    transition: all 0.2s ease !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

.guide-highlight button:hover,
.guide-highlight .add-job-btn:hover {
    background: #254a7f !important;
    border-color: #254a7f !important;
    transform: translateY(-1px) !important;
}

/* Special handling for remove buttons */
.guide-highlight .job-item button {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    padding: 4px 8px !important;
    min-height: 28px !important;
    font-size: 16px !important;
}

.guide-highlight .job-item button:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

/* Specific handling for Add Job button to ensure text is visible */
.guide-highlight.add-job-btn,
button.add-job-btn.guide-highlight,
.add-job-btn.guide-highlight {
    background: var(--brand, #2F5D9F) !important;
    color: white !important;
    border: 2px solid var(--brand, #2F5D9F) !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-indent: 0 !important;
    text-shadow: none !important;
    letter-spacing: normal !important;
}

/* Make sure ALL button text is always visible */
.guide-highlight button,
button.guide-highlight,
.guide-highlight .add-job-btn,
.add-job-btn.guide-highlight {
    color: white !important;
    text-indent: 0 !important;
    font-size: 14px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Specific fix for Add Job button text visibility */
button.add-job-btn.guide-highlight::after,
button.add-job-btn.guide-highlight::before,
.add-job-btn.guide-highlight::after,
.add-job-btn.guide-highlight::before {
    content: none !important;
    display: none !important;
}

/* Ensure button text content is preserved */
button.add-job-btn.guide-highlight {
    text-overflow: clip !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

/* Ensure text contrast in highlighted state */
.guide-highlight button::before,
.guide-highlight button::after {
    display: none !important;
}

/* FINAL OVERRIDE - Ensure Add Job button is ALWAYS visible when highlighted */
button.add-job-btn.guide-highlight,
.guide-highlight > button.add-job-btn,
.guide-highlight .add-job-btn {
    background-color: #2F5D9F !important;
    background: #2F5D9F !important;
    color: #ffffff !important;
    border: 2px solid #2F5D9F !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    text-align: center !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

button.add-job-btn.guide-highlight:hover {
    background: #254a7f !important;
    color: #ffffff !important;
}
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 16px 20px;
    z-index: 10000;
    width: 600px;
    max-width: 90vw;
    border: 1px solid var(--border, #e6edf6);
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 8px;
}

.guide-progress {
    flex: 1;
}

.guide-progress-text {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 600;
}

.guide-progress-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.guide-progress-fill {
    height: 100%;
    background: var(--brand, #2F5D9F);
    transition: width 0.4s ease;
    border-radius: 3px;
}

.guide-exit {
    background: none;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.guide-exit:hover {
    border-color: #94a3b8;
    color: #475569;
    background: #f8fafc;
}

.guide-minimize {
    background: none;
    border: 1px solid #cbd5e1;
    color: #64748b;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
}

.guide-minimize:hover {
    border-color: var(--brand, #2F5D9F);
    color: var(--brand, #2F5D9F);
    background: #f0f9ff;
}

/* Minimized state */
.guide-controls.minimized {
    padding: 12px 20px;
}

.guide-controls.minimized .guide-progress-text {
    font-size: 0.9rem;
}

.guide-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink, #0f172a);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.guide-section-title-text {
    margin-bottom: 8px;
}

.guide-section-hints {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.guide-chip-info {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1e40af;
    padding: 6px 10px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #60a5fa;
    border-radius: 6px;
    font-style: normal;
    width: fit-content;
    max-width: 100%;
}

/* Chip hint icon */
.guide-chip-hint {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.85rem;
    opacity: 0.6;
    transition: all 0.2s;
    position: relative;
    cursor: help;
}

.chip:hover .guide-chip-hint,
.segbtn:hover .guide-chip-hint {
    opacity: 1;
    transform: scale(1.1);
}

/* Tooltip on hover */
.guide-chip-hint::after {
    content: 'Click to see what this adds';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: var(--ink, #0F172A);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 10003;
    font-weight: 500;
}

/* Small arrow */
.guide-chip-hint::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 4px solid transparent;
    border-top-color: var(--ink, #0F172A);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 10003;
}

.guide-chip-hint:hover::after,
.guide-chip-hint:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

.guide-chip-hint:hover::before {
    transform: translateX(-50%) translateY(0px);
}

/* Voice Input */
.guide-voice-btn {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: white !important;
    border: 2px solid var(--brand, #2F5D9F) !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    z-index: 100 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.guide-voice-btn:hover {
    background: var(--brand, #2F5D9F) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.guide-voice-btn.listening {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    animation: pulse 1.5s ease-in-out infinite !important;
}

.guide-voice-btn.success {
    background: #10b981 !important;
    border-color: #10b981 !important;
}

.guide-voice-btn.error {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

.guide-voice-indicator {
    position: absolute;
    top: -30px;
    right: 0;
    background: #dc2626;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Adjust input padding to make room for voice button */
.guide-highlight input[type="text"],
.guide-highlight textarea {
    padding-right: 50px !important;
    position: relative !important;
}

.guide-highlight .field {
    position: relative !important;
}

.guide-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.guide-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    border: none;
    min-width: 0; /* Allow buttons to shrink */
}

.guide-btn-skip {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.guide-btn-skip:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.guide-btn-next {
    background: var(--brand, #2F5D9F);
    color: white;
    border: 2px solid var(--brand, #2F5D9F);
}

.guide-btn-next:hover {
    background: #254a7f;
    border-color: #254a7f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(47, 93, 159, 0.3);
}

.guide-btn-previous {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.guide-btn-previous:hover {
    border-color: var(--brand, #2F5D9F);
    background: #f0f9ff;
    color: var(--brand, #2F5D9F);
}

.guide-btn-finish {
    background: white;
    border: 2px solid #10b981;
    color: #10b981;
    font-weight: 600;
}

.guide-btn-finish:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Confirmation Modal */
.guide-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10003;
    animation: fadeIn 0.2s ease;
}

.guide-confirm-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    padding: 24px;
    max-width: 420px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

.guide-confirm-title {
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink, #0F172A);
}

.guide-confirm-message {
    margin: 0 0 20px;
    font-size: 0.95rem;
    color: var(--muted, #64748b);
    line-height: 1.5;
}

.guide-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.guide-btn-cancel {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border, #E6EDF6);
    color: var(--muted, #64748b);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guide-btn-cancel:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.guide-btn-confirm {
    padding: 10px 20px;
    background: var(--brand, #2F5D9F);
    border: 2px solid var(--brand, #2F5D9F);
    color: white;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guide-btn-confirm:hover {
    background: #254a7f;
    border-color: #254a7f;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Completion message - matches guide panel styling */
.guide-complete {
    padding: 0;
}

.guide-complete-icon {
    font-size: 2.5rem;
    color: var(--brand, #2F5D9F);
    margin-bottom: 12px;
    text-align: center;
}

.guide-complete-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink, #0F172A);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    text-align: center;
}

.guide-complete-subtitle {
    margin: 0 0 10px;
    color: var(--ink, #0F172A);
    font-size: 0.95rem;
    font-weight: 600;
}

.guide-complete-steps {
    margin: 0 0 16px 0;
    padding-left: 20px;
    color: var(--muted, #64748b);
    font-size: 0.9rem;
    line-height: 1.6;
}

.guide-complete-steps li {
    margin-bottom: 6px;
}

.guide-complete-steps li:last-child {
    margin-bottom: 0;
}

.guide-complete-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    justify-content: space-between;
}

.guide-complete-restart {
    background: white !important;
    color: var(--brand, #2F5D9F) !important;
    border: 1px solid var(--border, #E6EDF6) !important;
    flex: 1;
}

.guide-complete-restart:hover {
    border-color: var(--brand, #2F5D9F) !important;
}

.guide-complete-done {
    background: var(--brand, #2F5D9F) !important;
    color: white !important;
    border: 1px solid var(--brand, #2F5D9F) !important;
    flex: 1;
}

.guide-complete-note {
    margin-top: 8px !important;
    font-size: 0.9rem !important;
    color: var(--brand, #2F5D9F) !important;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .guide-me-button {
        top: 80px;
        right: 12px;
        font-size: 0.9rem;
        padding: 12px 20px;
        box-shadow: 0 3px 12px rgba(47, 93, 159, 0.4);
    }
    
    .guide-btn-content {
        gap: 3px;
        transform: translateX(-4px);
    }
    
    .guide-controls {
        width: calc(100vw - 20px);
        padding: 14px 16px;
        bottom: 10px;
    }
    
    .guide-controls.minimized {
        padding: 10px 16px;
    }
    
    .guide-section-title {
        font-size: 0.95rem;
    }
    
    .guide-chip-info {
        font-size: 0.8rem;
    }
    
    .guide-chip-description {
        left: 10px !important;
        right: 10px !important;
        max-width: calc(100vw - 20px);
        width: auto;
    }
    
    .guide-voice-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .guide-voice-indicator {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
    
    .guide-actions {
        flex-direction: row;
        gap: 8px;
    }
    
    .guide-btn {
        flex: 1;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .guide-btn-finish {
        flex-basis: 100%;
        order: 4; /* Put it on its own row at bottom */
    }
    
    body.guide-mode-active {
        padding-bottom: 250px;
    }
}

/* Ensure highlighted sections stay on top of everything */
body.guide-mode-active {
    padding-bottom: 300px;
}

.guide-highlight h3 {
    position: relative;
    z-index: 10001;
}

.guide-highlight .field {
    position: relative;
    z-index: 10001;
}

/* Override page's chip-preview z-index when Guide Me is active */
body.guide-mode-active .chip-preview {
    z-index: 10002 !important;
}

/* Save confirmation toast animations */
@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Custom Tooltips - Beautiful, branded tooltips instead of browser defaults */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    padding: 10px 14px;
    background: var(--ink, #0F172A);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 8px;
    white-space: normal;
    max-width: 280px;
    width: max-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 10003;
    text-align: center;
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border: 6px solid transparent;
    border-top-color: var(--ink, #0F172A);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 10003;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Special positioning for buttons at top of screen */
.guide-me-button[data-tooltip]::before {
    bottom: auto;
    top: calc(100% + 10px);
    left: auto;
    right: 0;
    transform: translateX(0) translateY(-5px);
    max-width: 260px;
}

.guide-me-button[data-tooltip]::after {
    bottom: auto;
    top: calc(100% + 2px);
    left: auto;
    right: 20px;
    border-top-color: transparent;
    border-bottom-color: var(--ink, #0F172A);
    transform: translateX(0) translateY(-5px);
}

.guide-me-button[data-tooltip]:hover::before,
.guide-me-button[data-tooltip]:hover::after {
    transform: translateX(0) translateY(0);
}

/* Tooltip for Exit button */
.guide-exit[data-tooltip]::before {
    right: 0;
    left: auto;
    transform: translateX(0) translateY(5px);
}

.guide-exit[data-tooltip]::after {
    right: 20px;
    left: auto;
    transform: translateX(0) translateY(5px);
}

.guide-exit[data-tooltip]:hover::before,
.guide-exit[data-tooltip]:hover::after {
    transform: translateX(0) translateY(0);
}

/* Progress Dots */
.guide-progress-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    margin: 6px 0;
    flex-wrap: wrap;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.progress-dot.filled {
    background: var(--brand, #2F5D9F);
    box-shadow: 0 0 4px rgba(47, 93, 159, 0.4);
}

.progress-dot.partial {
    background: linear-gradient(90deg, var(--brand, #2F5D9F) 50%, #CBD5E1 50%);
}

.progress-dot.skipped {
    background: #E6EDF6;
    border: 1px solid #CBD5E1;
}

.progress-dot.current {
    background: var(--brand, #2F5D9F);
    box-shadow: 0 0 8px rgba(47, 93, 159, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

.progress-dot.upcoming {
    background: transparent;
    border: 1px solid #CBD5E1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 4px rgba(47, 93, 159, 0.4);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 12px rgba(47, 93, 159, 0.8);
    }
}

/* Clickable Progress Dots - Desktop Only */
@media (hover: hover) {
    .progress-dot.clickable {
        cursor: pointer;
    }
    
    .progress-dot.clickable:hover {
        transform: scale(1.5);
        z-index: 1;
    }
    
    .progress-dot.clickable.filled:hover {
        box-shadow: 0 0 8px rgba(47, 93, 159, 0.6);
    }
    
    .progress-dot.clickable.partial:hover {
        box-shadow: 0 0 8px rgba(47, 93, 159, 0.6);
    }
    
    .progress-dot.clickable.skipped:hover {
        background: #CBD5E1;
        border-color: #94a3b8;
    }
    
    .progress-dot.clickable.upcoming:hover {
        background: #E6EDF6;
        border-color: #94a3b8;
    }
    
    /* Don't change current dot on hover - it's already prominent */
    .progress-dot.clickable.current {
        cursor: default;
    }
}

/* Review Modal */
.guide-review-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 10004;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.guide-review-content {
    background: white;
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 540px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.guide-review-content h3 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    color: var(--ink, #0F172A);
    font-weight: 700;
}

.guide-review-subtitle {
    color: var(--muted, #475569);
    margin: 0 0 20px;
    font-size: 0.95rem;
}

.guide-review-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.guide-review-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg, #F5F7FB);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.guide-review-item:hover {
    background: #E6EDF6;
    transform: translateX(4px);
}

.review-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.review-icon.filled {
    color: #10b981;
}

.review-icon.partial {
    color: #3b82f6;
}

.review-icon.skipped {
    color: #94a3b8;
}

.review-title {
    flex: 1;
    font-weight: 600;
    color: var(--ink, #0F172A);
}

.review-status {
    font-size: 0.85rem;
    color: var(--muted, #475569);
}

.guide-review-tip {
    background: #f0f9ff;
    border: 1px solid #7dd3fc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--ink, #0F172A);
}

.guide-review-actions {
    display: flex;
    justify-content: center;
}

.guide-complete-review {
    background: var(--bg, #F5F7FB);
    border: 1px solid var(--border, #E6EDF6);
    color: var(--brand, #2F5D9F);
}

.guide-complete-review:hover {
    background: #E6EDF6;
}

/* CSS additions needed for guide-me.css to support the new "prefilled" status */

/* Progress dots - prefilled status (sections using only default values) */
.guide-progress-dot.prefilled {
    background: #93c5fd; /* Light blue to indicate defaults */
    border-color: #60a5fa;
}

/* Review modal - prefilled status icon */
.review-icon.prefilled {
    color: #60a5fa; /* Blue to match dot color */
    opacity: 0.8;
}

/* Make prefilled status visually distinct but less prominent than filled */
.guide-review-item .review-icon.prefilled {
    font-size: 1.2rem;
}

/* Optional: Add hover effect to show prefilled items can be customized */
.guide-review-item:has(.review-icon.prefilled):hover {
    background: #eff6ff;
    border-left: 3px solid #60a5fa;
}

/* CSS additions needed for guide-me.css to support the new "prefilled" status */

/* CSS additions needed for guide-me.css to support the new "prefilled" status */

/* ===== PROGRESS DOTS - Color-coded status ===== */

/* Filled - User made changes (GREEN) */
.progress-dot.filled {
    background: #10b981 !important;
    border-color: #059669 !important;
}

/* Prefilled - Using defaults only (LIGHT BLUE) */
.progress-dot.prefilled {
    background: #60a5fa !important;
    border-color: #3b82f6 !important;
}

/* Partial - Mix of filled and empty (YELLOW/ORANGE) */
.progress-dot.partial {
    background: #f59e0b !important;
    border-color: #d97706 !important;
}

/* Skipped - Nothing selected (GREY) */
.progress-dot.skipped {
    background: #94a3b8 !important;
    border-color: #64748b !important;
}

/* Current section - Highlighted (BRAND BLUE) */
.progress-dot.current {
    background: #2F5D9F !important;
    border-color: #1e3a8a !important;
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(47, 93, 159, 0.2);
}

/* Upcoming sections - Subtle grey */
.progress-dot.upcoming {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}

/* ===== REVIEW MODAL - Matching colors ===== */

/* Filled status icon (GREEN) */
.review-icon.filled {
    color: #10b981;
}

/* Prefilled status icon (LIGHT BLUE) */
.review-icon.prefilled {
    color: #60a5fa;
    opacity: 0.9;
}

/* Partial status icon (YELLOW/ORANGE) */
.review-icon.partial {
    color: #f59e0b;
}

/* Skipped status icon (GREY) */
.review-icon.skipped {
    color: #94a3b8;
}

/* Make prefilled status visually distinct but less prominent than filled */
.guide-review-item .review-icon.prefilled {
    font-size: 1.2rem;
}

/* Optional: Add hover effects to show prefilled items can be customized */
.guide-review-item:has(.review-icon.prefilled):hover {
    background: #eff6ff;
    border-left: 3px solid #60a5fa;
}

.guide-review-item:has(.review-icon.filled):hover {
    background: #f0fdf4;
    border-left: 3px solid #10b981;
}

.guide-review-item:has(.review-icon.skipped):hover {
    background: #f8fafc;
    border-left: 3px solid #94a3b8;
}

/* ===== Prevent Highlight Layout Issues ===== */

/* Ensure highlighted grid/flex containers maintain their layout */
.guide-highlight.stack,
.guide-highlight[class*="grid"],
.guide-highlight[class*="flex"] {
    /* Maintain display property even when highlighted */
    position: relative !important;
}

/* When a parent container is highlighted, ensure child fields are visible */
.guide-highlight .field,
.guide-highlight .seg,
.guide-highlight .chips {
    /* Child elements should be visible and maintain their styling */
    position: relative;
    z-index: 1;
}

/* Prevent z-index stacking issues with nested highlights */
.guide-highlight .guide-highlight {
    z-index: inherit;
}

/* Ensure form elements within highlighted containers are clickable */
.guide-highlight input,
.guide-highlight textarea,
.guide-highlight select,
.guide-highlight .chip,
.guide-highlight .segbtn {
    position: relative;
    z-index: 2;
}