.turbo-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  z-index: 9999;
  transition: width 300ms ease-out, opacity 150ms ease-in;
  transform: translate3d(0, 0, 0);
}

/* EasyMDE Preview Styles */
.editor-preview, .editor-preview-side {
  padding: 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

.editor-preview h1, .editor-preview-side h1 {
  font-size: 2em;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

.editor-preview h2, .editor-preview-side h2 {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 0.8em;
  margin-bottom: 0.4em;
  line-height: 1.3;
}

.editor-preview h3, .editor-preview-side h3 {
  font-size: 1.25em;
  font-weight: 600;
  margin-top: 0.6em;
  margin-bottom: 0.3em;
  line-height: 1.4;
}

.editor-preview ul, .editor-preview-side ul {
  list-style-type: disc;
  margin-left: 1.5em;
  margin-bottom: 1em;
  padding-left: 0.5em;
}

.editor-preview ol, .editor-preview-side ol {
  list-style-type: decimal;
  margin-left: 1.5em;
  margin-bottom: 1em;
  padding-left: 0.5em;
}

.editor-preview li, .editor-preview-side li {
  margin-bottom: 0.25em;
}

.editor-preview p, .editor-preview-side p {
  margin-bottom: 1em;
}

.editor-preview strong, .editor-preview-side strong {
  font-weight: 700;
}

.editor-preview em, .editor-preview-side em {
  font-style: italic;
}

.editor-preview a, .editor-preview-side a {
  color: #2563eb;
  text-decoration: underline;
}

.editor-preview code, .editor-preview-side code {
  background-color: #f3f4f6;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
}

.editor-preview pre, .editor-preview-side pre {
  background-color: #f3f4f6;
  padding: 1em;
  border-radius: 5px;
  overflow-x: auto;
  margin-bottom: 1em;
}

.editor-preview pre code, .editor-preview-side pre code {
  background-color: transparent;
  padding: 0;
}

@media print {
  .no-print {
    display: none !important;
  }

  nav {
    display: none !important;
  }

  .alert, [role="alert"] {
    display: none !important;
  }

  body {
    margin: 0;
    padding: 0;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .shadow, .rounded-lg, .border {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .p-6, .mb-6 {
    padding: 0 !important;
    margin-bottom: 1rem !important;
  }

  /* Force background colors to print for progress bars */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
