/* ==========================================================================
   9. MODALS & TOAST NOTIFICATIONS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow-floating);
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.modal-card.modal-lg {
  max-width: 820px;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-divider);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
}

.modal-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-modal-close {
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
}

.btn-modal-close:hover {
  color: var(--text-heading);
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-divider);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
