body {
  font-family: 'Neue Montreal', 'Roboto', 'Arial', sans-serif;
  background: #23272e url('background.png') no-repeat center center fixed;
  background-size: cover;
  color: #f4f6f7;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Layout and container styles */
.main-container {
  background: rgba(30, 34, 40, 0.92);
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
  padding: 40px 32px 32px 32px;
  max-width: 1600px;
  margin: 64px auto 32px auto;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 320px;
  z-index: 10;
}

h1, h2, h3, h4, h5, h6 {
  color: #fb923c;
  margin-top: 0;
  font-family: inherit;
}

label {
  font-size: 1.1em;
  color: #fb923c;
  margin-top: 32px;
  display: block;
}

textarea#schemaInput {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 220px;
  margin: 16px 0 24px 0;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #fb923c;
  background: rgba(30, 34, 40, 0.92);
  color: #f4f6f7;
  font-size: 1.1em;
  box-sizing: border-box;
  resize: vertical;
  display: block;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'Liberation Mono', 'Roboto Mono', 'Courier New', monospace;
}

button#checkBtn {
  background: #fb923c;
  color: #23272e;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.2s;
}
button#checkBtn:hover {
  background: #ea580c;
}

#error, .error-message {
  color: #FFA18F;
  margin: 12px 0 0 0;
  font-weight: bold;
  font-size: 1.1em;
}

#results {
  margin: 32px auto 32px auto;
  width: 100%;
  max-width: 1536px;
}

/* Table styles for results */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: #23272e;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  table-layout: fixed;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  word-break: break-word;
}
th {
  background: #1e2228;
  color: #fb923c;
  font-weight: 600;
  border-bottom: 2px solid #fb923c;
}
th.message-col, td.message-col {
  width: 40%;
  min-width: 320px;
  max-width: 700px;
}
td {
  border-bottom: 1px solid #333842;
}
tr:last-child td {
  border-bottom: none;
}
code {
  background: #23272e;
  color: #fb923c;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 1.05em;
  font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'Liberation Mono', 'Roboto Mono', 'Courier New', monospace;
  border: 1px solid #333842;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  margin: 0 2px;
  vertical-align: middle;
  word-break: break-all;
}
.level-ERROR {
  color: #FFA18F;
  font-weight: bold;
}
.level-WARNING {
  color: #FEE98B;
  font-weight: bold;
}
.level-INFO {
  color: #91C3FD;
  font-weight: bold;
}
#results p {
  color: #fb923c;
  font-size: 1.1em;
  margin: 32px 0 0 0;
  text-align: center;
}

.result-list {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 16px;
}

.result-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 18px 22px;
  background: #23272e;
  border-left: none;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
}

.result-badge {
  position: static;
  min-width: 54px;
  padding: 3px 14px;
  border-radius: 14px;
  font-size: 0.98em;
  font-weight: bold;
  color: #23272e;
  background: #91C3FD;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-right: 24px;
  margin-top: 0;
  margin-bottom: 0;
  align-self: flex-start;
}

.result-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
}

.result-row.info .result-badge { background: #91C3FD; color: #23272e; }
.result-row.warning .result-badge { background: #FDE047; color: #23272e; }
.result-row.error .result-badge { background: #FFA18F; color: #23272e; }

.result-row.info {
  background: linear-gradient(90deg, #91C3FD22 0%, #181b20 100%);
}
.result-row.warning {
  background: linear-gradient(90deg, #FDE04722 0%, #333842 100%);
}
.result-row.error {
  background: linear-gradient(90deg, #FFA18F22 0%, #3c4048 100%);
}

.result-message {
  font-size: 1.08em;
  font-weight: 500;
  color: #f4f6f7;
  margin-bottom: 6px;
  word-break: break-word;
}

.result-details {
  font-size: 0.98em;
  color: #b0b8bf;
  margin-top: 2px;
  word-break: break-word;
}

.result-row:hover {
  background: #181b20;
}

button,
.button {
  font-family: inherit;
  background: #fb923c;
  color: #23272e;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s;
  margin-top: 10px;
}

button:hover,
.button:hover {
  background: #ea580c;
}

a {
  color: #fb923c;
  text-decoration: none;
  transition: text-decoration 0.15s;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.result-toggles {
  display: flex;
  gap: 24px;
  margin: 24px 0 8px 0;
  align-items: center;
  font-size: 1.08em;
  user-select: none;
}
.result-toggles label {
  color: #f4f6f7;
  font-weight: 500;
  cursor: pointer;
}
.result-toggles input[type="checkbox"] {
  accent-color: #fb923c;
  margin-right: 6px;
  vertical-align: middle;
}
.toggle-count {
  color: #fb923c;
  font-weight: bold;
  margin-left: 4px;
  font-size: 0.98em;
}

.schema-toggles-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 18px 0;
  align-items: center;
  font-size: 1.06em;
  user-select: none;
}

.schema-toggle-label {
  color: #f4f6f7;
  font-weight: 500;
  cursor: pointer;
  margin-right: 12px;
  margin-bottom: 4px;
  white-space: nowrap;
}

.schema-toggle-label input[type="checkbox"] {
  accent-color: #fb923c;
  margin-right: 6px;
  vertical-align: middle;
}

.supported-highlight {
  display: inline-block;
  background: #7AB800;
  color: #23272e;
  font-weight: bold;
  border-radius: 8px;
  padding: 4px 16px;
  margin-bottom: 12px;
  margin-top: 8px;
  font-size: 1.12em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* Feedback button styles for inverted look */
.feedback-btn {
  background: #23272e; /* Inverted fill: dark background */
  color: #fb923c;      /* Inverted text: orange text */
  border: 2px solid #fb923c; /* Border matches check button fill */
  border-radius: 8px;
  padding: 10px 30px; /* 2px smaller padding for border */
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.2s, color 0.2s, border 0.2s;
  display: inline-block;
  box-sizing: border-box;
  margin: 0;
  vertical-align: middle;
}
.feedback-btn:hover {
  background: #fb923c;
  color: #23272e;
  border: 2px solid #fb923c;
  text-decoration: none;
}

@media (max-width: 600px) {
  .result-list {
    padding: 0 4px;
  }
  .result-row {
    padding: 12px 8px;
  }
}

@media (max-width: 700px) {
  .logo {
    width: 320px;
    top: 12px;
    right: 12px;
  }
  .main-container {
    padding: 16px 4vw;
    margin: 24px 0 0 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  table, th, td {
    font-size: 0.95em;
  }
  textarea#schemaInput {
    width: 100%;
    min-width: 0;
  }
  #results {
    width: 100%;
    min-width: 0;
  }
}
