html, body {
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

.container {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 240px;
  background: #2c3e50;
  color: #ecf0f1;
  padding: 20px;
  box-sizing: border-box;
}

.sidebar h2 {
  margin: 0 0 20px;
  font-size: 18px;
}

.nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav li {
  margin-bottom: 8px;
}

.nav a {
  color: #ecf0f1;
  text-decoration: none;
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f5f6fa;
}

.header {
  padding: 12px 24px;
  border-bottom: 1px solid #ddd;
  background: #fff;
}

#viewer-container {
  flex: 1;
  position: relative;
  background: #000;
}

#viewer {
  width: 100%;
  height: 100%;
}

button {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #eee;
}

/* --- Controls panel --- */
#controls {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.85);
  padding: 10px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 300px;
  font-size: 13px;
}

#controls .button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#controls .meta-group {
  background: rgba(240, 240, 240, 0.8);
  padding: 5px;
  border-radius: 4px;
}

#controls .meta-line {
  font-weight: bold;
}

#controls .meta-text {
  font-family: monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 3px;
}

#controls .jump-group {
  display: flex;
  gap: 5px;
  align-items: center;
}


.meta-table {
    width: 100%;
    border-collapse: collapse;
    font-family: monospace;
    font-size: 13px;
}

    .meta-table td {
        padding: 2px 4px;
        vertical-align: top;
    }

.meta-label {
    text-align: right;
    font-weight: bold;
    white-space: nowrap;
    color: #000; /* looks good on dark metadata panel */
}

.meta-value {
    text-align: left;
    padding-left: 8px;
    color: #111;
    font-size: 8pt;
}

/*
.meta-thumb {
    margin-top: 10px;
}

.meta-thumb-img {
    max-width: 200px;
    margin-top: 6px;
    border: 1px solid #444;
    border-radius: 3px;
}
*/