/* 全局样式 */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

#app {
    display: flex;
    flex-direction: column;/* 垂直排列 */
    height: 100vh;/* 占满整个视口高度 */
    font-family: Arial, sans-serif;
}

.file-manager-buttons {
    display: flex;
    gap: 5px;
}
/* 左右窗口容器 */
.type-windows {
  position: relative; /* Required for absolute positioning of child elements */
  display: flex;
  flex-direction: row;
  flex: 1;
  overflow: hidden;
}
/* 左右窗口 */
.type-window {
    flex: 1;/* 左右窗口平分宽度 */
    padding: 10px;/* 内边距 */
    overflow-y: auto;/* 内容过多时显示滚动条 */
    border-right: 1px solid #ddd;/* 分隔线 */
    white-space: nowrap; /* 防止内容换行 */
    position: relative; /* 确保按钮相对于窗口定位 */
}

/* 最后一个窗口不需要分隔线 */

.type-window:last-child {
    border-right: none;
}

/* 提高优先级 */
#app .type-windows {
  display: flex !important;
  flex-direction: row !important;
}


@media (max-width: 768px) {
  .type-windows {
    flex-direction: column; /* 窄屏幕下垂直排列 */
  }
  .type-window {
    border-right: none;
    border-bottom: 1px solid #ddd;
  }
}

/* 折叠按钮样式 */
.collapse-btn {
  margin: 5px;
  padding: 5px 10px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.collapse-btn:hover {
  background-color: #0056b3;
}

/* 折叠状态样式 */
.type-window.collapsed {
  flex: 0 0 50px; /* 折叠后宽度 */
  overflow: hidden; /* 隐藏内容 */
}

.collapsed {
  display: none; /* or any other style you prefer */
}

.floating-buttons {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

.collapse-buttons-center {
  position: absolute;
  top: 10px; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Adjust for exact center */
  display: flex;
  gap: 10px; /* Space between buttons */
  z-index: 10; /* Ensure buttons are above other content */
}

#left-window, #right-window {
    transition: all 0.3s ease;
}

#left-window.fullscreen, #right-window.fullscreen {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    background-color: white;
}

/* Full-screen button styling */
.fullscreen-btn {
  position: absolute;
  top: 10px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
  font-size: 16px;
  cursor: pointer;
  z-index: 10; /* Ensure the button is above other content */
  padding: 5px;
  transition: color 0.3s ease;
}

/* Left full-screen button */
.left-fullscreen-btn {
  left: 10px; /* Position at the extreme left */
}

/* Right full-screen button */
.right-fullscreen-btn {
  right: 20px; /* Position at the extreme right */
}

.fullscreen-btn:hover {
  color: rgba(255, 255, 255, 1); /* Fully opaque on hover */
}

/* Ensure the button is visible in full-screen mode */
#left-window.fullscreen .fullscreen-btn,
#right-window.fullscreen .fullscreen-btn {
  color: rgba(0, 0, 0, 0.7); /* Semi-transparent black in full-screen mode */
}

#left-window.fullscreen .fullscreen-btn:hover,
#right-window.fullscreen .fullscreen-btn:hover {
  color: rgba(0, 0, 0, 1); /* Fully opaque on hover in full-screen mode */
}

.export-container { 
  display: flex; 
  overflow-x: auto; 
  gap: 20px; 
}