* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #000;
  height: 100vh;
  overflow: hidden;
}

.container {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 320px;
  border-right: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  background: #fafafa;
  transition: transform 0.3s ease;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.toggle-sidebar {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 100;
  width: 40px;
  height: 40px;
  background: #000;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-sidebar svg {
  width: 20px;
  height: 20px;
  color: #fff;
  transition: transform 0.3s ease;
}

.toggle-sidebar:hover {
  background: #333;
}

.sidebar.hidden ~ .toggle-sidebar svg {
  transform: rotate(180deg);
}

.breadcrumb {
  padding: 16px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 13px;
  background: #fff;
  overflow-x: auto;
  white-space: nowrap;
}

.breadcrumb-item {
  display: inline-block;
  cursor: pointer;
  color: #666;
  transition: color 0.15s;
}

.breadcrumb-item:hover {
  color: #000;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #999;
}

.file-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
  margin-bottom: 2px;
}

.file-item:hover {
  background: #f0f0f0;
}

.file-item.active {
  background: #000;
  color: #fff;
}

.file-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
}

.pdf-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  flex-shrink: 0;
}

.file-name {
  font-size: 14px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
  flex: 1;
}

.pdf-badge {
  display: inline-block;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 3px;
  margin-left: 8px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.file-item.active .pdf-badge {
  background: #fff;
  color: #000;
}

.viewer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.empty-state {
  text-align: center;
  color: #999;
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 14px;
}

#pdfViewer {
  width: 100%;
  height: 100%;
  border: none;
}


@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: 50vh;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .sidebar.hidden {
    transform: translateY(-100%);
  }
  
  .toggle-sidebar {
    top: auto;
    bottom: 16px;
  }
  
  .viewer {
    height: 50vh;
  }
}