@layer components {
  .modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: oklch(0% 0 0 / 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
  }

  .modal-dialog {
    background-color: var(--color-white);
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px oklch(0% 0 0 / 0.1), 0 10px 10px -5px oklch(0% 0 0 / 0.04);
    width: 100%;
    max-width: 28rem;
    margin: 0 1rem;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
  }

  .modal-title {
    font-size: 1.125rem;
    font-weight: 600;
  }

  .modal-close {
    color: var(--text-secondary-light);
    transition: color 0.2s;
  }

  .modal-close:hover {
    color: var(--text-light);
  }

  .modal-body {
    padding: 1.5rem;
  }

  .modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
