/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    margin-bottom: 20px;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

/* 表格样式 */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* 图片预览样式 */
.img-preview {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
/* 上传进度条样式 */
#uploadProgress {
    margin-top: 10px;
    height: 20px;
}

#progressBar {
    transition: width 0.3s ease;
}

/* 上传任务面板样式 */
#uploadTasksPanel {
    margin-top: 20px;
}

#uploadTasksList {
    max-height: 300px;
    overflow-y: auto;
}
/* 按钮样式 */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* 文件上传区域 */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

/* 移动端优化 */
@media (max-width: 576px) {
    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}
/* 添加移动端专用样式 */
@media (max-width: 768px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .card {
        margin-bottom: 10px;
    }
    
    .btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    /* 导航栏优化 */
    .navbar-brand {
        font-size: 1rem;
    }
    
    /* 表格优化 */
    table {
        font-size: 0.8rem;
    }
    
    /* 按钮组优化 */
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
    }
}

/* 添加触摸反馈 */
.btn:active {
    transform: scale(0.98);
}
/* 增强交互体验 */
.btn {
    transition: all 0.2s ease;
}

.btn:active {
    transform: scale(0.95);
}

/* 文件上传预览 */
.file-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.file-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.file-preview img, .file-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
}

/* 拍照/录像按钮样式 */
.camera-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .camera-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .file-preview {
        width: 80px;
        height: 80px;
    }
}
/* 加载动画 */
#loadingOverlay {
    transition: opacity 0.3s ease;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 拍照按钮突出显示 */
.btn-camera {
    background-color: #4e73df;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}

.btn-camera:hover {
    background-color: #2e59d9;
    color: white;
}
/* 拍照按钮样式 */
.camera-btn {
    border: 2px dashed #6c757d;
    background-color: rgba(108, 117, 125, 0.05);
    transition: all 0.3s;
}

.camera-btn:hover {
    background-color: rgba(108, 117, 125, 0.1);
    border-color: #0d6efd;
}

/* 回收站表格样式 */
#trashTable th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
}

/* 文件上传区域 */
.file-input-label {
    cursor: pointer;
    transition: all 0.2s;
}

.file-input-label:hover {
    transform: translateY(-2px);
}
/* 搜索结果样式 */
.search-results {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-result-item {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.form-group {
    position: relative;
}