@import url('https://fonts.googleapis.com/css2?family=ABeeZee&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'ABeeZee', sans-serif;
}

body {
  background: radial-gradient(circle at top, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  padding: 40px 20px;
  min-height: 100vh;
  overflow-x: hidden;
}

h2 {
  text-align: center;
  font-size: 46px;
  margin-bottom: 30px;
  color: #c084fc;
  text-shadow: 0 0 12px #a855f7, 0 0 25px #7c3aed;
  letter-spacing: 1px;
}

button {
  padding: 12px 22px;
  font-size: 16px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  margin: 10px 6px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: white;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.5);
  transition: all 0.3s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.7);
}

select,
input {
  padding: 12px;
  margin: 6px;
  border: none;
  border-radius: 12px;
  width: 190px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  backdrop-filter: blur(6px);
  outline: none;
  box-shadow: inset 0 0 10px #7c3aed;
  transition: 0.3s ease;
}

select option {
  background-color: #1e293b;
  color: #f1f5f9;
  font-family: 'ABeeZee', sans-serif;
}

form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

table {
  width: 100%;
  max-width: 960px;
  margin: 40px auto 0 auto;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

th,
td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid #334155;
  font-size: 16px;
  vertical-align: middle;
  height: 58px;
}

th {
  background: rgba(255, 255, 255, 0.08);
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  color: #e0f2fe;
  font-weight: 500;
}

.hit {
  background: linear-gradient(to right, #6d28d9, #f472b6);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.3) inset;
  transition: background 0.3s ease;
}

td input[type="number"] {
  width: 80px;
  max-width: 100%;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-align: center;
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
  font-family: 'ABeeZee', sans-serif;
  -moz-appearance: textfield;
}

input[type=number] {
  -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

table button {
  padding: 5px 9px;
  font-size: 13px;
  line-height: 1;
  border-radius: 8px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(236, 72, 153, 0.6);
  transition: all 0.2s ease-in-out;
  margin-left: 6px;
  font-family: 'ABeeZee', sans-serif;
}

table button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.9);
}

#toastContainer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  font-family: 'ABeeZee', sans-serif;
}

.toast {
  background: rgba(139, 92, 246, 0.95);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px #7c3aed;
  animation: fadein 0.5s ease, fadeout 0.5s ease 4.5s;
  backdrop-filter: blur(6px);
  font-size: 15px;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeout {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  table {
    width: 100%;
    overflow-x: auto;
    display: block;
  }
}
