/* main.css - Clean, minimal UI styles */

/* Base styles */
body, html {
  background: #f7f7f7;
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
}

/* Card/Container */
.max-w-6xl, .bg-white, .rounded-xl, .shadow, .p-4, .mt-4 {
  border-radius: 8px !important;
  box-shadow: none !important;
  margin: 0 auto !important;
  padding: 4px 4px !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 8px 0 !important;
  font-weight: 600;
}

/* Form fields */
input, select, textarea {
  border-radius: 4px !important;
  border: 1px solid #d1d5db !important;
  padding: 4px 8px !important;
  margin: 0 !important;
  box-shadow: none !important;
  background: #f9f9f9 !important;
}
input:focus, select:focus, textarea:focus {
  outline: 1.5px solid #7f5af0 !important;
  border-color: #7f5af0 !important;
  background: #fff !important;
}

label {
  margin-bottom: 2px !important;
  font-size: 0.98rem;
}

/* Button */
button, .btn, input[type="submit"] {
  border-radius: 4px !important;
  box-shadow: none !important;
  padding: 5px 6px !important;
  font-weight: 600;
  color: #fff !important;
  border: none !important;
  transition: background 0.15s;
}
button:hover, .btn:hover, input[type="submit"]:hover {
  background: #1d4ed8 !important;
}

/* Table */
table {
  border-collapse: collapse !important;
  width: 100% !important;
  background: #fff !important;
}
th, td {
  padding: 6px 8px !important;
  border: 1px solid #e5e7eb !important;
  text-align: center;
}
th {
  background: #232526 !important;
  color: #fff !important;
}

/* Remove excessive spacing from grid/gap */
.grid, .gap-8, .gap-4, .gap-2 {
  gap: 8px !important;
}
.p-4, .py-2, .px-4, .mt-6, .mb-8, .mt-8, .mb-4 {
  padding: 8px !important;
  margin: 0 !important;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  background: #f3f4f6;
}
::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 4px;
}

/* Markdown style for explanations */
.markdown-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
  padding: 1em 0.5em;
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgb(0 0 0 / 0.04);
  margin-bottom: 1.5em;
}
.markdown-body > *:not(:last-child) {
  margin-bottom: 1.1em;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  font-weight: bold;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  color: #1d3557;
  line-height: 1.2;
}
.markdown-body h1 {
  font-size: 1.6em;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.2em;
}
.markdown-body h2 {
  font-size: 1.3em;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.15em;
}
.markdown-body h3 {
  font-size: 1.1em;
}
.markdown-body ul, .markdown-body ol {
  margin-left: 1.7em;
  margin-bottom: 1em;
}
.markdown-body p {
  margin-bottom: 1em;
}
.markdown-body code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.97em;
  color: #b80000;
}
.markdown-body pre {
  background: #f3f4f6;
  border-radius: 6px;
  padding: 0.8em 1em;
  overflow-x: auto;
  margin-bottom: 1em;
}
.markdown-body blockquote {
  border-left: 4px solid #a5b4fc;
  background: #eef2ff;
  color: #444;
  margin: 1em 0;
  padding: 0.7em 1.2em;
  border-radius: 6px;
  font-style: italic;
}
.markdown-body table {
  border-collapse: collapse;
  margin: 1.2em 0;
  width: 100%;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.03);
}
.markdown-body th, .markdown-body td {
  border: 1px solid #e5e7eb;
  padding: 0.6em 1em;
}
.markdown-body th {
  background: #f1f5f9;
  font-weight: 600;
}

#debug-log-content {
    background: #181818 !important;
    color: #fff !important;
    border: 1.5px solid #444 !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    caret-color: #fff !important;
}
