@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: true;
}

@keyframes rotate {
  to {
    --angle: 360deg;
  }
}

.ai-chat-toggler {
  --bright-secondary-500: hsl(327, 79%, 68%);
  --bright-secondary-600: hsl(327, 80%, 48%);

  cursor: pointer;
  background-color: var(--text-clr-700);
  box-shadow: 0px 0px 30px 0px #15172740;
  position: fixed;
  z-index: 10000;
  bottom: 2rem;
  width: 3rem;
  aspect-ratio: 1;
  align-content: center;

  right: 1.625rem;
  padding-block: 0.375rem;
  border-radius: 1rem;
  border: 4px solid transparent;
  background: linear-gradient(var(--text-clr-700), var(--text-clr-700))
      padding-box,
    conic-gradient(
        from var(--angle),
        var(--bright-secondary-500),
        var(--secondary-clr-900),
        var(--bright-secondary-500),
        var(--bright-secondary-600),
        var(--bright-secondary-500),
        var(--secondary-clr-900),
        var(--bright-secondary-500)
      )
      border-box;
  animation: rotate 4s linear 10;
  transition: 300ms ease;

  svg {
    margin-inline: auto;
  }

  &:hover::after {
    content: "Studynet AI ";
    position: absolute;
    top: -80%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-clr-700);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
  }

  &:hover {
    scale: 1.1;
  }
}

.ai-chat-toggle-wrapper {
  padding-block: 0.375rem;
  padding-inline: 0.75rem 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 1rem;
  background-color: var(--text-clr-700);
  box-shadow: 0px 0px 30px 0px #15172740;
  color: #b7b8c5;
  min-width: 300px;

  &:focus-within {
    --_ai-chat-toggle-outline-clr: var(--secondary-clr-900);
  }

  span,
  input {
    flex: 1;
    height: 100%;
    border: none;

    &:focus,
    &:focus-visible {
      outline: none;
    }
  }
}

