/*
 * File: assets/css/spa-modal.css
 * Description: Global modal styling for Traxs SPA components (applies to all pages)
 * Plugin: Traxs
 * Author: Eric Kowalewski
 * Last Updated: 2025-11-05 EDT
 */

/* Overlay and modal shell */
.traxs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

.traxs-modal {
  background: #fff;
  max-width: 520px;
  width: 92%;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Headings and text */
.traxs-modal h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.traxs-modal .traxs-meta {
  margin: 4px 0;
  color: #555;
}

.traxs-modal input[type="number"] {
  width: 120px;
  padding: 6px;
  margin: 10px 0;
}

.traxs-modal .traxs-help {
  margin: 0 0 10px;
  color: #666;
  font-size: 12px;
}

/* Buttons */
.traxs-modal .traxs-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.traxs-btn {
  padding: 6px 10px;
  border: 1px solid #bbb;
  background: #f6f7f7;
  border-radius: 6px;
  cursor: pointer;
}

.traxs-btn.primary {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}

/* Notices */
.notice.updated {
  background: #e7f7e7;
  border-left: 4px solid #46b450;
  padding: 8px;
  margin-top: 8px;
}

.notice.error {
  background: #fdecea;
  border-left: 4px solid #cc1818;
  padding: 8px;
  margin-top: 8px;
}
