/* 导出页面专用样式 */

/* 表单选择框样式 */
.form-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-select:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    outline: none;
}

/* 自定义尺寸组 */
#custom-size-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

#custom-size-group label {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #4a5568;
}

#custom-size-group input {
    margin-bottom: 0;
}

/* 复选框组样式 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #4a5568;
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: #2d3748;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #4299e1;
    border-color: #4299e1;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* 文本域样式 */
textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
}

textarea:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    outline: none;
}

/* 状态指示器 */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 10px 0;
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-processing {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-success {
    background-color: #d1fae5;
    color: #065f46;
}

.status-failed {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-cancelled {
    background-color: #f3f4f6;
    color: #374151;
}

/* 任务信息卡片 */
.task-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.task-info-card h4 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1.1rem;
}

.task-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.task-info-row:last-child {
    border-bottom: none;
}

.task-info-label {
    font-weight: 600;
    color: #4a5568;
}

.task-info-value {
    color: #2d3748;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #4299e1, #3182ce);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* 文件信息 */
.file-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.file-info h5 {
    margin: 0 0 10px 0;
    color: #0369a1;
    font-size: 1rem;
}

.file-info p {
    margin: 5px 0;
    color: #0c4a6e;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #custom-size-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .checkbox-group {
        gap: 10px;
    }
    
    .task-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .task-info-value {
        text-align: left;
        max-width: 100%;
    }
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.processing-animation {
    animation: pulse 2s infinite;
}

/* 成功状态特殊样式 */
.success-highlight {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    color: #065f46;
}

.success-highlight .result-title {
    color: #047857;
}

/* 错误状态特殊样式 */
.error-highlight {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    color: #991b1b;
}

.error-highlight .result-title {
    color: #dc2626;
}

/* 测试功能样式 */
.test-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.test-section h4 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-description {
    color: #4a5568;
    font-size: 0.9rem;
    margin: 0 0 15px 0;
}

.test-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.test-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.test-loading {
    text-align: center;
    padding: 20px;
    color: #4a5568;
}

.test-result {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.test-result.success-highlight {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
}

.test-result.error-highlight {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
}

/* 邮件状态信息样式 */
.email-status-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.email-status-info h5 {
    margin: 0 0 10px 0;
    color: #0369a1;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
