/* Overall page look */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  margin: 0;
  padding: 20px;
}

/* Outer table with modern thin green border */
.stock-form {
  width: min(60%, 700px);
  border-collapse: collapse;
  margin: 1px auto;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;

  /* THIN FADED GREEN BORDER */
  border: 1px solid transparent;
  border-image: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.9),
    rgba(34, 197, 94, 0.45),
    rgba(74, 222, 128, 0.15)
  );
  border-image-slice: 1;

  /* Soft shadow */
  box-shadow: 0 5px 28px rgba(0, 0, 0, 0.10);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stock-form:hover {
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.16);
  transform: translateY(-2px);
}

/* Header now GREEN themed */
.stock-form__header {
  padding: 12px 3px;
 /*  text-align: center; 
    background: linear-gradient(135deg, #22c55e,  #16a34a);*/
  background: linear-gradient(135deg, #22955e,  #16a34a);
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 700;
}

/* Inner content styling */
.stock-form .white2 {
  width: 100%;
  border-collapse: collapse;
  background: #fafafa;
}

.stock-form .white2 tr td {
  padding: 5px 15px;
  font-size: 0.65rem;
  color: #111827;
}

/* Form labels */
.stock-form .white2 td:first-child {
  font-weight: 700;
  white-space: nowrap;
}

/* Input controls */
.stock-form select {
  width: 100%;
  padding: 10px;
  border-radius: 9px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 0.65rem;
  outline: none;
  transition: 0.2s ease;
}

.stock-form select:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

/* Submit button → GREEN */
.stock-form input[type="submit"] {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 35px;
  border-radius: 999px;
  border: none;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-transform: uppercase;

  background: linear-gradient(135deg, #22c55e, #16a34a); /* Green gradient */
  color: #ffffff;

  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.25);
  transition: 0.2s ease;
}

.stock-form input[type="submit"]:hover {
  filter: brightness(1.06);
  box-shadow: 0 16px 32px rgba(22, 163, 74, 0.32);
  transform: translateY(-1px);
}

.stock-form input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 12px 22px rgba(22, 163, 74, 0.28);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .stock-form {
    width: 94%;
  }
}