.note-timestamp.selected {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Style the list of note timestamps to the left of the textarea */
#main-list {
  display: flex;
  flex-direction: column;
  margin-right: 1rem;
  align-items: flex-end;
  min-width: 180px;
}

.note-timestamp {
  color: orange;
  margin-bottom: 0.5rem;
  text-decoration: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s;
}

.note-timestamp:hover {
  color: #ffd580;
}
/* Center the main container and align items horizontally */
#main-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Style the actions column to the right of textarea */
#main-actions {
  display: flex;
  flex-direction: column;
  margin-left: 1rem;
}

#action-new, #action-save {
  color: #7da2ff;
  margin-bottom: 0.5rem;
  text-decoration: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s;
}

#action-new:hover, #action-save:hover {
  color: #b3d1ff;
}

#action-delete {
  color: #ff4444;
  text-decoration: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s;
}

#action-delete:hover {
  color: #ff8888;
}

textarea#main-textarea {
  background: #222;
  color: #e0e0e0;
  border: 0.5px solid #888;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 30vw;
  min-width: 320px;
  height: 30vh;
  min-height: 200px;
  resize: both;
  display: block;
  margin: 2rem auto;
  box-sizing: border-box;
}

textarea#main-textarea:focus {
  outline: none;
  border-color: #888;
}

input[type="text"], .input-text {
  background: #222;
  color: #e0e0e0;
  border: 0.5px solid #888;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 30vw;
  min-width: 320px;
  height: 30vh;
  min-height: 200px;
  resize: vertical;
  display: block;
  margin: 2rem auto;
  box-sizing: border-box;
}

textarea:focus, .input-textarea:focus, input[type="text"]:focus, .input-text:focus {
  outline: 2px solid gold;
  border-color: gold;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #181a1b;
  color: #e0e0e0;
  font-family: 'Fira Mono', 'JetBrains Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'monospace';
  display: flex;
  align-items: center;
  justify-content: center;
}

main, .center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  min-height: 320px;
  background: #23272a;
  border-radius: 16px;
  box-shadow: 0 4px 32px #000a;
  padding: 2rem 3rem;
}

input[type="password"] {
  background: #222;
  color: #e0e0e0;
  border: 0.5px solid #888;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  font-size: 1.1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="password"]:focus {
  outline: 1px solid #A78BFA;
}

/* Portrait/vertical viewport layout */
@media (orientation: portrait) {
  #main-container {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 500px;
  }

  #main-list {
    margin-right: 0;
    margin-bottom: 1rem;
    align-items: center;
    min-width: auto;
    width: 100%;
  }

  textarea#main-textarea {
    margin: 0 auto 1rem;
    width: 100%;
    min-width: auto;
  }

  #main-actions {
    margin-left: 0;
    flex-direction: column;
    align-items: center;
  }

  #action-new, #action-save {
    margin-bottom: 0;
  }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
