/* Copyright 2026 Martin Janecke. Licensed under the EUPL-1.2 or later. */

/* Indicate when the interpreter is busy */

html.wait * {
  cursor: wait !important;
}

/* Left sidebar with controls */

body {
  margin-left: 3em;
}
aside {
  background: #868A8888;
  bottom: 0;
  box-sizing: border-box;
  color: #DDD;
  left: 0;
  min-height: 100%;
  padding: 10px 0;
  position: fixed;
  text-align: center;
  top: 0;
  width: 2.8em;
}
aside ul {
  list-style-type: none;
  margin: 1em 0;
  padding: 0;
}
aside li:first-child {
  margin-bottom: 1em;
}
aside a {
  color: inherit;
  display: block;
}
aside [data-label] {
  padding: 3px 0;
  position: relative;
}
aside [data-label]:hover {
  background: #444;
}
aside [data-label]:hover::after {
  align-items: center;
  background: inherit;
  border-bottom-right-radius: 8px;
  border-top-right-radius: 8px;
  bottom: 0;
  content: attr(data-label);
  display: flex;
  left: 2.8em;
  padding: 0 10px;
  position: absolute;
  top: 0;
  width: max-content;
}
[data-theme] {
  cursor: pointer;
}
[data-theme] span {
  border-radius: 50%;
  display: inline-block;
  height: 1.25em;
  width: 1.25em;
}
[data-theme="pale"] span {
  background-color: #FFF;
}
[data-theme="dark"] span {
  background-color: #073642;
}
[data-theme="day"] span {
  background-color: #eee8d5;
}
[data-theme="dusk"] span {
  background: linear-gradient(to right, #eee8d5, #073642);
}
[data-theme="dawn"] span {
  background: linear-gradient(to right, #073642, #eee8d5);
}

/* Textbox for posts at the bottom */

main {
  display: flex;
  flex-direction: column;
}
dl {
  flex: 1;
}
textarea {
  background: var(--east-msg-ground);
  box-sizing: border-box;
  border: thin solid var(--message-border);
  border-radius: 8px;
  border-bottom-right-radius: 0;
  color: var(--east-msg-color);
  field-sizing: content;
  font-family: "Noto Sans Mono", "Noto Mono", "Droid Sans Mono", monospace, monospace;
  font-size: large;
  min-height: calc(3lh + 12px);
  margin: 0;
  padding: 5px 10px;
  resize: vertical;
  width: 100%;
}
textarea::placeholder {
  color: var(--east-space-color);
}

/* Export button */

.buttons {
  padding: 5px 10px;
  text-align: right;
}
.buttons button {
  color: var(--east-msg-color);
  cursor: pointer;
  display: contents;
}
.buttons button:hover {
  color: var(--east-digit-color);
}

/* Export dialog */

dialog::backdrop {
  background-color: #0008;
}
dialog {
  background: #868A88;
  border-style: none;
  border-radius: 8px;
}
dialog > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
dialog button {
  background: #DDD;
  color: #333;
  display: block;
  font: inherit;
  line-height: 1.4;
  text-align: inherit;
  max-width: max(20em, 50vw);
  border: thin solid;
  border-style: none;
  border-radius: 8px;
  padding: 5px 10px;
}
dialog button:last-of-type {
  text-align: center;
}

dialog button:hover {
  background: #444;
  color: #EEE;
  cursor: pointer;
}

/* End */