

* {
  box-sizing: border-box; /* Ensures border and padding are part of width/height */
}

html, body {
  overflow-x: hidden; 
}

h2 {
  text-align: center;
}

.layout-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 20px;
  width: 100%; 
}

.procedure-header {
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px; 
}

.options-container {
  flex-basis: 25%;
  height: 600px; 
  overflow-y: auto; 
}

.dictation-container {
  padding: 6px;
  flex-basis: 75%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-radius: 8px;
  height: 600px; 
}


.preview-input,
.dictation-output {
  width: 100%; 
  resize: none; 
  font-size: 16px; 
  border: 2px solid black; 
  box-shadow: 5px 5px grey; 
  background-color: white; 
  border-radius: 4px;
}

.dictation-output {
  height: 350px;
}

.preview-input {
  margin-bottom: 10px;
  min-height: 180px;
  resize: vertical;
}

.preview-box button {
  margin-right: 10px;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 4px;
}

.option-button {
  display: block; 
  margin-bottom: 10px; 
  padding: 10px 15px; 
  background-color: #343b47;
  color: #fff; 
  border: none; 
  border-radius: 4px; 
  cursor: pointer; 
  text-align: left; 
  width: 100%; 
}

.option-button.selected-option {
  background-color: #facc15;
  color: #111;
  border: 2px solid #111;
}


.button {
  display: inline-block;
  border: none;
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.button-green {
  background-color: #28a745; 
}

.button-green:hover {
  background-color: #218838; 
}

.button-red {
  background-color: #dc3545; 
}

.button-red:hover {
  background-color: #c82333; 
}

.shortcut-help-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  background: #fafafa;
  font-size: 12px;
  line-height: 1.2;
}

.shortcut-help-inline span {
  white-space: nowrap;
}

.shortcut-help-inline kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  border: 1px solid #bbb;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 4px;
  background: #fff;
}

body.procedures-show .content-container {
  max-width: 96vw;
  padding-left: 16px;
  padding-right: 16px;
}

body.procedures-show .options-container { flex-basis: 30%; }
body.procedures-show .dictation-container { flex-basis: 70%; }
