body {
  background-color: #f8f9fa;
  padding: 20px;
}

.card {
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.legal-pad {
  background-color: #fefadf;
  min-height: 80vh;
  position: relative;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-tabs {
  border-bottom: 1px solid rgba(255, 215, 0, 0.5);
  padding: 8px 8px 0 8px;
}

.nav-tabs .nav-link {
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 8px 24px;
  font-weight: 500;
  text-transform: capitalize;
  margin-right: 4px;
  background-color: #fff9c4;
  color: #333333;
  border: 1px solid transparent;
  border-bottom: none;
  transition: all 0.2s;
}

.nav-tabs .nav-link:hover {
  background-color: #fff176;
  border-color: rgba(255, 215, 0, 0.5);
}

.nav-tabs .nav-link.active {
  background-color: #ffeb3b;
  color: #000000;
  border-color: #ffd700;
  position: relative;
  z-index: 1;
  transform: translateY(1px);
}

.nav-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #ffeb3b;
}

.tab-content {
  position: relative;
}

.tab-pane {
  min-height: 80vh;
  position: relative;
}

.red-margin {
  position: absolute;
  left: 48px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(220, 53, 69, 0.5);
  box-shadow: 0 0 1px rgba(185, 28, 28, 0.5);
}

.horizontal-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(#b8b8b8 1px, transparent 1px);
  background-size: 100% 24px;
  background-position: 0 0;
}

textarea {
  width: 100%;
  min-height: 80vh;
  padding: 24px;
  padding-left: 64px;
  background-color: transparent;
  resize: none;
  font-size: 1rem;
  line-height: 24px;
  border: none;
}

textarea:focus {
  outline: none;
  box-shadow: none;
}

.shortcut-hint {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #6c757d;
}

kbd {
  background-color: #f8f9fa;
  border-radius: 3px;
  border: 1px solid #dee2e6;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
  color: blue;
  padding: 2px 6px;
  font-size: 0.75rem;
  font-family: monospace;
}

.shortcuts-help {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 16px;
  font-size: 0.875rem;
  color: #6c757d;
  z-index: 1000;
}

.shortcut-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.shortcut-row:last-child {
  margin-bottom: 0;
}

/* Command palette */
.command-palette {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 500px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 1050;
  display: none;
}

.command-palette-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
}

.command-input {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #dee2e6;
}

.command-input input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px;
  font-size: 1rem;
}

.command-input input:focus {
  outline: none;
}

.command-list {
  max-height: 300px;
  overflow-y: auto;
}

.command-group-heading {
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
}

.command-item {
  padding: 8px 16px;
  cursor: pointer;
  text-transform: capitalize;
}

.command-item:hover, .command-item.active {
  background-color: #eee;
}

.command-empty {
  padding: 24px;
  text-align: center;
  color: #6c757d;
}
