/* Тумблер переключения режима ИИ/ручной */
.mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-label {
    font-size: 15px;
    color: #8a8aa0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.toggle-label.active {
    color: #fff;
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* ИСПРАВЛЕНО: теперь класс называется switch-slider, а не slider */
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .switch-slider {
    background: linear-gradient(90deg, #8a2be2, #00bfff);
}

input:checked + .switch-slider:before {
    transform: translateX(30px);
}

.manual-mode textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    color: #fff;
    font-size: 16px;
    resize: vertical;
    min-height: 180px;
    font-family: 'Inter', monospace;
    line-height: 1.5;
    margin: 15px 0 12px 0;
}

.manual-mode textarea:focus {
    outline: none;
    border-color: #8a2be2;
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.2);
}

.manual-hint {
    margin-top: 10px;
    font-size: 14px;
    color: #8a8aa0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-mode, .manual-mode {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}