/* 文件管理器样式 */

.file-manager {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.file-manager-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-manager-title {
    font-weight: 600;
    color: #333;
}

.file-manager-path {
    color: #666;
    font-size: 14px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    padding: 5px 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-link {
    color: #304357;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.breadcrumb-link:hover {
    background: #e3f2fd;
}

.breadcrumb-separator {
    color: #666;
    font-size: 12px;
}

.breadcrumb-current {
    color: #666;
    font-weight: 500;
}

.file-manager-toolbar {
    background: #f8f9fa;
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.toolbar-left,
.toolbar-center,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-center {
    flex: 1;
    justify-content: center;
}

.toolbar-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.toolbar-btn:hover {
    background: #f8f9fa;
    border-color: #304357;
}

.toolbar-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.file-list {
    max-height: 600px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-item:hover {
    background: #f8f9fa;
}

.file-item.selected {
    background: #e3f2fd;
    border-left: 3px solid #304357;
}

.file-checkbox {
    margin-right: 15px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.file-checkbox:checked {
    accent-color: #304357;
}

.file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 24px;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
    word-break: break-all;
}

.file-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 15px;
}

.file-size {
    min-width: 80px;
}

.file-date {
    min-width: 120px;
}

.file-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.file-item:hover .file-actions {
    opacity: 1;
}

.btn {
    padding: 4px 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #304357;
    color: white;
}

.btn-primary:hover {
    background-color: #1e2a38;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.open-btn {
    padding: 3px 6px;
    font-size: 9px;
    background: #304357;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.open-btn:hover {
    background: #1e2a38;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #333;
}

.image-preview {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-preview:hover {
    transform: scale(1.1);
}

.file-item.clickable {
    cursor: pointer;
}

.file-item.clickable:hover {
    background: #e3f2fd;
} 