/* Found of this SUPERDUPONT */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji',
    'Segoe UI Symbol';
  color: #111;
  background: #fafafa;
}

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

.full-width {
  width: 100%;
  margin-bottom: 1.25rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

h1 {
  margin: 0.25rem 0 0.5rem;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

label {
  display: block;
  font-weight: 600;
  margin: 0.25rem 0;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #fff;
}

button {
  appearance: none;
  border: 1px solid #1f6feb;
  background: #1f6feb;
  color: #fff;
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

button.secondary {
  background: #fff;
  color: #1f6feb;
}

button.danger {
  background: #d1242f;
  border-color: #d1242f;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.actions-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 0.25rem 0 0.75rem;
}

.form {
  display: grid;
  gap: 0.5rem;
}

.table-wrapper {
  overflow: auto;
  max-height: 55vh;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #eef2f7;
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: #f6f8fa;
  z-index: 1;
}

.code {
  background: #0b1020;
  color: #e6edf3;
  padding: 0.75rem;
  border-radius: 8px;
  overflow: auto;
  max-height: 45vh;
}

.muted {
  color: #586069;
  font-size: 0.9rem;
}

.base-url {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.base-url input {
  max-width: 360px;
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.75rem;
  background: #eaeef2;
}

.actions {
  display: flex;
  gap: 0.35rem;
}

/* Pizza-specific adjustments for blog style */
.pizza-ingredients {
  font-size: 1.5rem;
  line-height: 1.8;
}

/* Input Sections - Hidden by default */
.input-section {
  display: none;
  margin-top: 1rem;
}

.input-section.active {
  display: block;
}

.input-card {
  background: #f8f9fa;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.input-card label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.input-card input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 0.75rem;
}

.input-card button {
  width: 100%;
}

.main-title {
  text-align: center;
  margin-bottom: 1rem;
}

.subtitle {
  text-align: center;
  margin-bottom: 1.5rem;
}

.subtitle a {
  color: #0969da;
  text-decoration: none;
}

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

/* Card Styles */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.card-header {
  background: #f6f8fa;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 8px 8px 0 0;
}

.card-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.card-body {
  padding: 1.25rem;
}

/* Button Grid */
.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Alerts */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-info {
  background: #dff6dd;
  color: #0f5323;
  border: 1px solid #c5e9c0;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert-danger {
  background: #ffe8e8;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Row Grid for Results */
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Accordion */
.accordion {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-top: 1rem;
  overflow: hidden;
}

.accordion-button {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #f6f8fa;
  border: none;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
}

.accordion-button:hover {
  background: #eaeef2;
}

.accordion-collapse {
  display: none;
}

.accordion-collapse.show {
  display: block;
}

.accordion-body {
  padding: 1rem;
  background: #fff;
}

/* Loading Spinner */
.spinner-border {
  width: 3rem;
  height: 3rem;
  border: 4px solid #e5e7eb;
  border-top-color: #0969da;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.text-center {
  text-align: center;
}

/* Utility Classes */
.muted {
  color: #586069;
  font-size: 0.9rem;
}

pre {
  background: #0d1117;
  color: #e6edf3;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875rem;
  margin: 0;
}