/* Markdown Headings */
#messages .message-markdown-content h1,
#messages .message-markdown-content h2,
#messages .message-markdown-content h3,
#messages .message-markdown-content h4,
#messages .message-markdown-content h5,
#messages .message-markdown-content h6 {
  font-weight: 600;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

#messages .message-markdown-content h1 { font-size: 1.5rem; }
#messages .message-markdown-content h2 { font-size: 1.25rem; }
#messages .message-markdown-content h3 { font-size: 1.125rem; }

/* Bold */
#messages .message-markdown-content strong {
  font-weight: 700;
  color: var(--gray-900);
}

/* Italic */
#messages .message-markdown-content em {
  font-style: italic;
}

/* Lists */
#messages .message-markdown-content ul,
#messages .message-markdown-content ol {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  list-style-position: outside;
}

#messages .message-markdown-content ul {
  list-style-type: disc;
}

#messages .message-markdown-content ol {
  list-style-type: decimal;
}

#messages .message-markdown-content li {
  margin-bottom: 0.25rem;
  display: list-item;
}

/* Links */
#messages .message-markdown-content a {
  color: var(--blue-600);
  text-decoration: underline;
}

#messages .message-markdown-content a:hover {
  color: var(--blue-700);
}

/* Code - Inline */
#messages .message-markdown-content code {
  background-color: var(--gray-100);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
}

/* Code - Block */
#messages .message-markdown-content pre {
  background-color: var(--gray-100);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 0.75rem 0;
}

#messages .message-markdown-content pre code {
  background-color: transparent;
  padding: 0;
}

/* Blockquotes */
#messages .message-markdown-content blockquote {
  border-left: 4px solid var(--gray-300);
  padding-left: 1rem;
  font-style: italic;
  color: var(--gray-600);
  margin: 0.75rem 0;
}

/* Tables */
#messages .message-markdown-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
}

#messages .message-markdown-content th,
#messages .message-markdown-content td {
  border: 1px solid var(--gray-200);
  padding: 0.5rem;
  text-align: left;
}

#messages .message-markdown-content th {
  background-color: var(--gray-50);
  font-weight: 600;
}
/* Monaco Diff Editor Styles */

/* Monaco container */
[data-monaco-diff-target="monacoContainer"] {
  min-height: 500px;
  height: 600px;
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  overflow: hidden;
}

/* Ensure Monaco editor fills container */
[data-monaco-diff-target="monacoContainer"] .monaco-editor,
[data-monaco-diff-target="monacoContainer"] .monaco-diff-editor {
  width: 100% !important;
  height: 100% !important;
}

/* Custom diff colors to match Cursor style */
.monaco-diff-editor .line-insert {
  background-color: rgba(16, 185, 129, 0.2) !important; /* Green for additions */
}

.monaco-diff-editor .line-delete {
  background-color: rgba(239, 68, 68, 0.2) !important; /* Red for deletions */
}

.monaco-diff-editor .char-insert {
  background-color: rgba(16, 185, 129, 0.3) !important;
}

.monaco-diff-editor .char-delete {
  background-color: rgba(239, 68, 68, 0.3) !important;
  text-decoration: line-through;
}

/* Button pressed state */
.sm-btn-pressed {
  background-color: #1e40af !important;
  color: white !important;
}

/* View toggle buttons - sticky container */
[data-monaco-diff-target="viewToggle"] {
  /* Sticky positioning keeps buttons at top when scrolling */
  position: sticky;
  top: 0;
  
  /* Transparent background so Monaco content shows through when scrolling */
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  
  /* Padding creates the gradient fade zone */
  padding-bottom: 1.5rem;
  margin-bottom: -1.5rem;
}

/* Individual toggle buttons */
[data-monaco-diff-target="viewToggle"] button {
  /* Add shadow to buttons for better visibility over Monaco content */
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15), 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px); /* Subtle blur effect */
}

/* View toggle buttons hover effects */
[data-monaco-diff-target="viewToggle"] button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2);
}

/* Active view button styling */
[data-monaco-diff-target="viewToggle"] button.active {
  font-weight: 600;
  box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.2);
}

/* Small button sizing override for toggle */
[data-monaco-diff-target="viewToggle"] .sm-btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}
/*
    This component is a learning component toggle. It is used in the learning component create modal.
*/
.lc-toggle {
    position: relative;
    z-index: 1;
    cursor: pointer;

    /* checkbox driving toggle effect */

    > input[type=checkbox] {
        display: none;
    }

    /* checkmark showing if toggle is selected */

    .lc-toggle-checkmark {
        opacity: 0;
        transform: scale(.75);
        transition-property: opacity, transform;
        transition-duration: 250ms;
        transition-timing-function: cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }

    &:has(input[type=checkbox]:checked) {
        .lc-toggle-checkmark {
            opacity: 1;
            transform: scale(1);
        }
    }

    .lc-overview {
        background-image: var(--resource-overview-bg-image-gradient);
        color: var(--resource-overview-color);

        &::before {
            background-image: var(--resource-overview-bg-image-gradient-active);
        }
    }

    .lc-lesson-introduction {
        background-image: var(--resource-lesson-introduction-bg-image-gradient);
        color: var(--resource-lesson-introduction-color);

        &::before {
            background-image: var(--resource-lesson-introduction-bg-image-gradient-active);
        }
    }

    .lc-unit-introduction {
        background-image: var(--resource-unit-introduction-bg-image-gradient);
        color: var(--resource-unit-introduction-color);

        &::before {
            background-image: var(--resource-unit-introduction-bg-image-gradient-active);
        }
    }

    .lc-syllabus {
        background-image: var(--resource-syllabus-bg-image-gradient);
        color: var(--resource-syllabus-color);

        &::before {
            background-image: var(--resource-syllabus-bg-image-gradient-active);
        }
    }

    .lc-introduction {
        background-image: var(--resource-course-introduction-bg-image-gradient);
        color: var(--resource-course-introduction-color);

        &::before {
            background-image: var(--resource-course-introduction-bg-image-gradient-active);
        }
    }

    .lc-additional {
        background-image: var(--resource-additional-bg-image-gradient);
        color: var(--resource-additional-color);

        &::before {
            background-image: var(--resource-additional-bg-image-gradient-active);
        }
    }

    /* Learning Component Types */

    .lc-warm-up {
        background-image: var(--lc-warm-up-bg-image-gradient);
        color: var(--lc-warm-up-color);

        &::before {
            background-image: var(--lc-warm-up-bg-image-gradient-active);
        }
    }

    .lc-direct-instruction {
        background-image: var(--lc-direct-instruction-bg-image-gradient);
        color: var(--lc-direct-instruction-color);

        &::before {
            background-image: var(--lc-direct-instruction-bg-image-gradient-active);
        }
    }

    .lc-guided-practice {
        background-image: var(--lc-guided-practice-bg-image-gradient);
        color: var(--lc-guided-practice-color);

        &::before {
            background-image: var(--lc-guided-practice-bg-image-gradient-active);
        }
    }

    .lc-independent-practice {
        background-image: var(--lc-independent-practice-bg-image-gradient);
        color: var(--lc-independent-practice-color);

        &::before {
            background-image: var(--lc-independent-practice-bg-image-gradient-active);
        }
    }
}
/* courses#show left navigation */
.left-nav {
    display: flex;
    flex-direction: column;
    padding: .73rem;
    gap: .5rem;
}

