/* layout.css */
.zib-123pan-container-layout {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 100%;
    font-size: 12px;
    height: 80vh;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.directory-layout {
    flex: 1;
    height: calc(100% - 60px);
    position: relative;
    display: flex;
}

.directory-panel {
    width: 250px;
    height: 100%;
    background: #f8f9fa;
    border-right: 1px solid #e1e5e9;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.panel-header {
   
    background: #337ab7;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.panel-title {
    font-weight: 600;
    color: #ffffff !important;
    font-size: 16px;
    flex: 1;
    text-align: center;
    cursor: default;
    user-select: none;
}

.sidebar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 10;
}

.sidebar-toggle:hover {
    background: #edf2f7;
    color: #2d3748;
}

.preview-panel {
    flex: 1;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
}

/* 目录面板折叠状态 */
.directory-layout.collapsed .directory-panel {
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

.directory-layout.collapsed .directory-panel .folder-children-container,
.directory-layout.collapsed .directory-panel .directory-panel-placeholder,
.directory-layout.collapsed .directory-panel .panel-title,
.directory-layout.collapsed .directory-panel .filter-section,
.directory-layout.collapsed .directory-panel .sidebar-toggle,
.directory-layout.collapsed .directory-panel .panel-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.preview-panel {
    flex: 1;
    height: 100%;
    overflow: hidden;
    background: #ffffff;
}

.folder-children-container {
    flex: 1;
    overflow-y: auto;
    padding: 5px 0;
}

#pdf-preview-area {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

.preview-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
    font-size: 16px;
    background: #f8f9fa;
}

.pdf-preview-container {
    width: 100% !important;
    height: 100% !important;
}

.pdf-viewer-iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}