html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
}

button,
input {
  font-family: 'Inter', sans-serif;
}

a {
    text-decoration: none;
    color: #2582DF;
    font-family: 'Inter', sans-serif;
}

a:hover {
  text-decoration: underline;
}

.btn--primary:hover {
  background-color: #2582DF;
  transition: background-color 0.2s ease;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 0.91px solid #CED4DA;
  border-radius: 4px;
  background-color: #fff;
  margin: 0;
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
}

input[type="checkbox"]:hover {
  border-color: #3D9EFF;
}

input[type="checkbox"]:focus {
  outline: none;
}

input[type="checkbox"]:checked {
  background-color: #3D9EFF;
  border-color: #3D9EFF;
}

input[type="checkbox"]:checked {
  background-color: #3D9EFF;
  border-color: #3D9EFF;
}

.remember .check-icon {
  position: absolute;
  left: 3px;
  top: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.remember input[type="checkbox"]:checked + .check-icon {
  opacity: 1;
}

.img-edit-menu label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: #4B5563;
  font-family: Inter, sans-serif;
  font-size: 12px;
  transition: color 0.2s ease;
}

.img-edit-menu input[type="radio"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 0.7px solid #E9ECEF;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.img-edit-menu input[type="radio"]:checked {
  border: 4px solid #3D9EFF;
}

.img-edit-menu label.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.img-edit-menu label.disabled input[type="radio"] {
  pointer-events: none;
}

.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 120px 0;
}

.welcome h2 {
  margin-top: 28px !important;
  margin-bottom: 6px !important;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: #4B5563;
}

.welcome p {
  font-size: 14px;
  line-height: 20px;
  color: #616C7D;
  margin: 0;
}

.inline-code-text * {
  all: unset;
}

.editor-content {
  overflow-x: auto;
  max-width: 100%;
   position: static !important;
  z-index: auto !important;
}

.editor-toolbar .color-dropdown,
.editor-toolbar .heading-dropdown,
.editor-toolbar .justify-dropdown,
.editor-toolbar .table-picker {
  position: absolute;
  z-index: 9999;
}

.editor-content a {
  color: #3D9EFF;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  cursor: pointer;
}

.editor-content a:hover {
  color: #1E6FE3;
}

.link-tooltip input {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.editor-content::selection {
  background: #E9F1FF;
  color: inherit;
}

.editor-content *::selection {
  background: #E9F1FF;
  color: inherit;
}

.inline-code-text {
  white-space: pre-wrap;
  display: inline-block;
}

.editor-content table[contenteditable="true"]:focus {
  outline: none;
}

.code-area {
  position: relative;
  min-height: 20px;
  font-family: monospace;
  font-size: 12px;
  color: #2C3541;
  outline: none;
}

.code-area:empty::before {
  content: attr(data-placeholder);
  color: #AEB4BD;
  pointer-events: none;
  position: absolute;
  left: 14px;
  top: 12px;
}

.inline-code-text:empty::before {
  content: attr(data-placeholder);
  color: #AEB4BD;
  pointer-events: none;
  font-family: 'Inter';
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
  overflow: hidden;
  visibility: hidden;
}

.preloader.visible {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.preloader.hidden {
  display: none;
}

.app-loader {
  position: relative;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 255, 255, 0.7) 0, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 78% 18%, rgba(208, 233, 255, 0.95) 0, rgba(208, 233, 255, 0) 30%),
    radial-gradient(circle at 72% 78%, rgba(156, 206, 255, 0.48) 0, rgba(156, 206, 255, 0) 34%),
    linear-gradient(140deg, #eef7ff 0%, #cfe5ff 42%, #a5ccff 100%);
  overflow: hidden;
}

.app-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 42%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.55) 50%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: loader-shimmer 1.6s linear infinite;
  z-index: 5;
}

.app-loader::after {
  content: "";
  position: absolute;
  inset: auto auto 12% 10%;
  width: min(34vw, 440px);
  height: min(34vw, 440px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 72%);
  filter: blur(10px);
  opacity: 0.9;
  animation: loader-float 6s ease-in-out infinite;
}

@keyframes loader-shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

@keyframes loader-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -12px, 0) scale(1.06);
  }
}

.loader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 84px;
  height: 84px;
  border-radius: 18px;
  background: #3b9cff;
  color: #ffffff;
  font-size: 38px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 20px 44px rgba(59, 156, 255, 0.28),
    0 0 0 10px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .app-loader {
    width: 100vw;
    height: 100vh;
  }

  .loader-logo {
    width: 72px;
    height: 72px;
    font-size: 32px;
    border-radius: 16px;
  }
}
