/* ===== MODAL BACKDROP ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.hidden {
  display: none;
}

/* ===== MODAL BOX ===== */
.modal-content {
  width: 95%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  position: relative;
  font-family: 'Poppins', sans-serif;
  animation: fadeIn 0.3s ease;
}

/* ===== CLOSE BUTTON ===== */
.closeTop {
  position: absolute;
  top: 12px;
  right: 15px;
  background: #f1f1f1;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
}

.closeTop:hover {
  background: #ff4d4d;
  color: #fff;
}

/* ===== HEADINGS ===== */
.modal-content h3 {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  border-left: 4px solid #2ecc71;
  padding-left: 8px;
}

/* ===== INPUTS ===== */
.modal-content input,
.modal-content select {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  margin-bottom: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: 0.2s;
}

.modal-content input:focus,
.modal-content select:focus {
  border-color: #2ecc71;
  outline: none;
  box-shadow: 0 0 5px rgba(46,204,113,0.3);
}

/* ===== BUTTON BASE ===== */
.modal-content button {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.25s;
}

/* PRIMARY BUTTON */
.modal-content button:not(.closeTop) {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
}

.modal-content button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* SECONDARY BUTTONS */
.modal-content button:last-child,
.modal-content button:nth-last-child(2) {
  background: #eee;
  color: #333;
}

/* ===== ADMIN TOP BUTTONS ===== */
.admin-orders-btn {
  width: 100%;
  background: linear-gradient(135deg, #6c5ce7, #4834d4);
  color: #fff;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 10px;
  position: relative;
}

/* ===== BADGE ===== */
.admin-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 50%;
}

/* ===== SECTIONS ===== */
#addProductSection,
#ordersSection,
#productManagerSection {
  margin-top: 10px;
}

/* ===== LIST BOXES ===== */
#ordersList,
#productManagerList {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px;
  background: #fafafa;
}

/* ===== SEARCH INPUT ===== */
#orderSearch,
#productSearch {
  background: #f9f9f9;
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}