/* ===== УЛУЧШЕННЫЙ ДИЗАЙН AI РЕДАКТОРА ===== */

/* Секция редактора */
.editor-section {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.editor-section:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.editor-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.editor-header h1 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.editor-header .subtitle {
    color: #7f8c8d;
    font-size: 1.05rem;
}

/* Улучшенный select с градиентом */
.form-control {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.05rem;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%234a90e2' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    padding-right: 3.5rem;
    font-weight: 500;
}

.form-control:hover {
    border-color: #4a90e2;
    background: linear-gradient(135deg, white 0%, #f0f7ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.15);
}

.form-control:focus {
    outline: none;
    border-color: #4a90e2;
    background: white;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.12);
    transform: translateY(-2px);
}

/* Улучшенная зона загрузки */
.file-upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.file-upload-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.file-upload-area:hover::before {
    opacity: 1;
}

.file-upload-area:hover {
    border-color: #4a90e2;
    background: linear-gradient(135deg, white 0%, #f0f7ff 100%);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.18);
}

.file-upload-area.drag-over {
    border-color: #50c878;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    transform: scale(1.03);
    box-shadow: 0 14px 36px rgba(80, 200, 120, 0.25);
}

.file-upload-icon {
    font-size: 4.5rem;
    color: #4a90e2;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(74, 144, 226, 0.2));
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

.file-upload-text h3 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.file-upload-text p {
    color: #7f8c8d;
    margin: 0.6rem 0 2rem;
    font-size: 1rem;
}

/* Кнопки с градиентами */
.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    padding: 0.95rem 2.2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.25);
    font-size: 1rem;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #4e555b 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(108, 117, 125, 0.35);
}

.btn-primary {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #357abd 0%, #2868a8 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(74, 144, 226, 0.45);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Файл информация */
.file-info {
    text-align: center;
    animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f5e9 100%);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.file-info p {
    font-size: 1.15rem;
    color: #2c3e50;
    margin-bottom: 1.8rem;
    font-weight: 600;
}

.file-info i {
    color: #4a90e2;
    margin-right: 0.7rem;
    font-size: 1.4rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.btn-remove-file {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 0.85rem 1.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.25);
}

.btn-remove-file:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.35);
}

/* Процесс обработки */
.processing-editor {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f5e9 100%);
    border-radius: 16px;
    margin-top: 2rem;
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.1);
}

.processing-editor h3 {
    color: #4a90e2;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Результаты */
.editor-result {
    margin-top: 2.5rem;
    animation: fadeInUp 0.6s ease-out;
}

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

.success-card {
    border-left: 5px solid #50c878;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #50c878 0%, #40a863 100%);
    color: white;
    padding: 1.5rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.card-body {
    padding: 2rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .editor-section {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .editor-header h1 {
        font-size: 1.75rem;
    }
    
    .file-upload-area {
        padding: 2.5rem 1.5rem;
        min-height: 180px;
    }
    
    .file-upload-icon {
        font-size: 3.5rem;
    }
    
    .btn-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
