body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "JetBrains Mono", monospace;
  line-height: 1.2;
  color: #d4d4d4;
  background-color: #000000;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #000000;
  border-bottom: 2px solid #3c3c3c;
  z-index: 1000;
  box-sizing: border-box;
}

body {
  padding-top: 50px;
}

.dropdown select,
input[type="text"],
select,
button,
.description-textarea,
.total-records-input,
.menu button,
.footer,
.item,
.total-records,
.id-label,
.value-input,
.title-input,
.pack-dropdown {
  font-family: inherit;
  line-height: inherit;
}

.button-group, .left-menu, .logo {
  display: flex;
}

.logo img {
  height: 37px;
  border-radius: 8px;
}

.menu button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin-right: 5px;
  color: black;
  background-color: #ffda6e;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.menu button:hover {
  background-color: #ffcb4a;
}

#content {
  padding: 20px;
  max-width: calc(100% - 40px);
}

#content div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #1f1f1f;
}

#content div:last-child {
  border-bottom: none;
}

input[type="text"],
select {
  padding: 6px;
  background-color: #151515;
  border: 1px solid #1f1f1f;
  color: #d4d4d4;
  border-radius: 4px;
  width: 100%;
  height: 36px; /* Uniform height for all input and select elements */
  box-sizing: border-box;
  margin-right: 10px;
}

input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: #ffda6e;
}

button {
  background-color: #fd6d6d;
  color: #ffffff;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
}

button:hover {
  background-color: #ec3d3d;
}

.footer {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 20px;
  background: none;
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
}

.version, .total-records-label {
  font-weight: 700;
  color: #ccc;
}

.id-label {
  font-weight: 500; 
  font-size: 13px;
  }


.version {
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 5px 10px;
  background: black;
}

.item, .total-records {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  border-bottom: 1px solid #1f1f1f;
}

.delete-button {
  padding: 5px;
  cursor: pointer;
  color: #fd6d6d;
  border-radius: 4px;
  border-color: transparent;
  background-color: black;
}

.delete-button:hover, .delete-button box-icon {
  color: black;
}

.delete-button box-icon {
  fill: #fd6d6d;
}

.description-textarea {
    width: 100%; /* Ensures it fills the container */
    min-height: 120px; /* Larger than default to accommodate more text */
    padding: 10px;
    margin-top: 8px;
    background-color: #151515; /* Same as other input fields */
    color: #d4d4d4; /* Same as other input fields */
    border: 1px solid #1f1f1f; /* Same as other input fields */
    border-radius: 4px; /* Rounds the corners */
    box-sizing: border-box; /* Border and padding included in the width/height */
    resize: vertical; /* Allows vertical resizing only */
    transition: border-color 0.3s; /* Smooth transition for focus */
}

.description-textarea:focus {
    border-color: #ffda6e; /* Highlight focus with a different border color */
    outline: none; /* Removes default focus outline */
}

.button-group {
  display: flex;
  justify-content: space-between;
}

.button-group button {
  flex: 1 1 auto;
  padding: 8px 16px;
  margin-right: 5px;
  min-width: 100px;
}

.button-group button:last-child {
  margin-right: 0;
}

.pack-dropdown { /* Style specifically for pack dropdowns */
  padding: 6px;
  background-color: #151515;
  border: 1px solid #1f1f1f;
  color: #d4d4d4;
  border-radius: 4px;
  width: auto; /* Revert to auto for default size */
  box-sizing: border-box; /* Keep padding and border within the width */
}

input[type="number"], /* Ensure numeric inputs are styled */
.total-records-input { /* Specific class for total records input */
  padding: 6px;
  background-color: #151515;
  border: 1px solid #1f1f1f;
  color: #d4d4d4;
  border-radius: 4px;
  width: 100%; /* Full width */
  box-sizing: border-box;
  align-items: center;
  font-size: 24px; 
  font-weight: 700;
}

.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 5000;
    display: flex;
    flex-direction: column-reverse; /* Stack toasts from bottom to top */
    align-items: flex-start; /* Align toasts to the left */
}

.toast-message {
    background: black;
    border-style: solid;
    border-color: #fff;
    border-width: 1px;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    margin-top: 10px; /* Margin at the top to separate multiple toasts */
    display: flex;
    align-items: center; /* Aligns the icon and text vertically */
    min-width: 200px;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    transform: translateY(20px); /* Slide up from the bottom */
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-message box-icon {
    margin-right: 10px; /* Adds spacing between the icon and the text */
    flex-shrink: 0; /* Prevents the icon from shrinking */
}
