/* 隐藏左边栏 */
.main-container-left {
    display: none !important;
}
.main-container-right {
    width: 100% !important;
    margin-left: 0 !important;
}
.records-container {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}
.records-header {
    margin-bottom: 30px;
}
.records-header h1 {
    font-size: 28px;
    color: #303133;
    margin-bottom: 10px;
}
.records-header p {
    color: #909399;
    font-size: 14px;
}
.filter-bar {
    margin-bottom: 20px;
    background: #f5f7fa;
    border-radius: 8px;
}
.status-tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}
.status-processing {
    background: #e6a23c;
    color: #fff;
}
.status-success {
    background: #67c23a;
    color: #fff;
}
.status-failed {
    background: #f56c6c;
    color: #fff;
}
.file-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
}
.file-icon.image {
    background: #409eff;
}
.file-icon.midi {
    background: #67c23a;
}
.file-icon.musicxml {
    background: #e6a23c;
}
.file-icon.pdf {
    background: #f56c6c;
}
.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.file-name {
    font-size: 14px;
    color: #303133;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-meta {
    font-size: 12px;
    color: #909399;
}
.format-arrow {
    color: #c0c4cc;
    margin: 0 8px;
}
.format-info {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.format-text {
    color: #606266;
    font-size: 14px;
    white-space: nowrap;
}
.action-buttons {
    display: flex;
    gap: 8px;
}
.pagination-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state img {
    width: 120px;
    opacity: 0.5;
    margin-bottom: 20px;
}
.empty-state p {
    color: #909399;
    font-size: 14px;
}
.record-card {
    margin-bottom: 15px;
    transition: all 0.3s;
}
.record-card:hover {
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
}
.record-main {
    display: flex;
    align-items: center;
    gap: 20px;
}
.record-file {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.file-detail {
    min-width: 0;
}
.record-status {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.record-action {
    flex-shrink: 0;
    width: 140px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}
.record-files {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ebeef5;
}
.file-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f7fa;
    gap: 20px;
}
.file-item:last-child {
    border-bottom: none;
}
.file-item-info {
    flex: 1;
    min-width: 0;
}
.file-item-name {
    color: #606266;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-item-actions {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}
/* 预览弹窗样式 */
.preview-dialog .el-message-box__content {
    padding: 20px;
}
.preview-image {
    max-width: 100%;
    max-height: 500px;
    display: block;
    margin: 0 auto;
}
.preview-audio {
    width: 100%;
    margin: 20px 0;
}
.preview-file-name {
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
    color: #303133;
}
.login-tip {
    text-align: center;
    padding: 100px 20px;
}
.login-tip p {
    color: #909399;
    font-size: 16px;
    margin-bottom: 20px;
}
/* 按钮统一样式 - 增大尺寸 */
.record-action .el-button,
.file-item-actions .el-button {
    padding: 8px 16px;
}

/* 移除按钮focus白色背景 */
.record-action .el-button:focus,
.file-item-actions .el-button:focus {
    color: #fff;
}
.record-action .el-button--primary:focus {
    background-color: #409eff;
    border-color: #409eff;
}
.record-action .el-button--success:focus {
    background-color: #67c23a;
    border-color: #67c23a;
}
.record-action .el-button--danger:focus {
    background-color: #f56c6c;
    border-color: #f56c6c;
}
.file-item-actions .el-button--primary:focus {
    background-color: #409eff;
    border-color: #409eff;
}
.file-item-actions .el-button--success:focus {
    background-color: #67c23a;
    border-color: #67c23a;
}

/* 高亮记录样式 */
.highlight-record {
    animation: highlight-pulse 3s ease-in-out;
}

@keyframes highlight-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(64, 158, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(64, 158, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(64, 158, 255, 0);
    }
}

@media (max-width: 768px) {
    .records-container {
        padding: 10px;
    }
    .records-header h1 {
        font-size: 20px;
    }
    .filter-bar {
        padding: 10px;
    }
    .filter-bar .el-radio-group {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }
    .filter-bar .el-radio-button__inner {
        padding: 6px 10px;
        font-size: 12px;
    }
    .record-main {
        flex-wrap: nowrap;
        gap: 8px;
    }
    .record-file {
        gap: 8px;
    }
    .file-name {
        max-width: 100px;
        font-size: 12px;
    }
    .file-meta {
        font-size: 10px;
    }
    .file-icon {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }
    .record-file {
        flex: 1;
        min-width: 0;
    }
    .record-status {
        display: none !important;
    }
    .record-action {
        width: auto;
        flex-shrink: 0;
    }
    .file-item {
        gap: 8px;
    }
    .file-item-info {
        flex: 1;
        min-width: 0;
    }
    .file-item-actions .el-button {
        padding: 4px 8px;
        font-size: 11px;
    }
    .status-tag {
        padding: 2px 6px;
        font-size: 10px;
        white-space: nowrap;
    }
}
