body {
  font-family: system-ui, sans-serif;
  margin: 0;
  background-color: #f9fafb;
  padding-left: 1rem;
  padding-right: 1rem;
  color: #111827;
}

.layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

h1 {
  text-align: center;
  font-size: 3.5rem;
    margin-top: 0.5rem;       /* Add this */
  margin-bottom: 1.5rem;
}

table {
  width: 100%;
  display: table;
  border-collapse: collapse;
  font-size: 1.2rem;
  color: #374151;
  border-radius: 8px;
  overflow: hidden;
  min-width: 400px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  background: white;
}
.selected-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  overflow: hidden;
  background: white;
  border-right: 1px solid #ccc;
  padding: 1rem;
  overflow-y: auto;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transition: width 0.3s ease, padding 0.3s ease;
  z-index: 1000;
}

#selected-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #e5e7eb;
}
.selected-sidebar > * {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.selected-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: opacity 0.2s ease;
}

.selected-item .remove-btn {
  opacity: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: #888;
  transition: opacity 0.2s ease;
}

.selected-item:hover {
  opacity: 0.85;
}

.selected-item:hover .remove-btn {
  opacity: 1;
}

.selected-sidebar.show > * {
  opacity: 1;
}
#selected-list li {
  background-color: #ffffff;
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: #111827;
  border-left: 4px solid #3b82f6; /* Tailwind blue-500 */
}

#selected-list li span {
  font-weight: 600;
}

#selected-list li:hover {
  background-color: #eff6ff;
  cursor: pointer;
}
#selected-list li small {
  color: #6b7280;
  font-size: 0.85rem;
}
.selected-sidebar.show {
  width: 200px;
  padding: 1rem;
}
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  transition: margin-left 0.1s ease;
}
.search-container {
  display: flex;
  justify-content: flex-start;
  margin: 1rem;
}
.main-content {
  flex-grow: 1;
  padding: 1rem 1rem;
  transition: margin-left 0.3s ease;
  overflow-y: auto;
  height: 100vh;
}
.sidebar-sku {
  color: #3b82f6; /* Tailwind blue-500 */
  font-weight: 600;
}

.sidebar-inner {
  transition: opacity 0.2s ease;
}

#selected-list li:hover .sidebar-inner {
  opacity: 0.5;
}


.main-content.shifted {
  margin-left: 250px;
}
#copy-button {
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  background-color: #f1f5f9;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#copy-button:hover {
  background-color: #e2e8f0;
}

input {
  margin: 0 auto;
  padding: 0.5rem;
  width: 100%;
  max-width: 300px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 4px;
}

.tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}


.table thead tr {
  background-color: #007bff;
  color: #fff;
  text-align: left;
}
.table-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2rem;
}

.table {
  width: 100%;
  max-width: 800px;
  min-width: 600px;
}
th,
td {
  padding: 0.9rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-family: Consolas, monospace;
}

.table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.table tbody tr:last-of-type {
  border-bottom: 2px solid #007bff;
}

.table tbody tr:hover {
  font-weight: 550;
  color: #007bff;
  cursor: pointer;
}

th {
  color: #ffffff;
  font-weight: 600;
  border-bottom: 2px solid #d1d5db;
}

tr:nth-child(even) td {
  background-color: #f9fafb;
}

#tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#tabs button {
  padding: 0.5rem 1rem;
  background: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

#tabs button:hover {
  background-color: #ddd;
}

#tabs button.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

#selected-list li {
  position: relative;
  background-color: #ffffff;
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  color: #111827;
  border-left: 4px solid #3b82f6;
  transition: opacity 0.2s ease;
}

#selected-list li .remove-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  background: rgba(0, 0, 0, 0.55);
  color: red;
  font-weight: bold;
  border: none;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.85rem;
  z-index: 10;
}

#selected-list li:hover .remove-button {
  display: block;
}




@media (max-width: 768px) {
  .selected-sidebar.show {
    width: 90px;
    padding: 0.5rem;
  }

  .main-content.shifted {
    margin-left: 100px;
  }

  .main-content {
        padding-left: 2rem;
  box-sizing: border-box;

  }

   .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  box-sizing: border-box;
}

   .table {
    min-width: unset;
    width: 100%;
    font-size: 0.75rem;
  }

.table-wrapper,
.tabs-wrapper {
  width: 100%;
  max-width: 400px;
  padding: 0 1rem;
  box-sizing: border-box;
    margin-bottom: 0;

}

  h1 {
    font-size: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  #search {
  width: 100%;
  max-width: 400px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-bottom: 0;
}


  th,
  td {
    padding: 0.2rem 0.3rem;
    word-wrap: break-word;
  }
  #copy-button {
    font-size: 0.45rem;
    padding: 0.15rem 0.25rem;
  }
   #selected-list li {
    padding: 0.25rem 0.4rem;
    font-size: 0.6rem;
  }

  .sidebar-header {
    font-size: small;
  }
  .col-instrument {
    display: none !important;
  }
    #selected-list li small {
    font-size: 0.65rem;
  }

  #sidebar-header h3 {
    font-size: 0.85rem;
  }

    .sidebar-desc {
    display: none;
  }
  .main-content.shifted {
    margin-left: 80px;
    padding-top:0;
  }
    .main-content {
    padding-top: 0.5rem;
  }

  #selected-list li .remove-button {
  font-size: 0.85rem;

}
}
