body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 16px 16px 64px; 
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #1e1e1e;
  color: #e0e0e0;
  box-sizing: border-box;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px; 
  margin-top: 16px; 
  margin-bottom: 16px; 
}

.header img {
  width: 50px;
  height: auto;
}

.header h1 {
  font-size: 2rem;
  margin: 0;
  color: #4fc3f7;
  text-shadow: 0 0 8px rgba(79, 195, 247, 0.3); 
}

.list-container {
  flex-grow: 1;
  border: 1px solid #333;
  margin-bottom: 16px; 
  overflow-y: auto;
  border-radius: 6px; 
  background-color: #2a2a2a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
  max-height: calc(100vh - 200px); 
  scrollbar-width: thin;
  scrollbar-color: #444 #2a2a2a;
}

.list-container::-webkit-scrollbar {
  width: 6px; 
}

.list-container::-webkit-scrollbar-track {
  background: #2a2a2a;
}

.list-container::-webkit-scrollbar-thumb {
  background-color: #444;
  border-radius: 3px; 
  border: 1px solid #2a2a2a; 
}

.list-item {
  height: auto;
  padding: 12px; 
  border-bottom: 1px solid #333;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 8px; 
  transition: background-color 0.3s ease;
  position: relative;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:nth-child(even) {
  background-color: #252525;
}

.list-item:hover {
  background-color: #303030;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: 0.75em; 
  margin-bottom: 4px; 
  color: #64b5f6;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.input-group input {
  background-color: #3a3a3a;
  border: 1px solid #555;
  color: #e0e0e0;
  padding: 6px; 
  border-radius: 4px;
  font-size: 0.9em; 
}

.bottom-buttons {
  display: flex;
  height: 48px; 
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1e1e1e;
  z-index: 1000;
}

.bottom-button {
  flex: 1;
  font-size: 14px; 
  cursor: pointer;
  border: none;
  background-color: #1e1e1e;
  color: #e0e0e0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 8px; 
}

.bottom-button:not(:last-child) {
  border-right: 1px solid #333;
}

.bottom-button:hover {
  background-color: #2a2a2a;
}

.delete-item {
  position: absolute;
  top: 8px; 
  right: 8px; 
  cursor: pointer;
  color: #ff6b6b;
  font-size: 1em; 
}

.add-item-button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 8px 12px; 
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px; 
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-item-button:hover {
  background-color: #45a049;
}

@media (max-width: 600px) {
  .list-item {
    grid-template-columns: 1fr !important;
    gap: 6px;
    padding: 8px;
  }

  .input-group label {
    font-size: 0.65em;
    margin-bottom: 2px;
  }

  .input-group input {
    font-size: 0.8em;
    padding: 4px;
  }

  .bottom-buttons {
    flex-direction: column;
    height: auto;
    position: static;
  }

  .bottom-button {
    font-size: 12px;
    padding: 6px;
    border-right: none !important;
    border-bottom: 1px solid #333;
  }

  .bottom-button:last-child {
    border-bottom: none;
  }

  .delete-item {
    top: 4px;
    right: 4px;
    font-size: 0.8em;
  }
}
