/* ============================================================
   ACE — Token Query Builder
   File: token_query_builder.css
   Location: /css/token_query_builder.css
   ------------------------------------------------------------
   Shared stylesheet for the Token Query Builder page.
   The PHP file should load it with:
   <link rel="stylesheet" href="/css/token_query_builder.css">
   ============================================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  color: #111827;
  background: #f8fafc;
}

h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.box {
  padding: 12px;
  border: 1px solid #d1d5db;
  margin: 10px 0;
  border-radius: 12px;
  background: #ffffff;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.lbl {
  font-weight: 700;
  margin-right: 4px;
}

select,
input[type="text"],
input:not([type]),
button {
  font: inherit;
}

select,
input[type="text"],
input:not([type]) {
  margin: 2px 4px;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 4px;
}

button {
  padding: 7px 14px;
  border: 1px solid #2563eb;
  border-radius: 8px;
  color: #ffffff;
  background: #2563eb;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

hr {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 12px 0;
}

.ara {
  font-family: "Amiri", "Scheherazade New", "Noto Naskh Arabic", serif;
  font-size: 32px;
  direction: rtl;
  unicode-bidi: isolate;
  line-height: 1.9;
}

.lat {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.small {
  font-size: 12px;
  color: #4b5563;
}

.flag {
  color: #b91c1c;
  font-weight: 700;
}

.dbg {
  background: #fafafa;
  border: 1px dashed #9ca3af;
  padding: 10px;
  border-radius: 10px;
  margin-top: 10px;
}

.stickyWrap {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  padding-top: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e5e7eb;
}

pre.small {
  white-space: pre-wrap;
  overflow-x: auto;
}

a.lat {
  color: #1d4ed8;
  text-decoration: none;
}

a.lat:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  body {
    padding: 10px;
  }

  .row {
    align-items: flex-start;
  }

  select {
    max-width: 100%;
  }

  .ara {
    font-size: 28px;
  }
}
