/* ===== GLOBAL ===== */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  padding: 20px;
  background: #fff3cd; /* soft, static yellow */
  color: #333;
}

h1, h2 {
  color: #b30000;
  text-align: center;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* ===== NAV ===== */
nav {
  margin-bottom: 25px;
  text-align: center;
}

nav a,
nav button {
  margin: 6px;
  padding: 14px 22px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

nav a {
  background: #c40000;
  color: #fff;
}

nav button {
  background: #ffb703;
  color: #000;
}

nav a:hover,
nav button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* ===== SECTIONS ===== */
section {
  margin-bottom: 25px;
  padding: 25px;
  background: #fff8e1;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

section:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* ===== INPUTS ===== */
input,
select,
button {
  margin: 6px;
  padding: 12px;
  font-size: 18px;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

input,
select {
  border: 2px solid #c40000;
}

input:focus,
select:focus {
  outline: none;
  border-color: #ffb703;
  box-shadow: 0 0 6px #ffb703;
}

/* ===== LISTS ===== */
ul {
  list-style: none;
  padding-left: 0;
}

li {
  margin: 10px 0;
  padding: 18px;
  background: #fff8e1;
  border-left: 10px solid #c40000;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

li:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

/* ===== ACTION BUTTONS ===== */
.li-actions {
  display: flex;
  gap: 12px;
}

.btn-edit {
  background: #ffb703;
  color: #000;
  border: none;
  padding: 12px 18px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-delete {
  background: #c40000;
  color: #fff;
  border: none;
  padding: 12px 18px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-edit:hover,
.btn-delete:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
/* Modal background */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5); /* slightly darker overlay for clarity */
  padding: 20px; /* ensure some space on small screens */
  box-sizing: border-box;
}

/* Modal content */
.modal-content {
  background-color: #fff8e1;
  margin: 50px auto; /* center vertically and horizontally */
  padding: 20px 25px;
  border-radius: 16px;
  max-width: 400px; /* max width */
  width: 100%; /* responsive */
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  font-family: "Segoe UI", Arial, sans-serif;
  box-sizing: border-box;
}

/* Close button */
.modal .close {
  color: #c40000;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  margin-top: -10px;
}

.modal .close:hover {
  color: #ff5733;
}

/* Form inside modal */
#editProductForm label {
  display: block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 14px;
}

#editProductForm input {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  border: 2px solid #c40000;
  border-radius: 12px;
  font-size: 16px;
  box-sizing: border-box;
}

#editProductForm input:focus {
  outline: none;
  border-color: #ffb703;
  box-shadow: 0 0 6px #ffb703;
}

#editProductForm button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  font-weight: bold;
  border-radius: 12px;
  border: none;
  background: #ffb703;
  color: #000;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

#editProductForm button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* Responsive adjustments for very small screens */
@media (max-width: 480px) {
  .modal-content {
    margin: 30px 10px;
    padding: 15px 20px;
  }

  #editProductForm label {
    font-size: 13px;
  }

  #editProductForm input {
    font-size: 14px;
    padding: 8px;
  }

  #editProductForm button {
    font-size: 14px;
    padding: 10px;
  }
}
/* ===== FORCE VERTICAL NAV ===== */
nav {
  display: flex;
  flex-direction: column;   /* stack vertically */
  align-items: center;      /* center buttons */
}

nav a,
nav button {
  width: 280px;             /* consistent button width */
  margin: 8px 0;            /* vertical spacing */
  text-align: center;
}
@media (max-width: 600px) {
  nav a,
  nav button {
    width: 100%;
  }
}

/* LOGIN FORM */
.login_form {
  display: flex;
  justify-content: center; 
  align-items: center;     
}