@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Raleway', sans-serif;
}

html, body {
  background: #0d1117;
  color: #c9d1d9;
}

header {
  background: linear-gradient(135deg, #161b22, #21262d);
  padding: 20px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  color: #c9d1d9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}

span {
  color: #58a6ff;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.wrapper .container {
  max-width: 900px;
  border-radius: 12px;
  margin: 20px auto;
  background: #161b22;
  padding: 24px;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.5s ease-in-out;
  color: #c9d1d9;
}

.item {
  flex-wrap: wrap;
  max-width: 100%; /* Batasi lebar agar tidak melebihi pembungkus */
  white-space: nowrap; /* Hindari teks turun ke baris baru */
  overflow: hidden; /* Sembunyikan teks yang melebihi pembungkus */
  text-overflow: ellipsis; /* Tambahkan "..." jika teks terlalu panjang */
  gap: 16px;
  border-radius: 16px;
  margin-top: 16px;
  margin-right: 20px;
  padding: 16px;
  background: #21262d;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.item:hover {
  transform: translateY(-5px);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 16px;
  background: #0d1117;
  color: #c9d1d9;
}

input[type="text"],
input[type="date"],
input[type="search"]
{
  background: #161b22;
  border: 2px solid #58a6ff;
  border-radius: 8px;
  padding: 12px;
  font-size: 18px;
  width: 100%;
  color: #c9d1d9;
  transition: border 0.3s ease;
}

input:focus {
  border-color: #58a6ff;
}

.btn-submit {
  padding: 12px 24px;
  border-radius: 16px;
  border: 2px solid #58a6ff;
  background: transparent;
  color: #58a6ff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.btn-submit:hover {
  background: #58a6ff;
  color: #0d1117;
}

@media (max-width: 1024px) {
  .wrapper .container {
    width: 90%;
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .wrapper .container {
    width: 95%;
    padding: 12px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.check-button {
  width: 40px;
  height: 40px;
  background: url("../assets/check-outline.svg");
  background-size: contain;
  margin-left: auto;
  cursor: pointer;
  border: none;
}

.check-button:hover {
  background: url("../assets/check-solid.svg");
  background-size: contain;
}

.trash-button {
  width: 40px;
  height: 40px;
  background: url("../assets/trash-outline.svg");
  background-size: contain;
  margin-left: 16px;
  cursor: pointer;
  border: none;
}

.trash-button:hover {
  background: url("../assets/trash-fill.svg");
  background-size: contain;
}

.undo-button {
  width: 40px;
  height: 40px;
  background: url("../assets/undo-ouline.svg");
  background-size: contain;
  margin-left: auto;
  cursor: pointer;
  border: none;
}

.undo-button:hover {
  background: url("../assets/undo-ouline.svg");
  background-size: contain;
}

.check-button:focus,
.trash-button {
  outline: none;
}

/* Scrollbar base */
::-webkit-scrollbar {
  height: 8px; /* Adjust height of horizontal scrollbar */
  width: 12px; /* Adjust width of vertical scrollbar */
  background: #2c2c2c; /* Darker background for the scrollbar */
}

/* Scrollbar thumb */
::-webkit-scrollbar-thumb {
  background: #4b4b4b; /* Slightly lighter thumb color */
  border-radius: 10px; /* Rounded edges for the thumb */
  transition: background 0.3s; /* Smooth transition on hover */
}

/* Scrollbar thumb hover effect */
::-webkit-scrollbar-thumb:hover {
  background: #9ca3af; /* Change to accent color on hover */
}

/* Scrollbar corner (where the two scrollbars meet) */
::-webkit-scrollbar-corner {
  background: #2c2c2c; /* Match the background of the scrollbar */
}