.left-nav a.nav-icon {
    display: flex;
    transition-duration: 0.12s;
    transition-property: background-color, border-color, color;
    transition-timing-function: ease-in-out;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    width: 2.5rem;
    height: 2.5rem;
}

.left-nav a i,
.left-nav a i:hover {
    color: black;
}

.left-nav a,
.left-nav a:hover,
.left-nav a:active,
.left-nav a:visited,
.left-nav a:focus {
    text-decoration: none 0 transparent;
}
.parent-standard {
    display: flex;
    flex-direction: column;
    border-radius: 4px;

    .resource-row-container .resource-row .resource-content-container label.resource-content:hover {
        cursor: pointer;
    }

    .parent-info-container {
        display: flex;
        flex-direction: column;
        padding: 0 1rem 0 4rem;
        margin: 0 -1rem;
        height: 0;
        transition: height 120ms ease-in-out;
        overflow: hidden;

        .parent-standard-row {
            position: relative;
            
            .resource-row-container,
            .empty-parent-list {
                padding-block-start: var(--bp-3xs);

                &:last-of-type {
                    padding-block-end: var(--bp-3xs);
                }
            }

            .empty-parent-list {
                display: flex;
                flex: 1 1 0;

                p {
                    padding: var(--bp-xs);
                    border: 1px solid var(--border-color);
                    border-radius: var(--bp-4xs);
                    display: flex;
                    flex: 1 1 0;
                    align-items: center;
                }
            }

            &:last-of-type::before {
                width: 1.9rem;
                height: 50%;
                border-bottom: 1px solid var(--gray-color);
                border-left: 1px solid var(--gray-color);
                content: "";
                position: absolute;
                bottom: 50%;
                left: -1.9rem;
            }

            &:not(:last-of-type) {
                &::before {
                    width: 1.9rem;
                    height: 0;
                    border-bottom: 1px solid var(--gray-color);
                    content: "";
                    position: absolute;
                    bottom: 50%;
                    left: -1.9rem;
                }

                &::after {
                    width: 2.9rem;
                    height: 100%;
                    border-left: 1px solid var(--gray-color);
                    content: "";
                    position: absolute;
                    left: -1.9rem;
                }
            }
        }
    }
}
.prompt-carousel {
    --visible-cards: 4;

    @media only screen and (max-width: 1280px) {
        --visible-cards: 3;
    }

    @media only screen and (max-width: 1024px) {
        --visible-cards: 2;
    }

    @media only screen and (max-width: 768px) {
        --visible-cards: 1;
    }
}

.prompt-card {
    min-width: calc(100% / var(--visible-cards) - 16px) !important;

    .prompt-label {
        flex-wrap: wrap;
    }
}
.prompt-studio-drawer-container {
    display: flex;
    flex-direction: row;

    .inputs-drawer {
        display: flex;
        flex-direction: column;
        padding-block: .5rem;
        padding-inline-end: 1.5rem;
        width: 25%;
        min-width: min-content;
        transition: max-width 200ms ease-in-out;

        &.collapsed {
            max-width: min-content;
            min-width: min-content;
        }
    }

    .prompt {
        display: flex;
        flex-direction: column;
        flex: 1 1 0;
        padding-block: .5rem;
        padding-inline-start: 1.5rem;
        min-width: 20%;
    }

    .gutter {
        position: relative;
    }

}
/*
    This is a resource row or 'tile'. These are hoverable tiles that, when clicked, open the context drawer for the user.
*/

