<script lang="ts">
  /** Custom message. Defaults to a generic "contact your administrator" message. */
  export let message: string =
    "You don't have permission to view this page. Contact your administrator to request access.";
  /** Optional title override. Defaults to "Access Denied". */
  export let title: string = "Access Denied";
</script>

<div class="access-denied-wrap">
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
    <circle cx="12" cy="12" r="10" />
    <line x1="4.93" y1="4.93" x2="19.07" y2="19.07" />
  </svg>
  <h3>{title}</h3>
  <p>{message}</p>
</div>

<style>
  .access-denied-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 12px;
  }

  .access-denied-wrap svg {
    width: 40px;
    height: 40px;
    color: var(--status-inactive-color, #ef4444);
  }

  .access-denied-wrap h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .access-denied-wrap p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
    max-width: 360px;
  }
</style>