.ai-chat-area-wrapper {
  /* --_tab-padding-inline: 1rem; */
  --_tab-active-clr: var(--secondary-clr-900);
  --_tab-active-bg-clr: #f6f6fc;
  padding: 1rem 1.125rem 1.125rem;

  background-color: var(--white-clr);
  border: 1px solid #e5e5f8;
  border-radius: 1.125rem;

  textarea {
    width: 100%;
    min-height: 140px;
    outline: none;
    border: none;
    resize: none;
  }

  .ai-chat-area-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .pill-tabs {
    pointer-events: none;
    opacity: 0;
    margin-inline: 0;
    background-color: #fafafe;
    border: 1px solid #e5e5f8;
    padding: 0.125rem;
    min-height: 0;
    max-width: fit-content;
  }
  .tab {
    width: 2.25rem !important;
    /* height: 2.25rem !important; */
    aspect-ratio: 1 !important;
    color: var(--secondary-clr-900) !important;
    padding: 0 !important;
    font-size: 1.375rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    min-width: 0 !important;
    &.tab-active {
      background: var(--white-clr) !important;
      border: 1px solid #e5e5f8 !important;
      /* background-color: #f6f6fc !important; */
    }
  }
}
.ai-chat-sidebar-dialog {
  --_sidebar-spacing: 1.5rem;

  @media (width <= 600px) {
    --_sidebar-spacing: 0.5rem;
  }

  .sidebar-dialog-content {
    grid-template-rows: auto 1fr auto;
    gap: 1.25rem;
    background-color: #f6f6fc;
  }

  .ai-chat-header {
    opacity: 0;
    position: sticky;
    top: 0;
    background-color: #f6f6fc;
    padding: var(--_sidebar-spacing) 1rem;
    z-index: 1;
    transition: opcaity 300ms ease;

    display: flex;
    justify-content: space-between;
    .btn-pill {
      padding: 0.375rem 0.75rem;
      font-size: var(--fs-300);
      font-weight: var(--fw-500);
    }
  }

  .ai-chat-body {
    padding-inline: var(--_sidebar-spacing);
  }

  .dialog-footer {
    padding: var(--_sidebar-spacing);
    margin-top: auto;
  }

  .ai-chat-toggle-wrapper {
    padding: 0.375rem;
    background-color: var(--white-clr);
    /* border: 2px solid #f6f6fc; */
    outline: 1px solid var(--_ai-chat-toggle-outline-clr, #e7e7f9);
    box-shadow: none;
    display: none;
  }
}

.ai-chat-disclaimer {
  margin-top: 0.5rem;
  display: inline-block;
  line-height: 1.3;
  color: #a0aec0;
  span {
    font-weight: var(--fw-700);
  }
}

.ai-chat-body {
  display: flex;
  flex-direction: column;
}

.ai-prompt-list {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;

  li {
    border-radius: 100vw;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e5f8;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    letter-spacing: 3%;
    font-size: var(--fs-200);
    background-color: var(--white-clr);

    &:hover {
      cursor: pointer;
      background-color: #fafafe;
    }
  }

  .iconify {
    color: #e66bae;
    font-size: var(--fs-400);
  }
  path {
    stroke-width: 2;
  }
}
.ai-action {
  background-color: var(--_ai-action-bg-clr, var(--secondary-clr-900));
  font-size: var(--_ai-action-fs, var(--fs-450));
  width: var(--_ai-action-size, 2.5rem);
  height: var(--_ai-action-size, 2.5rem);
  border: 1px solid var(--_ai-action-border-clr, #b24a83);
  color: var(--_ai-action-clr, #e66bae);
  align-content: center;
  border-radius: 0.75rem;
  margin-left: auto;

  &.ai-clip-action {
    --_ai-action-bg-clr: #f6f6fc;
    --_ai-action-border-clr: #e5e5f8;
    --_ai-action-clr: #cecef1;

    contain: paint;
    input {
      opacity: 0;
      position: absolute;
    }
  }

  .iconify {
    margin: auto;
  }

  path {
    stroke-width: 2.5;
  }

  &:disabled {
    --_ai-action-bg-clr: var(--white-clr-800);
    --_ai-action-clr: var(--border-clr-900);
    --_ai-action-border-clr: var(--border-clr-900);
  }
}

.chart-wrapper {
  /* height: max(100%, 250px); */
  min-height: 250px;
  height: 250px;
}

/* Ap */

.course-list {
  padding: 0rem 1.125rem 1.5rem;
  display: grid;
  gap: 0.5rem;

  .course-card {
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    border: 1px solid #e8e8f7;
    border-radius: 1.5rem;
    background-color: var(--white-clr);
    transition: all 180ms ease;

    &:hover {
      border-color: #2c2f4a;
      box-shadow: 0px 0px 20px 2px #2c2f4a26;
    }

    /* @media (width <= 600px) { */
    @media (width <=1024px) {
      padding: 1.125rem;
      flex-direction: column;

      .card-body {
        flex-direction: column;
      }
    }

    @media (width <=1440px) {
      .card-body {
        flex-wrap: wrap;

        > * {
          flex-shrink: 0;
        }
      }
    }
  }

  .course-card-logo {
    flex-shrink: 0;
    flex-basis: 200px;
    outline: 1px solid #e1e1ed;
    border-radius: 0.75rem;
    background-color: #fcfcff;
    display: flex;
    align-items: center;
    justify-content: center;

    /* @media (width <= 600px) { */
    @media (width <=1024px) {
      padding: 0.75rem;
      flex-basis: 100px;
    }
  }

  .course-card-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;

    .icon-value {
      color: var(--text-clr-700);
    }
  }

  .course-card-header {
    /* line-height: 0.97; */
    h3 {
      margin-top: 0.625rem;
      font-weight: var(--fw-700);
      font-size: 1.25rem;
      color: var(--tertiary-clr-900);
    }

    > span {
      font-weight: var(--fw-500);
      font-size: var(--fs-400);
      color: var(--secondary-clr-800);
    }
  }

  .course-card-header {
    .card-tag {
      /* @media (width<=600px) { */
      @media (width<=1024px) {
        display: none;
      }
    }
  }

  .icon-key-value {
    display: flex;
    gap: 0.375rem;
    align-items: center;
    /* align-items: start; */
    justify-content: center;
  }

  .card-body {
    display: flex;
    gap: 1.125rem;

    .icon-key-value:not(:last-child) {
      display: block;

      /* @media (width<= 600px) { */
      @media (width<=1024px) {
        padding-bottom: 1rem;
        border-bottom: 1px solid #f2f2f8;
      }

      @media (width> 1024px) {
        padding-right: 1.125rem;
        border-right: 1px solid #f2f2f8;
      }
    }

    .icon-key-value {
      display: flex !important;
      gap: 0.375rem;

      /* @media (width <= 600px) { */
      @media (width <=1024px) {
        justify-content: start;
      }
    }
  }

  .icon-key {
    flex-shrink: 0;
    color: #9496b1;
  }

  /* When expanded */

  .card-tag {
    padding: 0.375rem 0.5rem;
    background-color: var(--_card-bg-clr, #f8f8f9);
    border: 1px solid var(--_card-border-clr, #c8cad9);
    font-size: var(--_card-tag-fs, var(--fs-200));
    font-weight: var(--_card-tag-fw, var(--fw-500));
    line-height: var(--_card-line-height, 0.97);
    border-radius: 100vw;

    &.affiliated {
      --_card-tag-fs: 0.875rem;
      --_card-bg-clr: #def5e8;
      --_card-border-clr: #9ff7c5;

      padding: 0.375rem 0.75rem;
      color: var(--text-clr-700);
    }

    &.expired {
      --_card-tag-fs: 0.875rem;
      --_card-tag-fw: var(--fw-500);
      --_card-bg-clr: #f42b3f;

      display: flex;
      gap: 0.25rem;
      padding: 0.5rem;
      color: var(--white-clr);
      border-radius: 100vw;
    }
  }
  .card:has(.resource-container) {
    background-color: var(--white-clr-900);
  }

  .course-card {
    /* gap: 0.5rem; */

    padding: 0.75rem;
    color: var(--white-clr);
    &:hover {
      background-color: #fcfcff;
    }

    .icon-value {
      font-size: 0.875rem;
    }

    .separater {
      border-top: none;
      border-color: #ededff;
    }
  }

  .course-card-logo {
    flex-basis: 80px;
    padding: 0.5rem;
  }

  .course-card-details {
    gap: 0.25rem;
    flex: 1;
  }

  .course-card-header {
    display: grid;
    grid-template-columns: 1fr 28px;

    span {
      font-size: 0.875rem;
    }

    .card-tag {
      font-size: 0.625rem;
      padding-block: 0.25rem;
      line-height: 1;
    }

    h3 {
      grid-row: 2;
      margin-top: 0.125rem;
      font-size: var(--fs-400);
    }
  }
}
/* Application Details */

.applications-grid {
  --_line-clamp: 1;
  display: grid;
  gap: 0.5rem;

  .application-card {
    /* background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  gap: 20px; */

    padding: 1.25rem;
    padding: 1.125rem 1.125rem;
    display: flex;
    gap: 1.5rem;
    border: 1px solid #e8e8f7;
    border-radius: 1.5rem;
    background-color: var(--white-clr);
    transition: all 180ms ease;

    &:hover {
      border-color: #2c2f4a;
      box-shadow: 0px 0px 20px 2px #2c2f4a26;
    }
  }

  /* .application-card:hover {
  transform: translateY(-2px);
} */

  /* Updated card layout to match screenshot - horizontal layout with image, content, and metrics */
  .card-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
  }

  .card-center {
    --_line-clamp: 1;

    flex: 1;
    p {
      font-size: 0.875rem;
      color: hsl(216, 15%, 34%);
    }
    span {
      font-size: 0.75rem;
      color: #64748b;
    }
  }

  .student-avatar {
    width: 90px;
    /* height: 80px; */
    height: 100%;
    /* aspect-ratio: 1; */
    border-radius: 12px;
    /* background: linear-gradient(135deg, #e879f9, #a855f7); */
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: white; */
    font-weight: 600;
    font-size: 20px;
    flex-shrink: 0;
    outline: 1px solid #e1e1ed;
  }

  .card-content {
    flex: 1;
  }

  .category-badge {
    padding: 0.25rem 0.375rem;
    border-radius: 100vw;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--_category-badge-clr);
    outline: 1px solid var(--_category-badge-clr);
    height: 20px;
    line-height: 1.1;
  }

  /* Added status-specific badge colors */

  .student-name-wrapper {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
  }

  .student-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    /* vertical-align: middle; */
    line-height: 1.1;
    margin-right: 0.25rem;

    + .category-badge {
      translate: 0 0.025rem;
    }
  }

  /* Added contact info styling */

  /* Simplified metrics section - removed documents and fee */
  .card-metrics {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  /* Add to existing CSS */

  .campaign-card .student-name-wrapper {
    margin-bottom: 0.75rem;
  }

  .campaign-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
  }

  .info-item svg {
    flex-shrink: 0;
    font-size: 1.125rem;
    color: #94a3b8;
  }

  .status-metric {
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background-color: #f1f5f9;
    min-width: 100px;
  }

  .status-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
  }

  .status-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
  }

  .status-published,
  .status-upcoming {
    background: #dcfce7;
    --_category-badge-clr: #166534;
  }

  .status-draft {
    background: #fef3c7;
    --_category-badge-clr: #92400e;
  }

  .status-expired {
    background: #fec7c7;
    --_category-badge-clr: #920e0e;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .card-left {
      flex-direction: column;
      align-items: flex-start;
    }

    .student-avatar {
      width: 100%;
      height: 120px;
    }

    .card-metrics {
      margin-left: auto;
    }
  }
  /* End of Applications */

  /* Resources */
  .card:has(.resource-container) {
    background-color: var(--white-clr-900);
  }
}

