/* Tooltip System */
.field-help {
    display: inline-block;
    margin-left: 8px;
    width: 18px;
    height: 18px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    position: relative;
    transition: all 0.3s;
}

.field-help:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.field-help .tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 12px 15px;
    border-radius: 6px;
    width: 280px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: normal;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.3s;
    pointer-events: none;
}

.field-help .tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(44, 62, 80, 0.95);
}

.field-help:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    bottom: 135%;
}

.field-help .tooltip-content strong {
    display: block;
    color: #3498db;
    margin-bottom: 5px;
}

.field-help .tooltip-content .example {
    display: block;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-style: italic;
    color: #ecf0f1;
}

/* Warning Badge */
.warning-badge {
    display: inline-block;
    background: #f39c12;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Validation Messages */
.validation-error {
    color: var(--danger-color);
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.validation-error.show {
    display: block;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.validation-success {
    color: var(--success-color);
    font-size: 13px;
    margin-top: 5px;
}

/* Guided Mode Toggle */
.mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    z-index: 100;
}

.mode-toggle label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.mode-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ddd;
    border-radius: 13px;
    transition: background 0.3s;
}

.mode-switch input {
    display: none;
}

.mode-switch input:checked + .slider {
    transform: translateX(24px);
}

.mode-switch input:checked ~ .mode-switch {
    background: var(--secondary-color);
}

.mode-switch .slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Pre-fill suggestions */
.prefill-suggestion {
    background: #e8f4f8;
    border: 1px solid #3498db;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 13px;
}

.prefill-suggestion strong {
    color: #2980b9;
}

.prefill-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.prefill-btn:hover {
    background: #2980b9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .field-help .tooltip-content {
        width: 220px;
        font-size: 12px;
    }
    
    .mode-toggle {
        top: 10px;
        right: 10px;
    }
}
