/**
 * Modal Styles - Modal backdrops, containers, headers, and actions
 */

/* ========== Modal Backdrop ========== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* ========== Modal Container ========== */
.modal {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

/* ========== Modal Header ========== */
.modal-header {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

/* ========== Modal Actions ========== */
.modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* ========== Responsive Modals ========== */

/* Mobile breakpoint */
@media (max-width: 768px) {
  .modal-backdrop {
    align-items: flex-end;
  }

  .modal {
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
    margin: 0;
  }

  .modal-header {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .modal-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
  .modal {
    padding: 1rem;
  }

  .modal-header {
    font-size: 1.125rem;
  }
}
