body {
  font-family: sans-serif;
  margin: 1em;
}

form {
  margin-bottom: 1em;
}

#topMessageBox {
  margin-top: 1em;
}

/* Header container with logo and content side-by-side */
#headerWrapper {
  display: flex;
  align-items: flex-start; /* align logo top with title */
  gap: 1em;              /* space between logo and content */
  margin-bottom: 1.5em;    /* space below header before messages */
}

#logoBox img {
  max-width: 100%;
  height: auto;
  display: block;
}

#logoBox {
  float:left;
  margin-right: 2em;
  top: 1em;
  left: 1em;
  width: 120px;        /* adjust size */
  height: auto;
  flex: 0 0 120px; /* fixed width for logo column */
}

#logoBox { position: relative; }

#lastUpdate{
  position: absolute;
  left: 6px;
  bottom: -30px;
  font-size: 12px;
  font-weight: bold;
  opacity: 0.7;
  line-height: 1;
  white-space: nowrap;
}

#headerContent {
  flex: 1; /* take the remaining width */
  margin-top: 0;
  margin-bottom: 0; /* default is often ~1em */
}

#pageHeader {
  margin-left: 0px; /* shift only this section */
}

#uploadForm input[type="file"],
#uploadForm input[type="submit"] {
  display: inline-block;
  margin-left: 0;  /* ensure left alignment */
  margin-top: 0.5em;  /* small vertical gap below the file input */
}

/* Base URI input label: one size smaller than default */
label.baseuri-label {
    font-size: 0.9em;
}

.box {
  margin-top: 1.5em;
  padding: 1em;
  border-radius: 6px;
}

.box.download {
  background: #f0f9f0;
  border: 1px solid #9c9;
}

.box.error {
  background: #f9f0f0;
  border: 1px solid #c99;
  color: #900;
}

.box.info {
  background: #eef;
  border: 1px solid #99f;
  color: #036;
}

.user-notes {
  margin: 1em 0 1em 0;
  padding: .5em 1em;
  border-left: 4px solid #cc9;
  background: #f9f9f9;
  font-size: 0.9em;
  color: #333;
}

.user-notes ul li {
  margin-bottom: 0.75em; /* space after each list item */
}

footer {
  margin-top: 3em;
  padding-top: 1em;
  font-size: 0.85em;
  color: #666;
  border-top: 1px solid #ccc;
  text-align: left;
}
footer a {
  color: #666;
  text-decoration: underline;
}
footer img {
  margin-top: 0.5em;
  border: none;
}

/* post-processing block inside success box */

.post-actions {
  margin-top: 1em;
  padding-top: 0.5em;
  border-top: 1px solid #cde;
}

.post-actions h3 {
  margin-top: 0;
  font-size: 1.05em;
}

.post-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5em 0 0.5em 0;
}

.post-list li {
  margin-bottom: 0.4em;
}

.small-btn {
  display: inline-block;
  margin-top: 0.5em;
  padding: 0.35em 0.8em;
  background: #f0f0f0;
  border: 1px solid #bbb;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85em;
}

.small-btn:hover {
  background: #e7e7e7;
}

