/* Base (dark-ish) */
:root {
  --bg: #11161c;        /* lighter than #0b0f14 */
  --panel: #19212b;     /* softened */
  --text: #d5dde4;       /* less stark than pure white */
  --muted: #8d99a5;
  --accent: #3da9fc;
  --border: #2a3747;
  --ok: #2ea043;
}

/* Light: warm, paper-like */
[data-theme="light"] {
  --bg: #f5f2e8;        /* warm beige */
  --panel: #fffdf7;     /* paper white */
  --text: #332e26;      /* dark brownish */
  --muted: #6c6457;
  --accent: #7b5d00;    /* gold-ish accent */
  --border: #d6d0c3;
}



* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
}


#json_output_outer{
  background: var(--panel);
  border: 10px solid var(--border);
  position:fixed;
  width:60vw;
  height:40vh;
  top:30vh;
  left:20vw;
  z-index:4000;
  padding:10px;
}

#json_output_semiouter{
  overflow-y: auto;
  overflow-x: clip;
  height:90%;
  padding:10px;

}


.app-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.app-header h1 {
  margin: 0;
  font-size: 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  margin-bottom:5px;
}
.panel h2 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 18px;
}

#list-section{
  display:none;
}

#result-section{
  display:none;
}

.controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

input[type="search"] {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

button {
  padding: 10px 14px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
button:hover { filter: brightness(1.05); }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
}
.data-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
.data-table tbody tr:hover { background: rgba(61, 169, 252, 0.06); }

.empty { color: var(--muted); margin-top: 8px; }

/* Theme toggle */
.theme-toggle {
  margin-left: auto;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 10px;
}

/* Results area */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  min-height: 56px;
  margin-bottom:15px;
}


.resulting_stuff{
  display:flex;
  flex-direction: row;
  justify-content:start;
}

.resulting_stuff div{
  margin-right:10px;
  border:2px solid var(--border);
  padding:10px;
  border-radius:10px;
}


/* Term card */
.term-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  user-select: none;
  position: relative;
}
.term-card .drag-handle {
  position: absolute;
  top: 8px;
  right: 8px;
  color: var(--muted);
  cursor: grab;
}
.term-card.sortable-chosen { box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
.term-card.sortable-ghost { opacity: 0.5; }

.term-notation { color: var(--accent); }
.term-foci { color: var(--muted); }
.term-verbal { font-weight: 700; color: var(--text); }



.remove-card {
  position: absolute;
  top: 4px;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted, #aaa);
  cursor: pointer;
  font-size: 1em;
  line-height: 1;
  padding: 3px;
  transition: color 0.2s ease, transform 0.1s ease;
}


.remove-card:hover {
  color: var(--accent-color, #f55);
  transform: scale(1.2);
}
/* Drag placeholder */
.term-placeholder {
  border: 2px dashed var(--accent);
  border-radius: 10px;
  height: 56px;
}


.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  padding: 0.75rem 1rem;
  margin-top:10px;
  border-radius: 0.375rem;
  font-size: 0.95rem;
}
.warning::before {
  content: "⚠️ ";
  font-weight: bold;
}


.warning.hidden {
  opacity: 0;
  display: none;
}

main{
    padding-bottom:300px!important;
}

footer{
  padding:10px;
  position:fixed;
  bottom:0px;
  width:100vw;
}

#syntaxBtn{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    font-weight: bold;
}

