@font-face {
  font-family: Vazirmatn;
  font-style: normal;
  font-weight: 400;
  src: local('Vazirmatn'), local('Vazirmatn-Regular');
}

:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-2: #0b1220;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --border: #1f2937;
  --success: #34d399;
  --warn: #fbbf24;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--bg), var(--panel-2));
  color: var(--text);
  font-family: Vazirmatn, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Noto Sans', 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

header { text-align: center; margin-bottom: 16px; }

h1 { margin: 0; font-size: 28px; }

.subtitle { margin-top: 6px; color: var(--muted); }

.judge-section, .inputs-section, .history-section { margin-top: 24px; }

.judge-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.judge-box .label { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.judge-box .content { font-size: 16px; white-space: pre-wrap; }

.judge-box.verdict { border-color: var(--success); }
.judge-box.request { border-color: var(--warn); }
.judge-box.neutral { opacity: 0.9; }

.judge-actions { display: inline-block; margin-top: 12px; margin-left: 8px; }

.columns.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.col.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.stack { display: grid; gap: 8px; }

textarea, input[type="url"], input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
}

input[type="file"] {
  cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 8px;
}

small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

label { font-size: 14px; color: var(--muted); }

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: #0b1220;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.btn.primary { border-color: var(--accent); color: var(--accent); }
.btn.subtle { color: var(--muted); }

.history-section h2 { margin-bottom: 8px; }

.history-columns { align-items: start; }
.history-col h3 { margin-top: 0; margin-bottom: 8px; color: var(--muted); }

.item-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.item-box .meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.item-box .text { white-space: pre-wrap; }
.item-box .link a { color: var(--accent); text-decoration: none; }
.item-box .link a:hover { text-decoration: underline; }

.file-info {
  margin-top: 8px;
  padding: 8px;
  background: rgba(34, 211, 238, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.file-content {
  margin-top: 6px;
}

.file-content details {
  cursor: pointer;
}

.file-content summary {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 6px;
}

.file-content pre {
  background: var(--panel-2);
  padding: 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 200px;
  overflow-y: auto;
  margin: 0;
}

footer { margin-top: 32px; text-align: center; color: var(--muted); }

@media (max-width: 800px) {
  .columns.two { grid-template-columns: 1fr; }
}