/* -------------------- Base Styles -------------------- */
body {
  font-family: "Comic Sans MS", "Chalkboard SE", sans-serif;
  background-color: #fefcf9;
  margin: 0;
  padding: 20px;
  color: #3e2723;
}

h1, h2, h3 {
  color: #795548;
  text-align: center;
}
/* ------------------ End Base Styles ------------------ */


/* ------------------- Form Elements ------------------- */
input, textarea, button {
  font-family: inherit;
  padding: 10px;
  border: 2px solid #a5d6a7;
  border-radius: 10px;
  margin: 5px;
  font-size: 16px;
}

button {
  background-color: #4db6ac;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background-color: #00897b;
}
/* ----------------- End Form Elements ----------------- */


/* ------------------- Table Styling ------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  margin-bottom: 20px;
}

th, td {
  border: 2px solid #a5d6a7;
  padding: 10px;
  text-align: center;
}

th {
  background-color: #e0f2f1;
  color: #4e342e;
}
/* ----------------- End Table Styling ----------------- */


/* ---------------- Message Feedback Boxes ------------- */
.form-message {
  color: red;
  margin: 10px 0;
  font-weight: bold;
  text-align: center;
}

.form-message.success {
  color: green;
}
/* ------------- End Message Feedback Boxes ------------ */


/* ------------------ Navbar Styling ------------------- */
nav {
  background-color: #a1887f;
  padding: 10px 20px;
  border-radius: 15px;
  margin-bottom: 20px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

nav ul li {
  display: inline-flex;
}

nav a, nav button, nav span {
  text-decoration: none;
  color: #3e2723;
  margin: 0;
  font-weight: bold;
  background-color: #d7ccc8;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

nav a:hover, nav button:hover, nav span:hover {
  background-color: #a1887f;
}
/* ---------------- End Navbar Styling ----------------- */


/* ---------------- Dropdown Menu Styling -------------- */
#admin-dropdown {
  position: relative;
}

#admin-dropdown:hover .dropdown {
  display: block;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f5f5f5;
  border: 1px solid #a1887f;
  border-radius: 10px;
  padding: 10px;
  z-index: 10;
  min-width: 120px;
}

.dropdown li {
  display: block;
  margin: 5px 0;
}
/* -------------- End Dropdown Menu Styling ------------ */


/* --- Game popup messages --- */
.popup-message {
  font-weight: bold;
  text-align: center;
  margin: 15px auto;
  padding: 10px 20px;
  border-radius: 10px;
  width: fit-content;
  max-width: 90%;
  animation: fadeout 3s forwards;
  display: none;
}

.popup-success {
  background-color: #d0f0c0;
  color: #2e7d32;
  border: 2px solid #81c784;
}

.popup-error {
  background-color: #ffebee;
  color: #c62828;
  border: 2px solid #ef9a9a;
}

.popup-info {
  background-color: #e0f7fa;
  color: #006064;
  border: 2px solid #4dd0e1;
}

@keyframes fadeout {
  0%   { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}
/* --- End Game popup messages --- */


/* ---------------- Report Form Container ------------- */
#report-container {
  max-width: 600px;
  margin: 0 auto;
  border: 2px solid #4db6ac;
  border-radius: 15px;
  background-color: #e0f2f1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
/* ------------- End Report Form Container ------------- */


/* ---------- Section Containers and Panels ----------- */
#order,
#inventory,
#response-inputs,
#restock-form,
#order-results,
#user-list,
#messages-container {
  border: 2px solid #4db6ac;
  border-radius: 15px;
  background-color: #e8f5e9;
  padding: 15px;
  margin: 10px 0;
  width: 100%;
}
/* -------- End Section Containers and Panels ---------- */
