/* =========================================================
   MODALS & FORMS
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.modal-box {
  background: white;
  padding: var(--sizing-2);
  border-radius: var(--sizing-1);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
}

.modal-box h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #0f1117;
}

.modal-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.modal-form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #0f1117;
}

.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 14px;
}

.modal-form-group input:focus,
.modal-form-group select:focus,
.modal-form-group textarea:focus {
  outline: none;
  border-color: #6c8fff;
  box-shadow: 0 0 0 3px rgba(108, 143, 255, 0.1);
}

.modal-form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-form-row > div {
  flex: 1;
  min-width: 150px;
}

.modal-button-group {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

.modal-button {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-button.cancel {
  background: #eee;
  color: #0f1117;
}

.modal-button.cancel:hover {
  background: #ddd;
}

.modal-button.primary {
  background: #6c8fff;
  color: white;
}

.modal-button.primary:hover {
  background: #5b7ee6;
}

.modal-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-error {
  color: #d32f2f;
  font-size: 12px;
  margin-top: 4px;
}

.button-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.button-group-btn {
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  background: #6c8fff;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.button-group-btn:hover {
  background: #5b7ee6;
}

