/* layout.css - 5-Area MP3Tag Window Layout with Resizable Panels */
#app-container {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Header & Menu Bar */
#top-bar {
  flex-shrink: 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

#menu-bar {
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  background-color: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
}

.menu-item {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  position: relative;
}

.menu-item:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

/* Workspace main grid: Left Tree, Center Datagrid, Right Tag Edit Panel */
#workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Resizer splitters */
.resizer-h {
  width: 5px;
  background: transparent;
  cursor: col-resize;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  transition: background var(--transition-fast);
}

.resizer-h:hover, .resizer-h.resizing {
  background: var(--accent);
}

/* Area 2: Library Explorer (Left) */
#sidebar-explorer {
  width: var(--sidebar-width);
  min-width: 160px;
  max-width: 480px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Area 3: Main Datagrid Container (Center) */
#main-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-main);
  min-width: 300px;
}

/* Area 4: Edit Side Panel (Right) */
#edit-panel {
  width: var(--editpanel-width);
  min-width: 240px;
  max-width: 550px;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Area 5: Status Bar (Bottom) */
#status-bar {
  height: var(--statusbar-height);
  flex-shrink: 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11px;
  color: var(--text-secondary);
}
