html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.52), rgba(17, 24, 39, 0.82)),
    url("/admin-assets/login-background.jpeg") center/cover no-repeat;
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 50%, rgba(248, 113, 113, 0.16), transparent 32%),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.08), transparent 18%);
  pointer-events: none;
}

.hero-lines {
  position: absolute;
  inset: 0 auto 0 0;
  width: 36%;
  pointer-events: none;
}

.hero-line {
  position: absolute;
  border: 1px solid rgba(248, 113, 113, 0.5);
  transform: skewX(-28deg);
}

.hero-line.line-a {
  inset: 4% auto auto -9%;
  width: 22rem;
  height: 16rem;
}

.hero-line.line-b {
  inset: 18% auto auto 1.5rem;
  width: 14rem;
  height: 9rem;
}

.hero-line.line-c {
  inset: 40% auto auto -4.5rem;
  width: 19rem;
  height: 16rem;
}

.hero-line.line-d {
  inset: 66% auto auto -6rem;
  width: 21rem;
  height: 12rem;
}

.panel-glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.grid-table {
  border-collapse: separate;
  border-spacing: 0;
}

.grid-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.designer-scroll,
.sidebar-scroll {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.designer-scroll::-webkit-scrollbar,
.sidebar-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.designer-scroll::-webkit-scrollbar-thumb,
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.preview-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}

.tablet-stage {
  min-height: min(72vh, 800px);
}

.inline-editable {
  cursor: text;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.inline-editable:hover {
  background: rgba(255, 255, 255, 0.12);
}

.inline-editable:focus {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.12);
}

.dashboard-button {
  cursor: pointer;
}

.dashboard-button.layout-editable {
  cursor: default;
}

.drag-handle {
  cursor: move !important;
  position: relative;
  z-index: 41;
  pointer-events: auto;
}

.drag-handle:active {
  cursor: grabbing !important;
}

.resize-handle {
  cursor: nwse-resize !important;
  position: relative;
  z-index: 40;
  pointer-events: auto;
}

.resize-handle:active {
  cursor: nwse-resize !important;
}

.dashboard-button.compact .drag-handle {
  top: 0.35rem !important;
  left: 0.35rem !important;
  padding: 0.2rem 0.45rem !important;
  border-radius: 0.7rem !important;
  font-size: 9px !important;
  line-height: 1 !important;
}

.dashboard-button.compact .resize-handle {
  bottom: 0.35rem !important;
  right: 0.35rem !important;
  width: 1.6rem !important;
  height: 1.6rem !important;
  border-radius: 0.7rem !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

.color-chip {
  border: 1px solid #cbd5e1;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #fff;
}

.color-chip input[type="color"] {
  appearance: none;
  border: 0;
  width: 100%;
  height: 2.75rem;
  background: transparent;
  padding: 0;
}

.color-chip input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-chip input[type="color"]::-webkit-color-swatch {
  border: 0;
}

.danger-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.02em;
}
