.site-header{
  display:flex;
  flex-direction:column;      /* stack logo above tabs */
  align-items:center;         /* center horizontally */
  gap:.5rem;                  /* space between logo and tabs */
  padding:1rem 0;
}

.site-logo img {
  display: block; 
  height: 60px;   
  width: auto;    
}

.tab-row{
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
  justify-content:center;     /* center the buttons row */
}

.site-header{ position:sticky; top:0; background:#0b0b0b; z-index:10; }

      :root {
        --bg: #0d0d0d;
        --accent: #78bc60;
        --text: #f0f0f0;
        --card: #1a1a1a;
        --border: #222;
      }
      body {
        margin: 0;
        font-family: 'Segoe UI', Roboto, sans-serif;
        background: var(--bg);
        color: var(--text);
      }
      header {
        background: #111;
        padding: 1rem;
        display: flex;
        justify-content: center;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
      }
      button.tab {
        background: transparent;
        border: 1px solid var(--border);
        color: var(--text);
        padding: 0.5rem 1rem;
        border-radius: 10px;
        font-size: 1rem;
        cursor: pointer;
        transition: 0.2s;
      }
      button.tab.active {
        border-color: var(--accent);
        color: var(--accent);
        box-shadow: 0 0 10px var(--accent);
      }
      main {
        max-width: 800px;
        margin: 2rem auto;
        padding: 0 1rem;
      }
      .section {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 1rem 1.5rem;
        margin-bottom: 1.5rem;
      }
      label {
        display: block;
        margin-bottom: 0.25rem;
        color: var(--accent);
      }
      select, input[type="number"] {
        width: 100%;
        padding: 0.5rem;
        background: #111;
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text);
      }
      h2 {
        color: var(--accent);
        margin-top: 0;
      }
      table {
        width: 100%;
        border-collapse: collapse;
        color: var(--text);
      }
      th, td {
        text-align: left;
        padding: 0.4rem 0.3rem;
      }
      tr:nth-child(even) {
        background: rgba(255,255,255,0.03);
      }
      .btn {
        background: var(--accent);
        border: none;
        color: #000;
        padding: 0.6rem 1rem;
        border-radius: 10px;
        font-weight: bold;
        cursor: pointer;
        transition: 0.2s;
      }
      .btn:hover {
        opacity: 0.9;
      }
      .grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
      }
      .result-card {
        background: #111;
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 1rem;
        margin-top: 1rem;
      }
      .icon {
        color: var(--accent);
        font-size: 1.2rem;
        margin-right: 0.4rem;
      }
/* This code applies only when the screen is 600px wide or less */
@media (max-width: 600px) {
  .grid {
    /* Changes the two-column grid to a single column */
    grid-template-columns: 1fr;
  }

  header {
    /* Allows tabs to wrap if needed */
    flex-wrap: wrap;
  }
}
.manager-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.manager-item-label {
  font-weight: bold;
}

.btn-delete {
  background: #552222;
  color: #ffaaaa;
  border: 1px solid #773333;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}
.btn-delete:hover {
  background: #773333;
  color: #ffcccc;
}

.add-form {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.nutrient-line-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.75rem;
  background: #111;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.nutrient-line-header:hover {
  border-color: #444;
}

.bottle-details {
  padding-left: 1.5rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-left: 2px solid var(--accent);
  margin-left: 0.75rem;
}

.bottle-editor {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.bottle-editor label {
  flex-basis: 50%; /* Give label good space */
  margin-bottom: 0;
  color: #ccc;
}

.bottle-editor input {
  background-color: #222;
  font-weight: bold;
}
/* Add these styles to the end of style.css */

.property-editor-grid {
  display: grid;
  grid-template-columns: 1fr auto; /* Label on the left, input on the right */
  gap: 0.75rem 1rem;
  align-items: center;
}

.property-editor-grid h4 {
  grid-column: 1 / -1; /* Make headings span both columns */
  margin: 1rem 0 0.25rem 0;
  color: #ccc;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.25rem;
}

/* First heading should have no top margin */
.property-editor-grid h4:first-child {
  margin-top: 0;
}

.property-editor-grid label {
  margin: 0;
  color: var(--text); /* Override the default green label color here */
}

.property-editor-grid input {
  width: 80px; /* Make the input boxes smaller */
  padding: 0.4rem;
  text-align: right;
}