/* 生成记录页面样式 */


/* 容器样式 */
.record-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#generateRecordView{
    /* height: 100%; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
/* 标签栏样式 */
.record-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 12px;
    /* margin: 0 auto; */
    z-index: 99;
    /* box-shadow: var(--shadow-hover); */
}

.record-filters,.pagination{

    padding: 12px;
    backdrop-filter: blur(var(--blur-background));
    -webkit-backdrop-filter: blur(var(--blur-background));
    transition: backdrop-filter 2s ease;
    border-radius: var(--border-radius-t2);
    border: var(--border-light);
}

.lightbox-header ,.lightbox-footer{
    backdrop-filter: blur(var(--blur-background));
    -webkit-backdrop-filter: blur(var(--blur-background));
    transition: backdrop-filter 2s ease;
    
}

.tabs {
    display: flex;
    gap: 12px;
    /* border-bottom: 1px solid #ddd; */
}

.tab-button {
    padding: 6px 12px;
}

.tab-button:hover {
    color: var(--color-button-secondary-text-active);
}

.tab-button.active {
    color: var(--color-button-secondary-text-active);
}


/* 内容面板样式 */
.records-content {
    position: relative;
    flex: 1;
    /* height: 100%; */
}

.tab-pane {
    display: none;
    height: 100%;
}

.tab-pane.active {
    /* display: block; */
    height: 100%;    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 瀑布流容器 */
.waterfall-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}


/* 音频预览 */
.audio-preview {
    width: 100%;
    padding: 20px;
    background-color: #f5f5f5;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-preview audio {
    width: 100%;
}

/* 记录信息 */
.record-info {
    padding: 12px;
}

.record-title {
    margin-bottom: 8px;
}

.record-time, .record-status {
    font-size: 12px;
    margin-bottom: 4px;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Lightbox 样式 */
.lightbox-container {
    position: fixed;
    display: flex;
    flex-direction: column;
    background-color: var(--color-background-secondary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-default);
    width: 60%;
    height: 70%;
    top: 15%;
    left: 20%;
    z-index: 1000;
    overflow: hidden;
    border: var(--border-light);
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--color-background-secondary);
    border-bottom: var(--border-light);
    cursor: move;
}

.lightbox-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox-controls {
    display: flex;
}

.lightbox-button {
    border: none;
    background: var(--color-button-secondary);
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
    color: var(--color-primary-text);
}

.lightbox-button:hover {
    color: var(--color-primary-text);
}

.lightbox-body {
    flex: 1;
    overflow: auto;
    position: relative;
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-video {
    max-width: 100%;
    max-height: 100%;
}

.lightbox-audio {
    width: 90%;
}

.lightbox-footer {
    padding: 10px 15px;
    background-color: var(--color-background-secondary);
    border-top: var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lightbox-info {
    color: var(--color-header-text);
    font-size: 12px;
}

.resize-handle {
    width: 10px;
    height: 10px;
    cursor: nwse-resize;
    background-color: var(--color-header-text);
    border-radius: 50%;
}

/* 最小化状态 */
.lightbox-container.minimized {
    height: 40px !important;
    width: 300px !important;
    bottom: 0;
    top: auto;
    left: 0;
}

.lightbox-container.minimized .lightbox-body,
.lightbox-container.minimized .lightbox-footer {
    display: none;
}

/* 最大化状态 */
.lightbox-container.maximized {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    border-radius: 0;
}


.batch-info {
    font-size: 14px;
    color: var(--color-primary-text);
}

.batch-actions {
    display: flex;
    gap: 10px;
}

.batch-delete-btn, .batch-cancel-btn {
    padding: 6px 12px;
    border: none;
    border-radius: var(--border-radius-t3);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s var(--transition-spring);
}

.batch-delete-btn {
    background-color: var(--color-accent);
    color: white;
}

.batch-cancel-btn {
    background-color: var(--color-button-secondary);
    color: var(--color-primary-text);
}

.batch-delete-btn:hover, .batch-cancel-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--color-button-secondary-text-active);
}

.delete-record-btn {
    background-color: transparent;
    border: none;
    color: #f44336;
    cursor: pointer;
    padding: 5px;
    border-radius: var(--border-radius-t3);
    transition: all 0.3s var(--transition-spring);
}

.lightbox-info-container{
    font-size: 0.7em;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 4px 15px;
    gap: 4px;
    color: var(--color-primary-text);
    background-color: var(--color-background-secondary);
    border-top: var(--border-light);
    border-bottom: var(--border-light);
}
.lightbox-prompt-id-text{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
}
.lightbox-prompt-id-time{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
}
.lightbox-prompt-id-start_time , .lightbox-prompt-id-end_time , .lightbox-prompt-id-generation_time{
    display: flex;
    gap: 4px;
}

/* 3D模型记录项样式 */
/* .model3d-item {
    position: relative;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #fff;
    cursor: pointer;
}

.model3d-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.model3d-container {
    position: relative;
    padding-bottom: 100%;
    background-color: #f0f0f0;
    overflow: hidden;
}

.model3d-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555;
}

.model3d-icon {
    font-size: 64px;
    margin-bottom: 10px;
    color: #4285f4;
}

.model3d-label {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
} */

/* 堆叠效果 */
/* .stacked-models::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border-radius: 8px;
    background-color: #f0f0f0;
    z-index: -1;
}

.stacked-models::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    border-radius: 8px;
    background-color: #e0e0e0;
    z-index: -2;
} */

/* Lightbox中的3D模型查看器样式 */
.lightbox-model3d {
    width: 100%;
    height: 100%;
    min-height: 500px;
    position: relative;
    background-color: #222;
    border-radius: 4px;
    overflow: hidden;
}

.model3d-preview,.audio-preview{
    height: 100%;
    display: flex;
    font-size: 50px;
    align-items: center;
    justify-content: center;
    background: var(--color-background-secondary);
}

/* .model-loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.model-loading-indicator i {
    font-size: 24px;
} */

/* 多文件指示器 */
.multi-file-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 优化复选框样式 */
.record-checkbox {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    /* background-color: var(--color-background-secondary);
    backdrop-filter: blur(var(--blur-foreground));
    -webkit-backdrop-filter: blur(var(--blur-foreground));
    border: var(--border-light);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-default); */
    transition: all 0.3s var(--transition-spring);
}

.record-checkbox:hover {
    transform: scale(1.1);
}

/* .record-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--color-button-secondary-text);
    background-color: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.record-checkbox input[type="checkbox"]:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.record-checkbox input[type="checkbox"]:checked::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
} */

.select-all-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.select-all-checkbox input[type="checkbox"] {
    /* appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid var(--color-button-secondary-text);
    background-color: transparent;
    cursor: pointer; */
    position: relative;
    transition: all 0.3s ease;
}

/* .select-all-checkbox input[type="checkbox"]:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.select-all-checkbox input[type="checkbox"]:checked::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
} */

@media screen and (max-width: 768px) {
    .tab-button{
        /* padding: 0px; */
    }
}