* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

p {
    word-break: break-all;
}

.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.px-2 {
    padding-left: 8px;
    padding-right: 8px;
}

.ml-2 {
    margin-left: 8px;
}

.flex-wrap {
    flex-wrap: wrap;
}

.w-full {
    width: 100%;
}

.mt-4 {
    margin-top: 16px;
}

.mt-2 {
    margin-top: 8px;
}

.cursor-pointer {
    cursor: pointer;
}

.text-white {
    color: white;
}

.items-end {
    align-items: end;
}

.mr-2 {
    margin-right: 8px;
}

.h-full {
    height: 100%;
}
.flex-col {
    flex-direction: column;
}

.overflow-y-auto {
    overflow-y: auto;
}

.mb-10 {
    margin-bottom: 40px;
}
.mt-auto {
    margin-top: auto;
}
.py-10 {
    padding-top: 40px;
    padding-bottom: 40px;
}
.py-1 {
    padding-top: 4px;
    padding-bottom: 4px;
}

.rounded {
    border-radius: 4px;
}

.dialog-left {
    padding: 12px 8px;
    position: relative;
    background-color: var(--dialogBg);
    box-shadow: 0 0 2px 2px rgba(71, 85, 105, 0.08);
    border-radius: 4px;
    z-index: 1;
    max-width: calc(100% - 48px);
    width: fit-content;
    display: flex;
    flex-direction: column;
  }

  .dialog-right {
    padding: 12px 8px;
    position: relative;
    background-color: var(--dialogBg);
    box-shadow: 0 0 2px 2px rgba(71, 85, 105, 0.08);
    border-radius: 4px;
    z-index: 1;
    max-width: calc(100% - 48px);
    width: fit-content;
    display: flex;
    justify-content: end;
  }
  
  @keyframes previewZoomIn {
      0% {
          transform: scale(1);
      }
      50% {
          transform: scale(var(--btnScale, 1.2));
      }
      100% {
          transform: scale(1);
      }
  }

  .preview-btn-ani {
      animation-name: previewZoomIn;
      animation-iteration-count: infinite;
      animation-timing-function: ease-in-out;
      transition: transform 0.5s ease-in-out;
  }
  .preview-btn-ani-time {
      animation-duration: 3s;
  }
  
  .dialog-left::before {
    content: '';
    position: absolute;
    top: 16px;
    left: -4px;
    width: 8px;
    height: 8px;
    z-index: 0;
    background-color: var(--dialogBg);
    transform: rotate(45deg);
  }
  
  .dialog-right::before {
    content: '';
    position: absolute;
    top: 16px;
    right: -4px;
    width: 8px;
    height: 8px;
    z-index: 0;
    background-color: var(--dialogBg);
    transform: rotate(45deg);
  }