.help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #e7f0ff;
    color: #667eea;
    border: 1px solid #667eea;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    margin-left: 0.3rem;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.help-button:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.label-with-help {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.25rem;
}

.label-with-help label {
    margin-bottom: 0 !important;
    display: inline !important;
}

.help-toast-overlay {
    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: 9999;
    animation: fadeIn 0.3s ease;
}

.help-toast-overlay.hide {
    animation: fadeOut 0.3s ease;
}

.help-toast {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10000;
    animation: slideUp 0.3s ease;
}

.help-toast.hide {
    animation: slideDown 0.3s ease;
}

.help-toast-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.help-toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.help-toast-close:hover {
    color: #333;
}

.help-toast-content {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.help-toast-content p {
    margin-bottom: 0.75rem;
}

.help-toast-content p:last-child {
    margin-bottom: 0;
}

.help-toast-example {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: #667eea;
    border-left: 3px solid #667eea;
    padding-left: 0.75rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}
