/* Simple, Reliable Modal System */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
}

.modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px 0;
}

.modal-body {
  margin-bottom: 24px;
  color: #4b5563;
  line-height: 1.6;
  font-size: 16px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-direction: row;
}

/* BUTTONS - Simple and Always Visible */
.modal-btn {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  min-width: 130px;
  font-family: inherit;
}

/* Primary Button - BLUE */
button[data-action="confirm"] {
  background: #2563eb;
  color: #ffffff;
}

button[data-action="confirm"]:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Secondary Button - GRAY */
button[data-action="cancel"] {
  background: #e5e7eb;
  color: #1f2937;
}

button[data-action="cancel"]:hover {
  background: #d1d5db;
}

/* Alert OK Button */
button[data-action="ok"] {
  background: #2563eb;
  color: #ffffff;
}

button[data-action="ok"]:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* Input field */
.modal-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  margin-top: 12px;
  font-family: inherit;
}

.modal-input:focus {
  outline: none;
  border-color: #2563eb;
}
