/* PDF页面反转工具样式 */
.pdf-reverse-tool {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: 22px;
    margin-bottom: 10px;
}

.pdf-reverse-tool .header {
    padding-bottom: 0 !important;
}

.pdf-reverse-tool .header h2 {
    font-size: 17px;
    color: #333;
    border-left: 4px solid #17a2b8;
    padding-left: 10px;
}

/* 文件上传区域 */
.file-upload-area {
    border: 2px dashed #ced4da;
    background-color: #f8f9fa;
    min-height: 200px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
    margin-bottom: 20px;
}

.file-upload-area:hover {
    border-color: #6f42c1;
    background-color: #f8f5ff;
}

.file-upload-area.dragover {
    border-color: #6f42c1;
    background-color: #f0e6ff;
}

.file-upload-area .upload-icon {
    font-size: 48px;
    color: #6c757d;
}

.file-upload-area .upload-text {
    text-align: center;
    color: #495057;
}

.file-upload-area .upload-text p {
    margin: 5px 0;
}

/* 按钮样式 */
.btn-group-reverse {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.btn-reverse {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reverse-primary {
    background-color: #6f42c1;
    color: white;
}

.btn-reverse-primary:hover {
    background-color: #5a32a3;
}

.btn-reverse-primary:disabled {
    background-color: #adb5bd;
    cursor: not-allowed;
}

.btn-reverse-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-reverse-secondary:hover {
    background-color: #545b62;
}

/* 文件信息预览 */
.file-info-panel {
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    display: none;
}

.file-info-panel .file-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
}

.file-info-panel .file-meta {
    font-size: 13px;
    color: #6c757d;
}

/* 处理状态 */
.processing-status {
    text-align: center;
    padding: 20px;
    display: none;
}

.processing-status .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6f42c1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-status p {
    color: #495057;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .file-upload-area {
        min-height: 150px;
        padding: 15px;
    }
    
    .btn-group-reverse {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-reverse {
        width: 100%;
        justify-content: center;
    }
}

/* 示例区域 */
.example-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #e7f5ff;
    border-radius: 8px;
    border: 1px solid #b8daff;
}

.example-section h4 {
    color: #0c5460;
    margin-bottom: 10px;
    font-size: 15px;
}

.example-section p {
    color: #0c5460;
    font-size: 13px;
    margin-bottom: 10px;
}

/* 下载提示 */
.download-hint {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
    color: #155724;
    font-size: 13px;
    display: none;
}

.download-hint i {
    margin-right: 8px;
}