  /* Reset */
  * { box-sizing: border-box; margin: 0; padding: 0; font-family: Arial, sans-serif; }

  body {
    background: #e0e5ec;
    color: #333;
  }

   i { font-style: normal; }
  /* Topbar */
  .topbar {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    background: #ffffff;
    box-shadow: 5px 5px 15px #c1c5d0, -5px -5px 15px #ffffff;
    font-size: 1.3em;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }
  .topbar i { margin-right: 10px; }

  /* Menu bar */
  .menubar {
    display: flex;
    background: #f0f3f7;
    box-shadow: inset 3px 3px 6px #c1c5d0, inset -3px -3px 6px #ffffff;
    position: fixed;
    top: 60px;
    width: 100%;
    z-index: 999;
  }
  .menubar button {
    flex: 1;
    padding: 36px 12px;     
    background: #f0f3f7;
    border: none;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666;
    border-radius: 12px 12px 0 0;
  }
  .menubar button.active {
    color: #0077ff;
    font-weight: bold;
    box-shadow: inset 2px 2px 5px #c1c5d0, inset -2px -2px 5px #ffffff;
  }
  .menubar button i { margin-right: 6px; }

  /* Sections */
  
  section {
    display: none;
    padding: 210px 30px 30px;
  }
  section.active { display: block; }

  /* Dashboard Cards */
  .dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
  }
  .card {
    background: #f0f3f7;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 5px 5px 15px #c1c5d0, -5px -5px 15px #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .card i { font-size: 1.5em; margin-bottom: 10px; color: #0077ff; }
  .card h3 { font-size: 1em; margin-bottom: 5px; color: #555; }
  .card p { font-size: 1.3em; font-weight: bold; }

  h3{
    margin-top: 1em;
  }
  /* Tables */
  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
  }
  th, td {
    padding: 12px;
    background: #f0f3f7;
    border-bottom: 1px solid #e0e5ec;
    text-align: left;
  }
  th { font-weight: bold; color: #0077ff; }
  tbody tr:hover td { background: #e0e5ec; }

  /* Forms */
  form label {
    display: block;
    margin: 12px 0 6px;
    font-weight: bold;
  }
  form input, form select, form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: none;
    box-shadow: inset 3px 3px 6px #c1c5d0, inset -3px -3px 6px #ffffff;
    background: #f0f3f7;
  }
  button.blue {
    margin-top: 15px;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    background: #0077ff;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 3px 3px 6px #c1c5d0, -3px -3px 6px #ffffff;
    transition: all 0.2s ease;
  }
  button.blue:hover { background: #005fcc; }

  /* Category list */
.category-cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.category-cards fieldset {
  border: none;
  border-radius: 12px;
  background: #f0f3f7;
  box-shadow: 5px 5px 10px #c1c5d0, -5px -5px 10px #ffffff;
  padding: 15px;
}

.category-cards legend {
  font-size: 1em;
  font-weight: bold;
  color: #0077ff;
  padding: 0 5px;
}

.category-cards p {
  margin: 6px 0;
  font-size: 0.9em;
  color: #333;
}

.category-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.category-actions button {
  padding: 6px 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: #0077ff;
  color: #fff;
  font-size: 0.9em;
  box-shadow: 3px 3px 6px #c1c5d0, -3px -3px 6px #ffffff;
  transition: all 0.2s ease;
}

.category-actions button.delete { background: #ff4d4d; }

@media(min-width: 600px) {
  .category-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .category-cards fieldset {
    flex: 1 1 calc(50% - 15px);
  }
}

  /* Category list */
.location-cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.location-cards fieldset {
  border: none;
  border-radius: 12px;
  background: #f0f3f7;
  box-shadow: 5px 5px 10px #c1c5d0, -5px -5px 10px #ffffff;
  padding: 15px;
}

.location-cards legend {
  font-size: 1em;
  font-weight: bold;
  color: #0077ff;
  padding: 0 5px;
}

.location-cards p {
  margin: 6px 0;
  font-size: 0.9em;
  color: #333;
}

.location-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.location-actions button {
  padding: 6px 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: #0077ff;
  color: #fff;
  font-size: 0.9em;
  box-shadow: 3px 3px 6px #c1c5d0, -3px -3px 6px #ffffff;
  transition: all 0.2s ease;
}

.location-actions button.delete { background: #ff4d4d; }

@media(min-width: 600px) {
  .location-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .location-cards fieldset {
    flex: 1 1 calc(50% - 15px);
  }
}




.filter {
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  background: #f0f3f7;
  box-shadow: 5px 5px 10px #c1c5d0, -5px -5px 10px #ffffff;
  cursor: pointer;
  position: relative;
  font-weight: bold;
  transition: all 0.2s ease;
}

.filter.active {
  /* Depressed / pressed look */
  box-shadow: inset 3px 3px 6px #c1c5d0, inset -3px -3px 6px #ffffff;
}

.filter::after {
  content: "✔"; /* green check by default */
  color: green;
  position: absolute;
  top: 2px;
  right: 6px;
  font-size: 0.8em;
  display: none;
}

.filter.active::after {
  display: inline-block;
}

.filter.inactive::after {
  content: "✖"; /* red cross */
  color: red;
  display: inline-block;
}

/* Mobile-first responsive inventory */

.inventory-table {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.inventory-row {
  display: flex;
  flex-direction: column; /* stack by default (mobile) */
  background: #f0f3f7;
  border-radius: 12px;
  box-shadow: 5px 5px 10px #c1c5d0, -5px -5px 10px #ffffff;
  overflow: hidden;
  padding: 10px;
}

.edit_filters_container
{
  text-align:right;
}
.item-image img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.item-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9em;
  color: #555;
}

.item-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.item-actions button {
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #0077ff;
  color: #fff;
  font-size: 1em;
  box-shadow: 3px 3px 6px #c1c5d0, -3px -3px 6px #ffffff;
  transition: all 0.2s ease;
}

.item-actions button.delete { background: #ff4d4d; }

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.item-meta fieldset {
  border: none;
  border-radius: 10px;
  background: #f0f3f7;
  box-shadow: inset 2px 2px 5px #c1c5d0, inset -2px -2px 5px #ffffff;
  padding: 8px 10px;
  font-size: 0.9em;
  color: #333;
  min-width: 100px;
  flex: 1 1 100px;
}

.item-meta legend {
  font-size: 0.75em;
  font-weight: bold;
  text-transform: uppercase;
  background: rgba();
  color: #0077ff;
  background: #f0f3f7;
  margin-bottom: 4px;
  padding: 0 4px;
}
#searchInput
{
  width: 100%;
  border-radius: 10px;
  background: #f0f3f7;
  box-shadow: inset 2px 2px 5px #c1c5d0, inset -2px -2px 5px #ffffff;
  padding: 8px 10px;
}

@media(min-width: 768px) {
  .item-meta fieldset {
    flex: 1 1 calc(25% - 10px);
  }
}

@media(min-width: 768px) {
  .inventory-row {
    flex-direction: row; /* side-by-side for desktop */
    align-items: center;
    gap: 15px;
  }
  .item-image img {
    width: 120px;
    height: 120px;
    margin-bottom: 0;
  }
  .item-details {
    flex: 1;
  }
  .item-actions {
    margin-top: 0;
  }
}
/* Loading */
#loading {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: calc(100vh - 60px);
  background: #f6f6f6;
  text-align: center;
  font-family: system-ui, sans-serif;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Simple rotating spinner */
.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #ccc;
  border-top-color: #555;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Optional: fade-out animation when hiding */
.fade-out {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

/*data*/
#csvDropArea {
    border: 2px dashed #888;
    padding: 20px;
    text-align: center;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 6px;
  }
  #csvDropArea.dragover {
    background: #f0f0f0;
    border-color: #333;
  }
  .data-import, .data-export { margin-bottom: 30px; }

/* Make the logo big */
#logo {
  font-size: 5rem; /* increase emoji size */
  margin-bottom: 15px;
}



/* Hidden Sections */
.hidden-section {
  display: none; /* hidden by default */
  padding: 150px 50px 20px 50px;
  background: #f0f3f7;
  border-radius: 12px;
  box-shadow: 5px 5px 15px #c1c5d0, -5px -5px 15px #ffffff;
  margin-top: 20px;
}
/* requester filter CRUD*/
.edit-category-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

fieldset {
  border-radius: 12px;
  padding: 15px;
  background: #f0f3f7;
  box-shadow: inset 3px 3px 6px #c1c5d0, inset -3px -3px 6px #ffffff;
  border: none;
  display: flex;
  flex-direction: column;
}

legend {
  font-weight: bold;
  margin-bottom: 10px;
  color: #0077ff;
}

input, textarea {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: none;
  box-shadow: inset 3px 3px 6px #c1c5d0, inset -3px -3px 6px #ffffff;
  background: #f0f3f7;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-actions .cancel {
  background: #ff4d4d;
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 3px 3px 6px #c1c5d0, -3px -3px 6px #ffffff;
}

.form-actions .save {
  background: #0077ff;
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 3px 3px 6px #c1c5d0, -3px -3px 6px #ffffff;
}

@media (max-width: 600px) {
  .edit-category-form {
    gap: 10px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions button {
    width: 100%;
  }
}

/*  CRUD FILTERS REQUESTEr */

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.filter-list li {
  background: #f0f3f7;
  padding: 12px 15px;
  border-radius: 12px;
  box-shadow: 5px 5px 10px #c1c5d0, -5px -5px 10px #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-list .actions button {
  margin-left: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 3px 3px 6px #c1c5d0, -3px -3px 6px #ffffff;
  transition: all 0.2s ease;
}

.filter-list .actions button.edit {
  background: #0077ff;
  color: #fff;
}

.filter-list .actions button.delete {
  background: #ff4d4d;
  color: #fff;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

.form-actions .add-new {
  background: #0077ff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 3px 3px 6px #c1c5d0, -3px -3px 6px #ffffff;
  transition: all 0.2s ease;
}

@media (max-width: 600px) {
  .filter-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .filter-list .actions {
    display: flex;
    width: 100%;
    gap: 8px;
  }
  .form-actions {
    justify-content: stretch;
  }
  .form-actions .add-new {
    width: 100%;
  }
}


