/* 专业版任务完成界面样式 */

/* 模态框整体设计 */
.complete-task-modal-pro .modal-dialog {
    max-width: 900px;
}

.complete-task-modal-pro .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* 渐变顶部栏 */
.complete-task-modal-pro .modal-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 25px 30px;
    border: none;
    position: relative;
    overflow: hidden;
}

.complete-task-modal-pro .modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.complete-task-modal-pro .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.complete-task-modal-pro .modal-title i {
    font-size: 1.8rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9));
    }
}

/* 进度指示器 */
.task-progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 15px;
}

.task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 步骤指示器 */
.step-indicators {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0 15px;
    margin-bottom: 20px;
    position: relative;
}

.step-indicators::before {
    content: '';
    position: absolute;
    top: 42px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, #d1d5db 100%);
    z-index: 0;
    transition: all 0.5s ease;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 3px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #9ca3af;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-indicator.active .step-circle {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.step-indicator.completed .step-circle {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
}

.step-indicator.completed .step-circle i {
    animation: check-bounce 0.5s ease;
}

@keyframes check-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    text-align: center;
    transition: all 0.3s ease;
}

.step-indicator.active .step-label {
    color: #10b981;
    font-weight: 700;
}

.step-indicator.completed .step-label {
    color: #059669;
}

/* 任务信息卡片 */
.task-info-card-pro {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #a7f3d0;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.task-info-card-pro::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.task-info-card-pro .card-title {
    color: #059669;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-info-card-pro .card-title i {
    font-size: 1.3rem;
}

.task-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.task-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
}

.task-info-label {
    font-weight: 600;
    color: #047857;
    white-space: nowrap;
    min-width: 90px;
}

.task-info-value {
    color: #1f2937;
    flex: 1;
    font-weight: 500;
}

.task-info-value code {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* 步骤区域 */
.step-section-pro {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.step-section-pro:hover {
    border-color: #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
}

.step-section-pro.active {
    border-color: #10b981;
    background: linear-gradient(to bottom, #ffffff 0%, #f0fdf4 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.step-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-section-title i {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.step-section-title .badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    animation: pulse-badge 2s ease-in-out infinite;
}

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

/* 提示框增强 */
.alert-pro {
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.alert-pro i {
    font-size: 1.3rem;
    margin-top: 2px;
}

.alert-pro.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.alert-pro.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.alert-pro.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

/* 文件上传区域 */
.file-upload-area {
    border: 3px dashed #d1d5db;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-upload-area:hover {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.15);
}

.file-upload-area.drag-over {
    border-color: #059669;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    transform: scale(1.02);
}

.file-upload-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.file-upload-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.file-upload-hint {
    font-size: 0.9rem;
    color: #6b7280;
}

.file-preview {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    border: 2px solid #10b981;
    display: none;
    animation: slideInUp 0.3s ease;
}

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

.file-preview.show {
    display: block;
}

.file-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.file-preview-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f3f4f6;
    border-radius: 8px;
}

.file-preview-name {
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-preview-name i {
    color: #10b981;
}

.file-remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.file-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* 智能生成按钮 */
.smart-generate-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.smart-generate-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.smart-generate-btn i {
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 0.8;
    }
}

/* 表单控件增强 */
.form-control-pro,
.form-select-pro {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control-pro:focus,
.form-select-pro:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    outline: none;
}

.form-control-pro.is-valid {
    border-color: #10b981;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

/* 复选框美化 */
.form-check-pro {
    padding-left: 2.5rem;
}

.form-check-pro .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-pro .form-check-input:checked {
    background-color: #10b981;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.form-check-pro .form-check-label {
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
}

/* 底部按钮栏 */
.complete-task-modal-pro .modal-footer {
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
    padding: 20px 30px;
    border-top: 2px solid #e5e7eb;
    gap: 15px;
}

.btn-submit-pro {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 14px 40px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-submit-pro::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-submit-pro:hover::before {
    width: 300px;
    height: 300px;
}

.btn-submit-pro:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.6);
}

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

.btn-submit-pro:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-cancel-pro {
    background: white;
    border: 2px solid #d1d5db;
    color: #6b7280;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel-pro:hover {
    border-color: #9ca3af;
    background: #f9fafb;
    color: #374151;
}

/* 加载状态 */
.btn-submit-pro.loading {
    pointer-events: none;
}

.btn-submit-pro.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 成功提交动画 */
@keyframes success-bounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.submit-success-icon {
    font-size: 4rem;
    color: #10b981;
    animation: success-bounce 0.6s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .complete-task-modal-pro .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }
    
    .task-info-grid {
        grid-template-columns: 1fr;
    }
    
    .step-indicators::before {
        left: 25px;
        right: 25px;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .btn-submit-pro {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* 暗黑模式支持 */
@media (prefers-color-scheme: dark) {
    .task-info-card-pro {
        background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
        border-color: #059669;
    }
    
    .step-section-pro {
        background: #1f2937;
        border-color: #374151;
    }
    
    .step-section-pro.active {
        background: linear-gradient(to bottom, #1f2937 0%, #064e3b 100%);
    }
    
    .file-upload-area {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
        border-color: #374151;
    }
    
    .file-upload-area:hover {
        background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
        border-color: #10b981;
    }
}
/* ==================== 模板选择样式 ==================== */
.template-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.template-item {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.template-item:hover {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.template-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #059669;
}

.template-header i {
    font-size: 1.2rem;
}

.template-header strong {
    font-size: 1rem;
    color: #111827;
}

.template-preview {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    white-space: pre-wrap;
}

.template-item:hover .template-preview {
    color: #374151;
}

/* 文件预览样式增强 */
.file-preview {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 2px solid #10b981;
    border-radius: 12px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.file-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.file-preview-info {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-preview-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #059669;
    font-weight: 500;
}

.file-preview-name i {
    color: #10b981;
}

.file-remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.file-remove-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.file-upload-area.dragover {
    border-color: #10b981 !important;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    transform: scale(1.02);
}