body {
    background-color: #000;
    color: lime;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 70px;
    overflow: hidden;
  }
  
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    box-sizing: border-box;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 2px solid lime;
    background-color: #111;
  }
  
  .logo {
    height: 60px;
  }
  
  h1 {
    text-shadow: 0 0 5px black;
    border: 2px solid lime;
    padding: 10px 20px;
    border-radius: 10px;
    color: lime;
    margin: 30px auto;
    text-align: center;
    width: fit-content;
  }
  
  #login-section, #logout-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  
  #login-wrapper {
    display: flex;
    flex-direction: column;
    padding: 10px;
  }
  
  input[type="text"], input[type="password"] {
    padding: 5px 8px;
    border: 1px solid lime;
    border-radius: 5px;
    background-color: #000;
    color: lime;
    font-size: 0.9rem;
  }
  
  button {
    padding: 8px 12px;
    border: 1px solid lime;
    border-radius: 5px;
    background-color: black;
    color: lime;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
  }
  
  button:hover {
    background-color: lime;
    color: black;
  }

  .button {
    padding: 8px 12px;
    background: lime;
    color: black;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-left: 10px;
  }
  .button:hover {
    background: black;
    color: lime;
    border: 1px solid lime;
  }

  #logout-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  #logout-left {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
  }
  #logout-right {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    padding-right: 10px;
  }





  .side-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 180px;
    height: calc(100% - 80px);
    background-color: #111;
    border-right: 2px solid lime;
    display: flex;
    flex-direction: column;
    justify-content: start;
  }

  .side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .side-nav li {
    border-bottom: 1px solid lime;
  }

  .side-nav a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: lime;
    font-weight: bold;
    cursor: pointer;
  }

  .side-nav a:hover,
  .side-nav a.active {
    background-color: lime;
    color: black;
  }

  .tab-content {
    margin-left: 200px;
    padding: 20px;
    display: none;
    height: calc(100vh - 80px - 90px);
    overflow-y: auto;
  }

  .tab-content.active {
    display: block;
  }

  @media (max-width: 768px) {
    .side-nav {
      position: static;
      width: 100%;
      height: auto;
      border-right: none;
      border-top: 2px solid lime;
    }
    .side-nav li {
      border-bottom: none;
      border-top: 1px solid lime;
    }
    .tab-content {
      margin-left: 0;
    }
  }





  #grand-total,
#reset-btn {
  font-size: 1.2rem;
  font-weight: bold;
}

#total-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #111;
    border-top: 2px solid lime;
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
  }

@media (max-width: 768px) {
  #total-container {
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


/* ====== Enhanced Global Inputs ====== */
input[type="number"],
select {
  background-color: #111;
  color: lime;
  border: 1px solid lime;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: block;
  width: 100%;
  max-width: 300px;
}

/* ====== Labels and Groups ====== */
label {
  font-weight: bold;
  margin-top: 10px;
  display: inline-block;
}

div > p {
  margin: 10px 0 2px;
  font-weight: 600;
  color: lime;
}

select option {
  background-color: #000;
  color: lime;
}

/* ====== Section Headings ====== */
.tab-content h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid lime;
  padding-bottom: 4px;
  margin-bottom: 20px;
}

/* ====== Totals ====== */

#repair-total,
#cosmetics-total,
#performance-total {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: lime;
  
}

/* ====== Checkbox Styling (Group look) ====== */
.tab-content input[type="checkbox"] {
  transform: scale(1.3);
  margin-right: 10px;
}
.tab-content label {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ====== General Layout Spacing ====== */
.tab-content > div,
.tab-content > label,
.tab-content > select,
.tab-content > input {
  margin-bottom: 12px;
}

/* Fix overflow and alignment for small screens */
@media (max-width: 768px) {
  input[type="number"],
  select {
    max-width: 100%;
  }
}



  /* smaller screens  */

  @media (max-width: 768px) {
    header {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      position: fixed;
    }
    #toggle-login {
      position: absolute;
      top: 10px;
      right: 10px;
      order: -1;
      z-index: 2;
    }
    #login-wrapper {
      display: flex;
      position: absolute;
      top: 45px;
      right: 10px;
      max-width: 100%;
      background-color: #111;
      padding: 10px;
      border: 1px solid lime;
      border-radius: 6px;
      box-shadow: 0 0 10px lime;
      flex-direction: column;
      align-items: stretch;
      animation: slideDown 0.3s ease-in-out;
      width: 250px;
      box-sizing: border-box;
    }
    #login-wrapper.open {
      display: flex;
    }
    @keyframes slideDown {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    #login-section, #logout-section {
      flex-wrap: wrap;
      gap: 5px;
      padding: 5px 0;
      width: 100%;
    }
    input[type="text"], input[type="password"] {
      width: 100%;
      box-sizing: border-box;
    }
  }
  #toggle-login {
    display: none;
    background: none;
    color: lime;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
  }
  #toggle-login.open {
    transform: rotate(90deg);
  }
  @media (max-width: 768px) {
    #toggle-login {
      display: block;
    }
  }