/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

/* Custom styles for dialog centering */
dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] pre,
html[dir="rtl"] code,
html[dir="rtl"] .ltr {
  direction: ltr;
  text-align: left;
}

.md-docs {
  color: #0f172a;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-width: 0;
}

.developer-shell {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.developer-console,
.developer-console * {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.developer-shell aside {
  min-width: 0;
  overscroll-behavior: contain;
}

.developer-shell main,
.developer-shell aside {
  min-height: 0;
}

.developer-shell main {
  overscroll-behavior: contain;
}

.developer-locale-menu summary::-webkit-details-marker {
  display: none;
}

.developer-mode-menu summary::-webkit-details-marker,
.developer-app-menu summary::-webkit-details-marker,
.developer-workspace-menu summary::-webkit-details-marker {
  display: none;
}

.developer-workspace-menu[open] summary {
  box-shadow: 0 0 0 2px #0a5bd3;
}

.developer-workspace-menu summary:hover {
  box-shadow: 0 0 0 2px rgba(10, 91, 211, 0.18);
}

.developer-locale-menu[open] summary {
  border-color: #cbd5e1;
}

.developer-shell .shadow-sm,
.developer-shell [class*="shadow-["] {
  overflow: visible;
}

.developer-top-icon {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #64748b;
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  transition: background-color 160ms ease, color 160ms ease;
  width: 2.5rem;
}

.developer-top-icon:hover {
  background: #f8fafc;
  color: #0f172a;
}

.toast-leave {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.md-docs > * + * {
  margin-top: 1rem;
}

.md-docs h1,
.md-docs h2,
.md-docs h3,
.md-docs h4,
.md-docs h5,
.md-docs h6 {
  color: #020617;
  font-weight: 900;
  line-height: 1.15;
}

.md-docs h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-top: 0;
}

.md-docs h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  padding-top: 1rem;
}

.md-docs p,
.md-docs li {
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.md-docs ul {
  margin: 0;
  padding-left: 1.25rem;
}

.md-docs a {
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.md-docs a:hover {
  text-decoration: underline;
}

.md-docs code {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  color: #0f172a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
  padding: 0.15rem 0.4rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.md-docs pre {
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
  border: 1px solid #1e293b;
  border-radius: 1.25rem;
  margin: 1.25rem 0;
  overflow-x: auto;
  padding: 1rem;
}

.md-docs pre code {
  background: transparent;
  border: 0;
  color: #e2e8f0;
  display: block;
  font-size: 0.92rem;
  line-height: 1.7;
  padding: 0;
  white-space: pre;
}

.md-docs .tok-keyword {
  color: #7dd3fc;
  font-weight: 700;
}

.md-docs .tok-string {
  color: #86efac;
}

.md-docs .tok-comment {
  color: #94a3b8;
  font-style: italic;
}

.md-docs .tok-number {
  color: #fca5a5;
}

.md-docs-dark {
  color: #e2e8f0;
}

.md-docs-dark h1,
.md-docs-dark h2,
.md-docs-dark h3,
.md-docs-dark h4,
.md-docs-dark h5,
.md-docs-dark h6 {
  color: #f8fafc;
}

.md-docs-dark p,
.md-docs-dark li {
  color: #cbd5e1;
}

.md-docs-dark code {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(148, 163, 184, 0.2);
  color: #bae6fd;
}

.md-docs-dark pre {
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
  border-color: rgba(148, 163, 184, 0.18);
  margin: 0;
}

.md-docs-dark a {
  color: #e2e8f0;
}

.developer-shell .overflow-x-auto::-webkit-scrollbar {
  height: 8px;
}

.developer-shell .overflow-x-auto::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 999px;
}

@media (max-width: 640px) {
  .developer-shell {
    min-height: auto;
    overflow: visible;
  }

  .developer-shell .rounded-\[2rem\] {
    border-radius: 1.5rem;
  }

  .developer-shell .rounded-\[1\.75rem\] {
    border-radius: 1.25rem;
  }

  .developer-shell .rounded-\[1\.5rem\] {
    border-radius: 1.125rem;
  }

  .developer-shell .rounded-\[32px\] {
    border-radius: 1.25rem;
  }

  .developer-shell .rounded-\[30px\] {
    border-radius: 1.125rem;
  }

  .developer-shell .rounded-\[26px\] {
    border-radius: 1rem;
  }

  .md-docs p,
  .md-docs li {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .md-docs pre {
    border-radius: 1rem;
    padding: 0.875rem;
  }

  .md-docs h1 {
    font-size: 1.8rem;
  }

  .md-docs h2 {
    font-size: 1.25rem;
  }

  .developer-shell .text-2xl {
    line-height: 1.2;
  }

  .developer-shell .text-3xl {
    line-height: 1.15;
  }
}
