body {
  background: #f5f5f5;
  color: #111;
  cursor: auto;
  font-family: Verdana, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
#main_wrapper {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
}
#editor_wrapper, #preview_wrapper { overflow: auto; }
#editor {
  height: 100%; width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #C5C8C6 transparent;
}
#preview {
  font-size: .85rem;
  max-width: 72em;
  margin: 0 auto;
  padding: 1rem;
}
@media (max-width: 999px) {
  #editor_wrapper, #preview_wrapper { flex: 1 1 500px; }
  #editor_wrapper { min-height: 40vh; }
}
@media (min-width: 1000px) {
  #editor_wrapper, #preview_wrapper {
    height: 100vh;
  }
}
/* .ace_text-input { top: 0px !important; } weird display bug with Split */

/* SPLIT */

.gutter { display: none; }
@media (min-width: 1000px) {
  .split {
    display: flex;
    flex-direction: row;
  }
  .gutter {
    display: block;
    background-color: #eee;
    background-color: #1D1F21;
    background-repeat: no-repeat;
    background-position: 50%;
  }
  .gutter.gutter-horizontal {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==');
    cursor: col-resize;
  }
}

/* MODAL */

.modal {
  display: none; /* hidden by default */
  position: fixed;
  left: 0; top: 0;
  z-index: 10;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: min(100%,600px);
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}



/* TOAST STYLES */

/* container */
.toast-container {
  position: fixed;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  z-index: 1000;
  max-width: calc(100% - 40px);
}

.toast-bottom-right {
  bottom: 20px;
  right: 20px;
}

/* toast */
.toast {
  display: flex;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  max-width: 400px;
  overflow: hidden;
  animation: slideIn 0.3s ease-out;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  flex: 1;
}

.toast-icon { font-size: 18px; }
.toast-message { flex: 1; font-size: 14px; }

.toast-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  margin: 0; padding: 0; box-shadow: none;
}
.toast-close:hover { opacity: 1; }

/* Progress bar */
.toast-progress {
  height: 4px;
  background: rgba(255,255,255,0.3);
}
.toast-progress-bar {
  height: 100%;
  background: rgba(255,255,255,0.8);
  animation: shrink var(--duration, 3s) linear forwards;
}

/* Variants */
.toast-success { background: #10b981; color: #fff; }
.toast-error { background: #ef4444; color: #fff; }
.toast-warning { background: #f59e0b; color: #fff; }
.toast-info { background: #3b82f6; color: #fff; }

/* Animations */
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

@keyframes shrink {
  from { width: 100%; }
  to { width: 0%; }
}

.toast-exit {
  animation: slideOut 0.3s ease-in forwards;
}

/* Mobile */
@media (max-width: 480px) {
  .toast-container {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  .toast {
    min-width: auto;
    max-width: none;
    width: 100%;
  }
}