/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Modal Box */
.modal {
  background: white;
  width: 520px;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  animation: popup 0.25s ease;
}

/* Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
}

.close-btn {
  font-size: 26px;
  cursor: pointer;
}

/* Body */
.modal-body {
  padding: 20px 22px;
}

.modal-body label {
  font-size: 14px;
  margin-top: 12px;
  display: block;
}

.modal-body input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.modal-body select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Footer */
.modal-footer {
  padding: 16px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-cancel {
  background: #e5e7eb;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-delete {
  background: #ee0553;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-info {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-warning {
  background: #f59e0b;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
}
.btn-save {
  background: #059669;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 👈 2 columns */
  gap: 10px;
}
.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 👈 3 columns */
  gap: 15px;
}
.form-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 👈 4 columns */
  gap: 15px;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group.full {
  grid-column: span 2;
}


.form-group label {
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 14px;
}


/* Animation */
@keyframes popup {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