.ai-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;

  .spinner-content {
    display: flex;
    gap: 5px;
  }

  .spinner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--secondary-clr-900);
    animation: bounce 1.5s infinite ease-in-out;
  }

  .spinner-dot:nth-child(2) {
    animation-delay: 0.2s;
  }

  .spinner-dot:nth-child(3) {
    animation-delay: 0.4s;
  }

  /* Line-by-line display styles */
  .ai-line {
    margin-bottom: 8px;
    line-height: 1.5;
  }

  /* Error message style */
  .error {
    color: #dc3545;
    font-weight: bold;
  }

  /* Disable button during processing */
  .ai-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
.token-count-wrapper {
  opacity: 0;
  pointer-events: none;
}
/* From kabid */
.dialog {
  .clear-chat-btn {
    font-size: var(--fs-300);
    font-weight: var(--fw-500);
  }

  .token-count-wrapper {
    .token-number {
      opacity: 0.8;
      font-size: var(--fs-400);
      font-weight: var(--fw-700);
    }

    .token-total {
      opacity: 1;
    }

    &.low-tokens {
      color: #e53e3e;
    }

    &.medium-tokens {
      color: #d69e2e;
    }
  }

  .plan-card {
    margin-bottom: var(--_sidebar-spacing);
    display: none;
    padding: 3rem 2.25rem;
    background-color: var(--white-clr);
    border-radius: 1.125rem;
    border: 1px solid #e5e5f8;

    h2 {
      font-family: Satoshi;
      font-weight: 700;
      font-style: Bold;
      font-size: 28px;
      leading-trim: CAP_HEIGHT;
      line-height: 97%;
      letter-spacing: 0%;
      text-align: center;
      margin-bottom: 0.75rem;
    }

    p {
      font-family: Satoshi;
      font-weight: 500;
      font-style: Medium;
      font-size: 16px;
      leading-trim: CAP_HEIGHT;
      line-height: 120%;
      letter-spacing: 0%;
      text-align: center;
      color: #868797;
    }

    .price {
      font-family: Satoshi;
      font-weight: 700;
      font-style: Bold;
      font-size: 40px;
      leading-trim: CAP_HEIGHT;
      line-height: 160%;
      letter-spacing: 3%;
      text-align: center;

      color: var(--secondary-clr-900);

      display: flex;
      justify-content: center;
      padding-bottom: 2.5rem;
      border-bottom: 1px solid #e5e5f8;
      gap: 0.25ch;
      span {
        transform: translateY(1.25rem);
        font-size: var(--fs-450);
        line-height: 1.6;
        letter-spacing: 3%;
        text-align: center;
        color: #868797;
      }
    }
    .plan-features {
      padding-block: 2.5rem;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;

      li {
        display: flex;
        gap: 0.375rem;

        align-items: center;
        font-family: Satoshi;
        font-weight: 400;
        font-style: Regular;
        font-size: 14px;
        leading-trim: CAP_HEIGHT;
        line-height: 110.00000000000001%;
        letter-spacing: 0%;
        color: #868797;
        .iconify {
          color: var(--secondary-clr-900);
          font-size: var(--fs-425);
        }
      }
    }

    .btn-pill {
      font-family: Satoshi;
      font-weight: 500;
      font-style: Medium;
      font-size: 16px;
      leading-trim: CAP_HEIGHT;
      line-height: 100%;
      letter-spacing: 3%;
      text-transform: capitalize;
      padding: 0.75rem;
    }

    .btn-use {
      --_btn-clr: #efeff5;
      --_btn-txt-clr: var(--text-clr-700);
    }
  }

  .ai-chat-disclaimer {
    font-size: 0.85rem;
  }
}

