/* dashboard.css - 仪表盘/管理后台页面样式 */

/* 侧边栏样式 */
.sidebar {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.sidebar .nav-link {
    color: #666;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    border: none;
}

.sidebar .nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.sidebar .nav-link.active {
    background-color: #007bff;
    color: white;
}

/* 内容区域样式 */
.content-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.5s ease;
}

/* 表格样式 */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #333;
    padding: 15px;
}

.table td {
    border: none;
    padding: 15px;
    vertical-align: middle;
}

.table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 表格样式优化 */
.table thead.table-light {
    background-color: #f8f9fa;
}

.table thead th {
    font-weight: 500;
    color: #495057;
}

/* 上传区域样式 */
.upload-area {
    border: 2px dashed #007bff;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    background-color: #f8f9ff;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #0056b3;
    background-color: #f0f4ff;
}

.upload-area.dragover {
    border-color: #28a745;
    background-color: #f0fff4;
}

.upload-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.upload-content h5 {
    color: #333;
    margin-bottom: 0.5rem;
}

/* 文件列表样式 */
.file-list {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
}

.file-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e0e0e0;
}

.file-name {
    font-weight: 500;
    color: #333;
}

.file-size {
    font-size: 0.875rem;
}

/* 进度条样式 */
.progress {
    height: 6px;
    border-radius: 3px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #007bff;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* 分页样式 */
.pagination-container {
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    color: #666;
    border-color: #dee2e6;
    min-width: 40px;
    text-align: center;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

/* 搜索框样式 */
.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-left: none;
    border-color: #e0e0e0;
}

/* 筛选栏样式 */
.filter-bar {
    background-color: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-item {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.filter-label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.filter-item .form-control,
.filter-item .form-select {
    min-width: 180px;
    height: 38px;
}

.filter-bar .btn {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 上传蒙版样式 */
.upload-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.upload-status-box {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.upload-progress-list {
    margin: 20px 0;
}

.upload-item {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.upload-item .filename {
    font-weight: 500;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-item .progress {
    height: 10px;
    margin-top: 5px;
}

.upload-summary {
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
    text-align: center;
}

.upload-summary p {
    margin: 5px 0;
    font-weight: 500;
}

/* 文件图标颜色 */
.bi-file-earmark-image {
    color: #28a745;
}

.bi-file-earmark-play {
    color: #dc3545;
}

.bi-file-earmark-music {
    color: #6f42c1;
}

.bi-file-earmark-text {
    color: #007bff;
}

.bi-file-earmark {
    color: #6c757d;
}

/* 卡片阴影效果 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        margin-bottom: 1rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
}