/* main Page */

.main-container {
  max-width: 400px;
  margin: 0 auto;
  padding: 3rem 1rem;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.title {
  font-size: 1.5rem;
  margin-bottom: 3rem;
}

.title mark {
  padding: 0 0.5rem;
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.menu-button {
  display: block;
  background: linear-gradient(to bottom, #8fd3f4, #1e90ff);
  color: black;
  text-decoration: none;
  padding: 1rem;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: background 0.2s ease;
}

.menu-button:hover {
  background: linear-gradient(to bottom, #5cb4e6, #0f78d6);
}

/* Bulk Input Page */
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: 'Segoe UI', sans-serif;
}

.title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.title mark {
  background-color: yellow;
  padding: 0 0.5rem;
}

.input-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.input-group input,
.input-group select {
  padding: 0.6rem;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.section {
  margin-bottom: 2.5rem;
}

.section-header {
  background-color: #d3d3d3;
  padding: 0.6rem;
  font-weight: bold;
  border-radius: 6px;
  margin-bottom: 0.6rem;
  display: inline-block;
}

.item-table {
  width: 100%;
  border-collapse: collapse;
}

.item-table th {
  background-color: #e6c1e8;
  text-align: left;
  padding: 0.5rem;
  font-size: 0.95rem;
}

.item-table td {
  padding: 0.5rem;
}

.item-table input[type='number'] {
  width: 80px;
  padding: 0.4rem;
  border-radius: 4px;
  border: 1px solid #aaa;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  background-color: #4e89ae;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 2rem;
}

.submit-btn:hover {
  background-color: #3b6f94;
}

.item-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* Ensures fixed column width */
}

.item-table th,
.item-table td {
  padding: 0.5rem;
  vertical-align: middle;
  text-align: left;
}

.item-table th:nth-child(1),
.item-table td:nth-child(1) {
  width: 70%;
}

.item-table th:nth-child(2),
.item-table td:nth-child(2) {
  width: 30%;
}

.item-table input[type='number'] {
  width: 100%;  /* makes input fit cell width */
  padding: 0.4rem;
  border-radius: 4px;
  border: 1px solid #aaa;
  box-sizing: border-box;
}


/* display count page /////////////////////////////////////// */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 2rem;
  color: #333;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Page Title */
.container h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

/* Staff Name input */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  margin-top: 1rem;
}

input[type="text"] {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.flavour-row input[type="number"] {
  flex: 1;
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-left: 1rem;
}

#toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #4caf50;
  color: white;
  text-align: center;
  border-radius: 12px;
  padding: 1rem;
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: 30px;
  font-size: 1rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease-in-out;
}

#toast.show {
  visibility: visible;
  bottom: 50px;
  opacity: 1;
}



/* Dropdown styling */
.flavour-group {
  margin-top: 1rem;
}

.flavour-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.flavour-row label {
  flex: 1;
}

.flavour-row select {
  flex: 1;
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-left: 1rem;
}

/* Submit button */
button#submitBtn {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: bold;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button#submitBtn:hover {
  background-color: #3e8e41;
}

/* Feedback Message */
#responseMsg {
  margin-top: 1rem;
  text-align: center;
  font-weight: bold;
}

/************************************************************************** physical-count page */

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  padding: 2rem;
  color: #333;
}

.container_physical-count {
  max-width: 800px;
  margin: auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h2 {
  color: #222;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: underline;
  text-decoration-color: yellow;
}

label {
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

input[type="text"] {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 200px;
  margin-bottom: 1.5rem;
}

h3 {
  background-color: #ddd;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 2rem;
  font-size: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}

th {
  background-color: #f7c9e3; /* soft pink */
  color: #333;
  padding: 10px;
  text-align: left;
  border: 1px solid #ddd;
}

td {
  padding: 10px;
  border: 1px solid #eee;
  vertical-align: middle;
}

input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}


button {
  margin-top: 2rem;
  background-color: #4caf50;
  color: white;
  padding: 10px 18px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

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

#status {
  margin-top: 1rem;
  font-weight: 500;
}

td:first-child {
  width: 60%;
}
td:last-child {
  width: 40%;
}