.ai-response {
  /* Chat Container */

  .chat-messages {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(100vh - 300px);
    color: var(--white-clr);
  }

  /* Message Styles */
  .message {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    color: white;
    animation: messageSlideIn 0.4s ease;
  }

  .message-content {
    flex: 1;
    max-width: 80%;
    max-width: 100%;
  }

  .message.user .message-content {
    text-align: right;
  }

  .message-bubble {
    padding: 0.75rem 1rem;
    padding: 1.25rem 1.125rem;
    border-radius: 1.125rem;
    word-wrap: break-word;
    line-height: 1.6;
    background: white;
    color: black;

    h1,
    h2,
    h3 {
      font-weight: var(--fw-700);
      font-size: 1.5rem;
      letter-spacing: 3%;
      padding-block: 0.75em;
      border-bottom: 1px solid #e5e5f8;
    }

    h2 {
      font-size: 1.25rem;
    }

    h3 {
      font-size: 1.125rem;
    }

    a {
      color: var(--secondary-clr-900);

      &:hover {
        text-decoration: underline;
      }
    }

    p {
      font-family: Satoshi;
      font-weight: 400;
      font-style: Regular;
      font-size: 16px;
      leading-trim: CAP_HEIGHT;
      line-height: 140%;
      letter-spacing: 3%;
      margin-bottom: 0;
    }

    ul,
    ol {
      padding-block: 1.5rem;
      /* border-bottom: 1px solid #e5e5f8; */
      padding-left: 1.125rem;
      li {
        letter-spacing: 2%;
      }
    }

    br {
      display: none;
    }

    hr {
      border-top: none;
      margin-bottom: 1.5rem;
    }

    .table-wrapper {
      max-width: var(--_table-wrapper-max-width, 410px);
      overflow-x: auto;

      @media (width <= 480px) {
        max-width: calc(100vw - 70px);
      }
    }
    /* FIXME: globle style by Jamal */
    table {
      --_line-clamp: 1;
      --rounded-border-radius: 10rem;
      border-collapse: collapse;
      border-spacing: 0;
      width: auto;
    }

    tbody tr {
      transition: all 0.1s ease-in-out;
    }

    tbody tr:hover {
      background: none;
      cursor: revert;
    }

    tbody tr:hover td {
      border-top: none;
      border-bottom: none;
    }

    tbody tr:hover td:first-child {
      border-left: none;
    }

    tbody tr:hover td:last-child {
      border-right: none;
    }

    th {
      padding: 0;
      border-bottom: none;
      color: revert;
    }

    td {
      padding: 0.8rem 1rem;
      border-top: none;
      border-bottom: 1px solid transparent;
    }

    tbody tr td:first-child {
      border-left: 1px solid transparent;
      border-top-left-radius: none;
      border-bottom-left-radius: none;
    }

    tbody tr td:last-child {
      border-right: none;
      border-top-right-radius: none;
      border-bottom-right-radius: none;
    }

    .table > :not(:first-child) {
      border-top: 0;
    }

    .table > :not(caption) > * > * {
      border-bottom-width: 0;
    }

    table .label-color {
      color: var(--table-label-color);
    }
    /* Fix globale style by Jamal */
    table {
      white-space: nowrap;

      margin-block: 1.5rem;
      border: 1px solid var(--white-clr-800);
      border-radius: 0.75rem;
      letter-spacing: 0;

      th {
        padding: 1.125rem 0.5rem;
        text-align: left;
        color: #9899ac;
      }

      tr td {
        border-top: 1px solid var(--white-clr-800);
        padding: 1rem 0.5rem;
      }
    }

    .bold {
      font-weight: var(--fw-700);
      line-height: 1.6;
    }

    .italic {
      font-style: italic;
    }
  }

  .message.user {
    .message-bubble {
      background: white;
      color: black;
      border-bottom-right-radius: 4px;
      margin-right: 0.25rem;
    }
    .message-meta {
      margin-left: auto;
    }
  }

  .message.assistant .message-bubble {
    color: black;
    border: 1px solid #e2e8f0;
    margin-left: 0.25rem;
  }

  .message-meta {
    width: fit-content;
    font-size: var(--fs-200);
    color: #a0aec0;
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    .iconify {
      font-size: 0.875rem;
    }
    span {
      display: inline-flex;
      align-items: center;
      gap: 0.125rem;
    }
  }

  /* Typing Indicator */

  .typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0aec0;
    font-style: italic;
  }

  .typing-dots {
    display: flex;
    gap: 0.25rem;
  }

  .typing-dots span {
    width: 6px;
    height: 6px;
    background: #a0aec0;
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
  }

  .typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
  }

  .typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
  }

  .fade-in {
    animation: fadeIn 0.3s ease;
  }
}