.resource-row-container {
    flex: 1 1 0%;

    .resource-row {
        border: 1px solid var(--neutral-50);
        border-radius: var(--bp-4xs);
        background-color: var(--neutral-0);
        transition: all .15s ease-in-out;
        display: flex;
        align-items: center;

        &.ai-suggestion-row {
            background-color: var(--slate-100);
            border: 1px solid var(--slate-300);
        }
    }

    .resource-actions-menu {
        background-color: var(--neutral-0);
        border-radius: var(--bp-4xs);
        box-shadow: 0 var(--bp-6xs) var(--bp-4xs) rgba(0, 0, 0, 0.25);
        opacity: 0;
        transform: translateX(2.5rem);
        transition: all .15s ease-in-out;
        grid-row: 1/-1;
        grid-column: 1/-1;
        display: flex;
        align-items: center;
        align-self: center;
        gap: var(--bp-5xs);
        justify-self: end;
        padding: var(--bp-xs);
    }

    .resource-content-container {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));
        grid-template-rows: repeat(1, minmax(0, 1fr));
        justify-content: center;
        flex: 1 1 0;

        &:has(.resource-row-checkbox) {
            grid-template-columns: min-content 1fr;

            .resource-row-checkbox {
                grid-column: 1/2;
                grid-row: 1/-1;
                padding: var(--bp-xs);
            }

            .resource-content {
                grid-column: 2/-1;
                padding-left: 0;
            }
        }
    }

    .resource-content {
        grid-row: 1/-1;
        grid-column: 1/-1;
        padding: var(--bp-xs);
        gap: var(--bp-xs);
        align-items: flex-start;
        display: flex;
        flex: 1 1 0;
        color: inherit;
        text-decoration: none;

        &:hover,
        &:visited,
        &:focus {
            color: inherit;
            text-decoration: none;
        }
    }

    &:hover {
        .resource-actions-menu {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    &:hover,
    &.active {
        position: relative;

        .standard-row {
            --resource-color: var(--standard-color);
        }

        .learning-component-row {
            --resource-color: var(--learning-component-color);
        }

        .learning-objective-row {
            --resource-color: var(--learning-objective-color);
        }

        .assessment-item-row {
            --resource-color: var(--assessment-item-color);
        }

        .ai-suggestion-row {
            --resource-color: var(--ai-suggestion-color);
        }

        .assessment-row {
            --resource-color: var(--assessment-color);
        }

        .glossary-term-row {
            --resource-color: var(--glossary-term-color)
        }

        .glossary-entry-row {
            --resource-color: var(--glossary-entry-color)
        }

        .source-row {
            --resource-color: var(--source-color)
        }

        .project-step-row {
            --resource-color: var(--project-step-color);
        }

        .bundle-row {
            --resource-color: var(--gray-color);
        }

        .project-row {
            --resource-color: var(--project-color);
        }

        .discussion-row {
            --resource-color: var(--discussion-color);
        }

        .ai-message-row {
            --resource-color: var(--ai-message-color);
        }

        .resource-row {
            border-color: var(--resource-color);
            box-shadow: 0 var(--bp-4xs) var(--bp-2xs) rgba(0, 0, 0, 0.25);
            transform: scale(1.01);
        }
    }

    &.active {
        .resource-row::after {
            content: '';
            --active-indicator-size: .6rem;
            border-top: var(--active-indicator-size) solid transparent;
            border-bottom: var(--active-indicator-size) solid transparent;
            border-left: var(--active-indicator-size) solid var(--resource-color);
            position: absolute;
            right: calc(-1 * var(--active-indicator-size));
            z-index: -1;
        }
    }

    /* Selected state using resource-specific colors */
    &.resource-selected {
        .resource-row {
            border-left: 8px solid var(--resource-color);
            background-color: color-mix(in srgb, var(--resource-color) 5%, var(--neutral-0));
            box-shadow: 0 var(--bp-4xs) var(--bp-2xs) rgba(0, 0, 0, 0.15);
        }
    }

}

/* Evaluation Card Selection Styles */
.evaluation-card-container.evaluation-card-selected .evaluation-card {
    border: 1px solid var(--evaluation-color) !important;
    background-color: color-mix(in srgb, var(--evaluation-color) 2%, var(--neutral-0)) !important;
    box-shadow: 0 var(--bp-4xs) var(--bp-2xs) rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease-in-out;
    --resource-color: var(--evaluation-color);
}



/* Evaluation cards selected state with arrow */
.evaluation-card-container.evaluation-card-selected {
    position: relative;
}

.evaluation-card-container.evaluation-card-selected .evaluation-card::after {
    content: '';
    --active-indicator-size: .6rem;
    border-top: var(--active-indicator-size) solid transparent;
    border-bottom: var(--active-indicator-size) solid transparent;
    border-left: var(--active-indicator-size) solid var(--evaluation-color);
    position: absolute;
          right: calc(-1 * var(--active-indicator-size));
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
/* tree styling full pseudo-element implementation */
.tree-accordion {
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow-clip-margin: 1rem;

  >div {
    flex-direction: column;
    display: flex;
    margin: 0 0 0 3rem;
    position: relative;

    /* empty trees when expanded won't create whitespace */
    &:not(:has(.tree-accordion)) {
      padding: 0;
    }
  }

  >summary {
    display: flex;
    padding: 0;
    flex: 1 0 0;
    justify-content: space-between;
    position: relative;

    &:hover {
      cursor: pointer;
    }

    &::-webkit-details-marker {
      display: none;
    }

    /* closed icon (chevron right) */
    >span {
      &:first-of-type {
        display: flex;
        flex: 1 1 1.9rem;
      }

      >a {
        color: var(--gray-color);
        text-decoration: none;
        display: flex;
        flex: 1 1 100%;
        align-items: start;
        transform: translateY(20px);
        z-index: 1;

        >i {
          border-radius: 16px;
          color: var(--gray-color);
          transition: all 120ms ease-in-out;
        }
      }
    }

    &:hover {
      >span>a>i {
        background-color: var(--background-color);
        color: var(--outline-color-hover);
      }
    }
  }

  /* open icon (chevron down) */
  &[open] {
    position: relative;
  }

  /* nested trees */
  .tree-accordion {

    /* T line */
    >summary {
      &:hover {
        &::before {
          z-index: 0;
        }
      }

      &::before {
        width: 2.9rem;
        height: 100%;
        border-left: 1px solid var(--gray-color);
        content: "";
        position: absolute;
        left: 0;
      }
    }

    /* T nub */
    >summary::after {
      width: 1.9rem;
      height: 0;
      border-bottom: 1px solid var(--gray-color);
      content: "";
      position: absolute;
      left: 0;
      top: 26px;
    }

    /* L */
    &:last-of-type>summary::before {
      width: 1.9rem;
      height: 50%;
      border-bottom: 1px solid var(--gray-color);
      border-left: 1px solid var(--gray-color);
      content: "";
      position: absolute;
      bottom: 50%;
      left: 0;
    }

    /* extended line when open */
    &[open]:not(:last-of-type)::before {
      border-left: 1px solid var(--gray-color);
      position: absolute;
      left: 0;
      width: 2.9rem;
      height: 100%;
      content: "";
    }

    /* change icon position and icon only for nested trees, (circle plus -> circle minus) */
    >summary {

      &:hover {
        >span:last-of-type {
          z-index: 2;
        }
      }

      >span {
        position: relative;

        &:last-of-type {
          padding-block-start: .25rem;
          z-index: 1;
        }

        >a>i {
          background-color: white;
          position: relative;
          z-index: 1;
          left: -.4rem;
          min-height: inherit;
        }
      }
    }
  }

  /* Line highlighting hover logic. For future reference in case this is needed. */
  /*&:hover {
        &::before {
            border-color: var(--outline-color-hover) !important;
        }

        > summary::after {
            border-color: var(--outline-color-hover) !important;
        }
    }

    > summary:hover {
        &::before,
        &::after,
        > span > i {
            color: var(--outline-color-hover) !important;
            border-color: var(--outline-color-hover) !important;
        }
    }

    &::before,
    > summary::before,
    > summary::after,
    > summary > span > i {
        transition: all 120ms ease-in-out;
    }*/
}
.cke_dialog_container {
    z-index: 999 !important;
    padding: 10% !important;
    width: 80% !important;
    height: 80% !important;

    &::before {
        content: '';
        background-color: var(--neutral-950);
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 50%;
    }

    table {
        top: unset !important;
        bottom: 0 !important;
        left: 0 !important;
        width: auto !important;
        height: 100% !important;
        position: relative !important;
        display: flex !important;
        overflow: hidden !important;
        border-radius: var(--bp-3xs) !important;

        tbody {
            overflow: scroll !important;

            .cke_dialog_contents_body {
                height: 100% !important;
            }
        }
    }
}

.lrn-author-list-view-desc.lrn-author-ellipses {
    max-width: 40ch !important;
}

.lrn-author-row.lrn-author-row-narrow {
    display: flex !important;
    flex-wrap: wrap !important;
}

.lrn-author-col-xs-10.lrn-author-col-md-11.lrn-author-ui-no-preview.lrn-author-list-details.lrn-author-flex {
    flex-wrap: wrap !important;
}

/* Fix double chevron on Learnosity dropdown/cloze questions in pool preview */
.pool-preview-container .lrn select,
.pool-preview-container .lrn-cloze-select select,
.pool-preview-container .learnosity-item select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: none !important;
}
/* Meta Workflows Styles Installed in Main App */
.meta-workflows.chat {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--slate-800);
  font-size: 1.125rem;
  line-height: 1.75;

  h1 {
    color: var(--slate-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.875rem;
    line-height: 1.25;
  }

  h2 {
    color: var(--slate-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    line-height: 1.25;
  }

  h3 {
    color: var(--slate-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    line-height: 1.25;
  }

  h4 {
    color: var(--slate-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    line-height: 1.25;
  }

  h5 {
    color: var(--slate-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.25;
  }

  h6 {
    color: var(--slate-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25;
  }

  /* combined list styles */
  ul,
  ol {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0;
    list-style-type: none;

    li {
      display: flex;
      padding: 1rem 1.375rem;
      border: 1px solid var(--slate-300);
      border-radius: 0.875rem;
      background-color: white;
      font-size: 1.25rem;
      font-weight: 600;
      line-height: 1.375;

      &::before {
        display: none;
      }
    }
  }

  /* ordered list specific styles */
  ol {
    counter-reset: list-counter;

    li::before {
      content: counter(list-counter) '.';
      counter-increment: list-counter;
      display: inline-block;
      width: 1.5em;
      margin-right: 0.5em;
      color: var(--slate-400);
    }
  }

  a {
    color: var(--blue-600);
    text-decoration: underline;

    &:hover {
      color: var(--blue-700);
    }
  }

  pre {
    background-color: var(--gray-50);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
  }

  code {
    background-color: var(--gray-50);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: ui-monospace, monospace;
  }

  blockquote {
    border-left: 4px solid var(--gray-200);
    padding-left: 1rem;
    font-style: italic;
    color: var(--gray-600);
    margin: 1rem 0;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
  }

  th,
  td {
    border: 1px solid var(--gray-200);
    padding: 0.5rem;
    text-align: left;
  }

  th {
    background-color: var(--gray-50);
    font-weight: 600;
  }

  img {
    border-radius: 0.5rem;
    margin: 1rem 0;
  }

  strong {
    font-weight: 600;
    color: var(--slate-800);
  }

  em {
    font-style: italic;
  }
}

/* Loader Message Styles */
.lexi-loader-bubble {
  padding: 0.25rem 0.5rem;
  margin-bottom: 0.25rem;
  border: none;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes dot-bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.lexi-loader-text {
  font-size: 1.25rem;
  background: linear-gradient(135deg, #7b5ba3 0%, #3a9999 50%, #7b5ba3 100%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: italic;
  animation: gradient-shift 2s ease-in-out infinite;
  -webkit-text-stroke: 0.75px rgba(0, 0, 0, 0.15);
  text-stroke: 0.75px rgba(0, 0, 0, 0.15);
}

.lexi-loader-ellipses {
  display: inline-block;
}

.lexi-dot {
  display: inline-block;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #7b5ba3 0%, #3a9999 50%, #7b5ba3 100%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradient-shift 2s ease-in-out infinite,
    dot-bounce 1.4s ease-in-out infinite;
  -webkit-text-stroke: 0.75px rgba(0, 0, 0, 0.15);
  text-stroke: 0.75px rgba(0, 0, 0, 0.15);
  margin-left: -0.125rem;
}

.lexi-dot-1 {
  animation-delay: 0s, 0s;
}

.lexi-dot-2 {
  animation-delay: 0s, 0.2s;
}

.lexi-dot-3 {
  animation-delay: 0s, 0.4s;
}

.lexi-dot.lexi-dot-error {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #dc2626 100%);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-text-stroke: 0.75px rgba(220, 38, 38, 0.15);
  text-stroke: 0.75px rgba(220, 38, 38, 0.15);
}

.lexi-loader-container {
  margin-top: -0.5rem;
}

/* Lexi Chat Tray Styles */
.lexi-chat-tray {
  display: flex;
  flex-direction: column;
  background-color: white;
  padding: 0 1.5rem;
}

.lexi-chat-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.lexi-chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lexi-chat-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lexi-chat-logo {
  height: 3.5rem;
  width: auto;
}

.lexi-chat-button {
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.lexi-chat-button:hover {
  background-color: var(--gray-100);
}

.lexi-chat-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.lexi-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lexi-chat-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
  padding-bottom: 1rem;
}

.lexi-avatar {
  height: 10.5rem;
  width: auto;
  pointer-events: none;
}

.lexi-input-wrapper {
  width: 100%;
  max-width: 32rem;
}

/* Response Form Styles */
.lexi-form-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lexi-input-container {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem;
}

.lexi-textarea-wrapper {
  flex: 1;
  position: relative;
}

.lexi-textarea {
  width: 100%;
  height: 100%;
  min-height: 35px;
  border: none;
  resize: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  overflow-y: auto;
}

.lexi-textarea:focus {
  outline: none;
  box-shadow: none;
}

.lexi-input-controls {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.lexi-input-icons {
  display: flex;
  gap: 0.25rem;
  align-items: flex-end;
}

.lexi-icon-button {
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.lexi-icon-button:hover {
  background-color: var(--gray-100);
}

.lexi-icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.lexi-send-button {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.lexi-send-button.responding {
  background-color: var(--purple-600);
  opacity: 0.5;
  cursor: not-allowed;
}

.lexi-recording-notice {
  text-align: left;
  font-size: 0.875rem;
  color: var(--purple-800);
}

.lexi-advance-button {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-700);
}

.lexi-advance-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Response Bubble Styles */
.lexi-response-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lexi-message-user {
  display: flex;
  justify-content: flex-end;
}

.lexi-message-assistant {
  display: flex;
  justify-content: flex-start;
}

.lexi-message-bubble-user {
  max-width: 80%;
  background-color: var(--purple-300);
  border-radius: 0.75rem;
  padding: 1rem;
}

.lexi-message-bubble-assistant {
  max-width: 80%;
  background-color: white;
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  align-items: center;
}

.lexi-message-content-user {
  font-size: 1.25rem;
  color: var(--gray-800);
}

.lexi-message-content-assistant {
  color: black;
  font-size: 1.25rem;
  line-height: 1.25;
  max-width: none;
}

.lexi-message-content-assistant h1,
.lexi-message-content-assistant h2,
.lexi-message-content-assistant h3,
.lexi-message-content-assistant h4,
.lexi-message-content-assistant h5,
.lexi-message-content-assistant h6 {
  color: black;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.lexi-message-content-assistant h1 {
  font-size: 1.5rem;
}

.lexi-message-content-assistant h2 {
  font-size: 1.25rem;
}

.lexi-message-content-assistant h3 {
  font-size: 1.125rem;
}

.lexi-message-content-assistant p {
  margin-bottom: 1rem;
}

.lexi-message-content-assistant ul,
.lexi-message-content-assistant ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.lexi-message-content-assistant li {
  margin-bottom: 0.5rem;
}

.lexi-message-content-assistant a {
  color: var(--blue-600);
  text-decoration: underline;
}

.lexi-message-content-assistant a:hover {
  color: var(--blue-700);
}

.lexi-message-content-assistant code {
  background-color: var(--gray-100);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
}

.lexi-message-content-assistant pre {
  background-color: var(--gray-100);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.lexi-message-content-assistant blockquote {
  border-left: 4px solid var(--gray-200);
  padding-left: 1rem;
  font-style: italic;
  color: var(--gray-500);
  margin: 1rem 0;
}

/* Lexi Chat Component Heights */
.lexi-chat-container-full {
  height: 95vh;
}

/* Lexi Chat Component Constraints */
.lexi-input-max-height {
  max-height: 200px;
}

.lexi-textarea-min-height {
  min-height: 35px;
}

/* Tray Animations */
.tray-container {
  transition: all 500ms ease-in-out;
}

/* Common content transitions */
.tray-content {
  transition: opacity 300ms ease-in-out, transform 500ms ease-in-out;
  opacity: 1;
  transform: translate(0);
}

.beta-tray {
  transition: width 500ms ease-in-out;
}

.beta-tray.collapsed {
  width: 70px;
}

.beta-tray.collapsed .tray-content {
  opacity: 0;
  transform: translateX(1rem);
  pointer-events: none;
}

.gamma-tray.collapsed {
  width: 70px;
}

.gamma-tray.collapsed .tray-content {
  opacity: 0;
  transform: translateX(-1rem);
  pointer-events: none;
}

/* Lexi Tray Overrides */
.gamma-tray.lexi-tray.collapsed {
  width: 0px; /* Completely hide the tray */
  border: none; /* Remove border when collapsed */
  overflow: visible; /* Allow avatar to show outside tray bounds */
}

.gamma-tray.lexi-tray.collapsed .tray-content {
  opacity: 0;
  transform: translateX(-1rem);
  pointer-events: none;
}

/* Hide standard collapse button when Lexi tray is collapsed */
.gamma-tray.lexi-tray.collapsed
  > button[data-action='click->tray#toggleGamma']:not(.lexi-floating-avatar) {
  display: none;
}

/* Show floating Lexi avatar button when collapsed - with delay to avoid overlap */
.gamma-tray.lexi-tray.collapsed .lexi-floating-avatar {
  display: block;
  opacity: 1;
  position: fixed;
  bottom: 24px;
  right: 24px;
  /* No animation - instant response */
}

@keyframes lexi-avatar-appear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hide floating avatar when tray is expanded */
.gamma-tray.lexi-tray:not(.collapsed) .lexi-floating-avatar {
  display: none;
}

/* Delta Tray (Bottom) */
.delta-tray {
  transition: height 500ms ease-in-out;
}

.delta-tray.collapsed {
  height: 50px;
}

.delta-tray.collapsed .tray-content {
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
}

/* Onboarding Screen Grid Stacking Animations */
.onboarding-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 100%;
  height: 100vh;
}

.welcome-screen,
.chat-screen {
  grid-column: 1;
  grid-row: 1;
}

/* Welcome screen - starts normal, fades out */
.welcome-screen {
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
  z-index: 10;
}

.welcome-screen.fade-out {
  opacity: 0;
}

/* Chat screen - starts hidden, fades in */
.chat-screen {
  opacity: 0;
  pointer-events: none; /* Don't block clicks when hidden */
  transition: opacity 0.8s ease-in-out 0.3s; /* 0.3s delay after welcome starts fading */
  z-index: 15; /* Higher than welcome screen */
}

.chat-screen.expand-in {
  opacity: 1;
  pointer-events: auto; /* Re-enable clicks when visible */
}

/* Legacy animation states for backwards compatibility */
.welcome-content.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.lexi-icon-container.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* Alpha Tray Lexi Avatar Size */
.lexi-avatar-large {
  height: 30rem;
  width: auto;
}

/* Alpha Tray Specific Styles */
.lexi-chat-alpha-tray {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: white;
  padding: 1rem 1rem 0 1rem;
  height: 95vh;
}

.lexi-chat-alpha-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
}

.lexi-chat-alpha-header-left {
  display: flex;
  align-items: center;
}

.lexi-chat-alpha-header-right {
  display: flex;
  align-items: center;
}

.lexi-chat-alpha-logo {
  height: 80px;
  width: auto;
}

.lexi-chat-alpha-close-button {
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.lexi-chat-alpha-close-button:hover {
  background-color: #f3f4f6;
}

.lexi-chat-alpha-content {
  flex: 1;
  display: flex;
  gap: 1rem;
  min-height: 0;
}

.lexi-chat-alpha-left-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex-shrink: 0;
}

.lexi-chat-alpha-right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lexi-chat-alpha-messages {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 1rem;
}

.lexi-chat-alpha-messages > * + * {
  margin-top: 1rem;
}

.lexi-chat-alpha-input-area {
  flex-shrink: 0;
}

.lexi-chat-alpha-input-container {
  width: 100%;
}

.lexi-error-content {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--red-700);
}

.lexi-error-content .lexi-loader-ellipses {
  margin-left: 0.375rem;
}

/* Structured Input Styles */
.structured-input-container {
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 0.75rem;
}

.structured-input-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Radio Button Styles */
.structured-radio-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  background-image: linear-gradient(white, white),
    linear-gradient(var(--gray-300), var(--gray-300));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.structured-radio-option:hover {
  background-image: linear-gradient(white, white),
    linear-gradient(45deg, #f3b51c, #e87c66, #f3b51c, #e87c66);
  background-size: auto, 300% 300%;
  animation: animatedgradient 3s ease alternate infinite;
}

.structured-radio-option:has(.structured-radio-input:checked) {
  background-color: var(--purple-50);
}

.structured-radio-input {
  display: none;
}

.structured-radio-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
  flex: 1;
}

/* Checkbox Styles */
.structured-checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  background-image: linear-gradient(white, white),
    linear-gradient(var(--gray-300), var(--gray-300));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.structured-checkbox-option:hover {
  background-image: linear-gradient(white, white),
    linear-gradient(45deg, #f3b51c, #e87c66, #f3b51c, #e87c66);
  background-size: auto, 300% 300%;
  animation: animatedgradient 3s ease alternate infinite;
}

.structured-checkbox-option:has(.structured-checkbox-input:checked) {
  background-image: linear-gradient(white, white),
    linear-gradient(45deg, #f3b51c, #e87c66);
}

.structured-checkbox-input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--purple-700);
  cursor: pointer;
}

.structured-checkbox-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-800);
  cursor: pointer;
  flex: 1;
}

/* Slider Styles */
.structured-slider-container {
  padding: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  background-color: var(--gray-50);
}

.structured-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
}

.structured-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.structured-slider-input {
  width: 100%;
  height: 1rem;
  border-radius: 0.25rem;
  background: transparent;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  --slider-fill: 0%;
  border: none;
}

.structured-slider-input::-webkit-slider-runnable-track {
  width: 100%;
  height: 1rem;
  border-radius: 0.25rem;
  background: linear-gradient(
    90deg,
    #f3b51c 0%,
    #e87c66 var(--slider-fill),
    #e5e7eb var(--slider-fill),
    #e5e7eb 100%
  );
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: 1px solid var(--gray-300);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.structured-slider-input::-moz-range-track {
  width: 100%;
  height: 1rem;
  border-radius: 0.25rem;
  background: linear-gradient(
    90deg,
    #f3b51c 0%,
    #e87c66 var(--slider-fill),
    #e5e7eb var(--slider-fill),
    #e5e7eb 100%
  );
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: 1px solid var(--gray-300);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.structured-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5625rem;
  background: var(--purple-700);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 320 512'%3e%3cpath d='M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z'/%3e%3c/svg%3e");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  margin-top: -0.65rem;
}

.structured-slider-input::-webkit-slider-thumb:hover {
  background-color: var(--purple-800);
  transform: scale(1.1);
}

.structured-slider-input::-moz-range-thumb {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5625rem;
  background: var(--purple-700);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 320 512'%3e%3cpath d='M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z'/%3e%3c/svg%3e");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  margin-top: -0.65rem;
}

.structured-slider-input::-moz-range-thumb:hover {
  background-color: var(--purple-800);
  transform: scale(1.1);
}

.structured-slider-value {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--purple-700);
  padding: 0.5rem;
  background-color: var(--purple-50);
  border-radius: 0.375rem;
  border: 1px solid var(--purple-200);
}

/* Structured Input Submit Container */
.structured-submit-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* Structured Input Submit Button */
.structured-submit-button {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--purple-600);
  color: white;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
  align-self: flex-end;
}

.structured-submit-button:hover {
  background-color: var(--purple-700);
  transform: scale(1.05);
}

.structured-submit-button:disabled {
  background-color: var(--gray-400);
  cursor: not-allowed;
  transform: none;
}

/* Structured Input Validation Styles */
.structured-input-container[data-invalid='true'] {
  border-color: var(--red-500);
  background-color: var(--red-50);
}

.structured-input-error {
  color: var(--red-600);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Screen reader only class for accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animated Gradient Keyframes */
@keyframes animatedgradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
/* Course Builder CSS Variables */
:root {
  /* Resource Variables */

  /* Standard */
  --standard-color: var(--purple-600);

  /* Learning Objective */
  --learning-objective-color: var(--lime-500);

  /* Learning Component */
  --learning-component-color: var(--sky-400);

  /* Warm Up */
  --lc-warm-up-color: var(--yellow-800);
  --lc-warm-up-bg-image-gradient: linear-gradient(
    to bottom,
    var(--yellow-50),
    var(--yellow-100)
  );
  --lc-warm-up-bg-image-gradient-active: linear-gradient(
    to bottom,
    var(--yellow-100),
    var(--yellow-300)
  );

  /* Direct Instruction */
  --lc-direct-instruction-color: var(--lime-800);
  --lc-direct-instruction-bg-image-gradient: linear-gradient(
    to bottom,
    var(--lime-50),
    var(--lime-100)
  );
  --lc-direct-instruction-bg-image-gradient-active: linear-gradient(
    to bottom,
    var(--lime-100),
    var(--lime-300)
  );

  /* Guided Practice */
  --lc-guided-practice-color: var(--teal-800);
  --lc-guided-practice-bg-image-gradient: linear-gradient(
    to bottom,
    var(--teal-50),
    var(--teal-100)
  );
  --lc-guided-practice-bg-image-gradient-active: linear-gradient(
    to bottom,
    var(--teal-100),
    var(--teal-300)
  );

  /* Independent Practice */
  --lc-independent-practice-color: var(--red-800);
  --lc-independent-practice-bg-image-gradient: linear-gradient(
    to bottom,
    var(--pink-50),
    var(--pink-100)
  );
  --lc-independent-practice-bg-image-gradient-active: linear-gradient(
    to bottom,
    var(--pink-100),
    var(--pink-300)
  );

  /* Assessment Item */
  --assessment-item-color: var(--teal-600);

  /* AI Suggestion */
  --ai-suggestion-color: var(--indigo-600);

  /* Assessment */
  --assessment-color: var(--teal-600);

  /* Project */
  --project-color: var(--orange-600);

  --project-step-color: var(--orange-600);

  /* Discussion */
  --discussion-color: var(--emerald-600);

  /* Evaluation */
  --evaluation-color: var(--indigo-400);

  /* Glossary Term */
  --glossary-term-color: var(--slate-600);

  --glossary-entry-color: var(--slate-600);

  --source-color: var(--slate-600);

  /* AI Message */
  --ai-message-color: var(--blue-600);

  /* Status Variables */

  /* Draft */
  --draft-color: var(--gray-300);

  /* In Process */
  --in-process-color: var(--sky-500);

  /* In Review */
  --in-review-color: var(--yellow-500);

  /* Approved */
  --approved-color: var(--purple-600);

  /* Done */
  --done-color: var(--lime-500);
}

.application-loader {
  position: absolute;
  top: 50%;
  left: 50%;
}

.application-loader > #lightbulb {
  height: 15em;
}

.dropdown-input {
  display: none;
}

/* Create a new class but use the classes from the button classes? */
.sm-btn.sm-btn-dropdown {
  justify-content: space-between;
}

.sm-accordion {
  align-items: unset !important;
}


/* Course Outline Icon Color Consistency - Override blue-950 icons to white on dark levels */
/* Target levels 4+ where we have white text backgrounds */
.sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion i,
.sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .text-blue-950 {
  color: white;
}

.sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion i,
.sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .text-blue-950 {
  color: white;
}

.sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion i,
.sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .text-blue-950 {
  color: white;
}

/* Course Outline Nesting Visual Hierarchy - Flat 16px indent per level */
/* Level 1 nesting (Units) - 16px indent from parent */
.sm-accordion .sm-accordion.sm-accordion {
  margin-left: 16px;
}

.sm-accordion .sm-accordion > summary {
  background-color: var(--slate-200);
}

/* Level 2 nesting (Lessons) - 16px indent from parent */
.sm-accordion .sm-accordion .sm-accordion.sm-accordion {
  margin-left: 16px;
}

.sm-accordion .sm-accordion .sm-accordion > summary {
  background-color: var(--slate-300);
}

/* Level 3 nesting (Sub-lessons) - 16px indent from parent */
.sm-accordion .sm-accordion .sm-accordion .sm-accordion.sm-accordion {
  margin-left: 16px;
}

.sm-accordion .sm-accordion .sm-accordion .sm-accordion > summary {
  background-color: var(--slate-400);
}

/* Level 4 nesting - 16px indent from parent, white text for readability */
.sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion.sm-accordion {
  margin-left: 16px;
}

.sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion > summary {
  background-color: var(--slate-500);
  color: white;
}

/* Level 5 nesting - 16px indent from parent */
.sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion.sm-accordion {
  margin-left: 16px;
}

.sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion > summary {
  background-color: var(--slate-600);
  color: white;
}

/* Level 6 nesting - 16px indent from parent */
.sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion.sm-accordion {
  margin-left: 16px;
}

.sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion > summary {
  background-color: var(--slate-700);
  color: white;
}

/* Level 7 nesting - 16px indent from parent, final level using slate-800 */
.sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion.sm-accordion {
  margin-left: 16px;
}

.sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion .sm-accordion > summary {
  background-color: var(--slate-800);
  color: white;
}

/* ✅ Toast UI Editor scroll containment fix - !important needed to override library styles */
.sm-accordion:has([data-toast-ui-editor-target="editor"]) .toastui-editor-contents {
  overflow: auto;
  max-height: 600px;
  position: relative;
}

.sm-accordion:has([data-toast-ui-editor-target="editor"]) .toastui-editor {
  overflow: visible 
  position: relative 
}

.sm-accordion:has([data-toast-ui-editor-target="editor"]) .toastui-editor-toolbar {
  top: 0 !important;

}

/* Ensure proper scroll behavior in accordion context */
.sm-accordion:has([data-toast-ui-editor-target="editor"]) {
  position: relative;
}

.dropdown-menu {
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.1);
  flex-direction: column;
  top: 100%;
  right: 0 !important;
}

.dropdown-input + .dropdown-menu {
  display: none !important;
}

.dropdown-input:checked + .dropdown-menu {
  display: flex !important;
}

.sm-tab-content {
  display: none;
}

.sm-tab-content.active {
  display: block;
}

/* Wave Machine */
.waves {
  /*max-height: 100px;*/
  height: min(25%, 75px);
  width: 100%;
}

.parallax > use {
  animation: move-forever 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.parallax > use:nth-child(1) {
  animation-delay: -1s;
  animation-duration: 5s;
}

.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax > use:nth-child(3) {
  animation-delay: -5s;
  animation-duration: 15s;
}

.parallax > use:nth-child(4) {
  animation-delay: -7s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* Star Animation */
.star-1 {
  opacity: 0;
  transform-origin: center;
  animation: starFade 1s ease-in-out infinite;
}

.star-2 {
  opacity: 0;
  transform-origin: center;
  animation: starFade 1.5s ease-in-out infinite;
  animation-delay: 0.3s;
}

.star-3 {
  opacity: 0;
  transform-origin: center;
  animation: starFade 1.25s ease-in-out infinite;
  animation-delay: 0.6s;
}

@keyframes starFade {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.75);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.no-scrollbar {
  overflow-y: scroll;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
}

.no-scrollbar::-webkit-scrollbar {
  /* WebKit */
  width: 0;
  height: 0;
}

.sticky-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background-color: rgb(245 245 245);
  z-index: 1000;
  padding: 10px 0;
  /* Optional: for spacing */
}

.break-words {
  word-break: break-word;
}

.assessment-item-columns {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(
    calc((var(--question-type-size) + 1) / 2),
    minmax(0, 1fr)
  );
}

@media only screen and (max-width: 640px) {
  .assessment-item-columns {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-template-rows: repeat(var(--question-type-size), minmax(0, 1fr));
  }
}

.tab-content {
  display: none;

  &.active {
    display: block;
  }
}

.textarea-auto {
  @supports (field-sizing: content) {
    field-sizing: content;
  }
}

/* AI Generated Content */
.simple-courses-generated-response {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--slate-800);
  font-size: 1.125rem;
  line-height: 1.75;

  h1 {
    color: var(--slate-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.875rem;
    line-height: 1.25;
  }

  h2 {
    color: var(--slate-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    line-height: 1.25;
  }

  h3 {
    color: var(--slate-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    line-height: 1.25;
  }

  h4 {
    color: var(--slate-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    line-height: 1.25;
  }

  h5 {
    color: var(--slate-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.25;
  }

  h6 {
    color: var(--slate-800);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25;
  }

  /* Combined list styles */
  ul,
  ol {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0;
    list-style-type: none;

    li {
      display: flex;
      padding: 1rem 1.375rem;
      border: 1px solid var(--slate-300);
      border-radius: 0.875rem;
      background-color: white;
      font-size: 1.25rem;
      font-weight: 600;
      line-height: 1.375;

      &::before {
        display: none;
      }
    }
  }

  /* Ordered list specific styles */
  ol {
    counter-reset: list-counter;

    li::before {
      content: counter(list-counter) '.';
      counter-increment: list-counter;
      display: inline-block;
      width: 1.5em;
      margin-right: 0.5em;
      color: var(--slate-400);
    }
  }

  a {
    color: #2563eb;
    text-decoration: underline;

    &:hover {
      color: #1d4ed8;
    }
  }

  pre {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
  }

  code {
    background-color: #f9fafb;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: ui-monospace, monospace;
  }

  blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1rem;
    font-style: italic;
    color: #374151;
    margin: 1rem 0;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
  }

  th,
  td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem;
    text-align: left;
  }

  th {
    background-color: #f9fafb;
    font-weight: 600;
  }

  img {
    border-radius: 0.5rem;
    margin: 1rem 0;
  }

  strong {
    font-weight: 600;
    color: var(--slate-800);
  }

  em {
    font-style: italic;
  }
}
