body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 250px;
  background-color: #2c3e50;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #ecf0f1;
  object-fit: cover;
  margin-bottom: 20px;
  align-self: center;
  margin-left: -20px;
}

.sidebar h2 {
  margin-top: 0;
  font-size: 1.2em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
  width: 100%;
  text-align: left;
  padding-left: 5px;
}

.menu-item {
  cursor: pointer;
  margin: 10px 0;
  width: 100%;
  text-align: left;
  padding: 6px 8px 6px 20px;
  background-color: #34495e;
  border-radius: 4px;
  position: relative;
}

.menu-item::before {
  content: "+";
  position: absolute;
  left: 5px;
  top: 6px;
  font-weight: bold;
}

.menu-item.active::before {
  content: "-";
}

.submenu {
  margin-left: 25px;
  display: none;
  width: 100%;
}

.menu-item.active + .submenu {
  display: block;
}

.submenu-item {
  cursor: pointer;
  margin: 5px 0;
  font-size: 0.9em;
  color: #bdc3c7;
  padding: 4px 6px;
  border-radius: 3px;
}

.submenu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.submenu-item.active {
  background-color: #1abc9c;
  color: #fff;
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ecf0f1;
}

.viewer {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #ecf0f1;
  position: relative;
}

.viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
  cursor: grab;
}

.sidebar-controls {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-row {
  display: flex;
  justify-content: space-around;
}

.control-row button {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s ease;
}

.control-row button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 5px 0;
}