@keyframes typingDot {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Footer */

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.chat-heading-section {
  max-width: 60ch;
  display: flex;
  flex-direction: column;
  align-items: center;
  span {
    order: -1;
    background: #f6f6fc;
    border: 1px solid #e5e5f8;
    color: #5a5c6d;
    padding: 0.5rem 0.75rem;
    width: fit-content;
    line-height: 1;
    border-radius: 100vw;
  }
  h1 {
    margin-block: 1.125rem 1rem;
    font-family: Satoshi;
    font-weight: 500;
    font-style: Medium;
    font-size: 48px;
    leading-trim: CAP_HEIGHT;
    line-height: 100%;
    letter-spacing: 3%;
    text-align: center;
    text-transform: capitalize;
    color: var(--text-clr-700);
  }
  p {
    font-family: Satoshi;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    leading-trim: CAP_HEIGHT;
    line-height: 100%;
    letter-spacing: 3%;
    text-align: center;
    color: #5a5c6d;
  }
}

.chat-content {
  width: min(800px, 100%);
  margin-inline: auto;

  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
  justify-content: center;

  hgroup {
    text-align: center;
  }
}

.chat-box-wrapper {
  --_table-wrapper-max-width: 100%;

  .ai-chat-area-wrapper {
    width: min(800px, 100%);
    margin-block: 3.375rem;
  }

  .ai-prompt-list {
    margin-top: 0;
  }

  .ai-response {
    min-width: 100%;
  }

  .ai-chat-header {
    padding: var(--_sidebar-spacing) 1rem;
    z-index: 1;
    transition: opcaity 300ms ease;
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;

    .btn-pill {
      padding: 0.375rem 0.75rem;
      font-size: var(--fs-300);
      font-weight: var(--fw-500);
    }
  }

  .ai-chat-disclaimer {
    text-align: center;
  }

  .token-count-wrapper {
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  &:has(.ai-response:not(:empty)) {
    table {
      min-width: 100%;
    }
    & :where(.chat-heading-section, .ai-prompt-list) {
      height: 0;
      overflow: hidden;
      margin: 0;
      padding: 0;
    }

    .ai-chat-footer {
      background-color: var(--bg-color);
      margin-top: auto;
      position: sticky;
      bottom: 0;
      padding-bottom: 0.5rem;
    }

    .ai-response {
      flex-grow: 1;
      height: calc(100% - 200px);
    }
    .ai-chat-area-wrapper {
      margin-block: 0.5rem 1rem;
    }
  }
}

#content {
  padding-bottom: 0 !important;
}
