/* ============================================
   CONVERSATION COMPONENT - MINIMALIST MODERN UI
   ============================================ */

/* Container */
.lx-conv {
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Prevent scrolling on the container itself */
}

.lx-conv__timeline {
    max-width: 100%;
    position: relative;
    padding-top: 24px;
    padding-bottom: 24px;
    /* Reduced since footer is now separate */
    flex: 1;
    /* Take remaining space */
    overflow-y: auto;
    /* Timeline scrolls independently */
    overflow-x: hidden;
}

/* Timeline Line - Connects all main dots (Question and Answer cards) */
.lx-conv__timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--lx-color-neutral-300);
    opacity: 0.5;
    z-index: 1;
    height: 85%;
}

/* ============================================
   EMPTY STATE - MOTIVATIONAL DESIGN
   ============================================ */

.lx-conv-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    height: fit-content;
    opacity: 0;
    animation: lx-conv-empty-fade-in 0.4s ease-out 0.1s forwards;
}

@keyframes lx-conv-empty-fade-in {
    to {
        opacity: 1;
    }
}

.lx-conv-empty__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--lx-rounded-full);
    background: var(--lx-color-neutral-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.lx-conv-empty__icon .material-icons {
    font-size: 24px;
    color: var(--lx-color-neutral-500);
}

.lx-conv-empty__title {
    font-size: var(--lx-text-2xl);
    font-weight: var(--lx-font-bold);
    color: var(--lx-color-neutral-900);
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.lx-conv-empty__content {
    max-width: 360px;
    margin: 0 auto;
}

.lx-conv-empty__text {
    font-size: var(--lx-text-sm);
    line-height: 1.5;
    color: var(--lx-color-neutral-600);
    margin: 0 0 8px 0;
}

.lx-conv-empty__link {
    color: var(--lx-color-success-600);
    text-decoration: none;
    font-weight: var(--lx-font-medium);
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
    outline: none;
}

.lx-conv-empty__link:hover {
    color: var(--lx-color-success-700);
    border-bottom-color: var(--lx-color-success-600);
}

.lx-conv-empty__kbd {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: var(--lx-font-medium);
    font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
    color: var(--lx-color-neutral-600);
    background: white;
    border: 1px solid var(--lx-color-neutral-300);
    border-radius: 3px;
    box-shadow: 0 1px 0 0 var(--lx-color-neutral-300);
    margin: 0 1px;
    vertical-align: baseline;
}

.lx-conv-empty__hint {
    font-size: var(--lx-text-xs);
    line-height: 1.4;
    color: var(--lx-color-neutral-400);
    margin: 0;
}

/* Hide empty state when cards are present */
.lx-conv__timeline:has(.lx-conv-card) .lx-conv-empty {
    display: none;
}


/* ============================================
   CARD BASE - MINIMALIST DESIGN
   ============================================ */

.lx-conv-card {
    position: relative;
    margin-bottom: 20px;
    padding-left: 36px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    animation: lx-conv-card-fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes lx-conv-card-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple cards */
.lx-conv-card:nth-child(1) {
    animation-delay: 0.05s;
}

.lx-conv-card:nth-child(2) {
    animation-delay: 0.1s;
}

.lx-conv-card:nth-child(3) {
    animation-delay: 0.15s;
}

.lx-conv-card:nth-child(4) {
    animation-delay: 0.2s;
}

.lx-conv-card:nth-child(5) {
    animation-delay: 0.25s;
}

.lx-conv-card:nth-child(n+6) {
    animation-delay: 0.3s;
}

/* Timeline Dot - Pulsing effect */
.lx-conv-card__dot {
    position: absolute;
    left: 10px;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: var(--lx-rounded-full);
    background: white;
    border: 2px solid var(--lx-color-neutral-500);
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
}

.lx-conv-card__dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: var(--lx-rounded-full);
    background: currentColor;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show inner dot for expanded cards */
.lx-conv-card:not(.lx-conv-card--collapsed) .lx-conv-card__dot::after {
    opacity: 1;
}

/* Also show on hover */
.lx-conv-card:hover .lx-conv-card__dot::after {
    opacity: 1;
}

.lx-conv-card:hover .lx-conv-card__dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

/* Card Body - Modern Card Design */
.lx-conv-card__body {
    background: white;
    border: 1px solid var(--lx-color-neutral-300);
    border-radius: var(--lx-rounded-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 1px 2px rgba(0, 0, 0, 0.03);
}

.lx-conv-card__body:hover {
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.08),
        0 6px 14px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    transform: translateY(-3px);
}

.lx-conv-card--question .lx-conv-card__body:hover {
    border-color: var(--lx-color-neutral-500);
}

.lx-conv-card--answer .lx-conv-card__body:hover {
    border-color: var(--lx-color-success-600);
}


/* ============================================
   HEADER STYLES - GRADIENT & MODERN
   ============================================ */

/* Question Card Header */
.lx-conv-card--question .lx-conv-card__dot {
    border-color: var(--lx-color-neutral-700);
    color: var(--lx-color-neutral-700);
}

.lx-conv-card--question .lx-conv-card__hdr {
    background: linear-gradient(135deg, var(--lx-color-neutral-700) 0%, var(--lx-color-neutral-900) 100%);
    color: white;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.lx-conv-card--question .lx-conv-card__hdr::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.lx-conv-card--question .lx-conv-card__body:hover .lx-conv-card__hdr::before {
    left: 100%;
}

/* Answer Card Header */
.lx-conv-card--answer .lx-conv-card__dot {
    border-color: var(--lx-color-success-600);
    color: var(--lx-color-success-600);
}

.lx-conv-card--answer .lx-conv-card__hdr {
    background: linear-gradient(135deg, var(--lx-color-success-600) 0%, var(--lx-color-emerald-700) 100%);
    color: white;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.lx-conv-card--answer .lx-conv-card__hdr::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.lx-conv-card--answer .lx-conv-card__body:hover .lx-conv-card__hdr::before {
    left: 100%;
}

/* Header Content */
.lx-conv-card__hdr-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.lx-conv-card__num {
    font-size: 10px;
    font-weight: var(--lx-font-bold);
    letter-spacing: 0.5px;
    opacity: 0.9;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--lx-rounded-sm);
}

.lx-conv-card__name {
    font-size: var(--lx-text-sm);
    font-weight: var(--lx-font-medium);
    letter-spacing: 0.2px;
}

.lx-conv-card__hdr-right {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.lx-conv-card__hdr-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.lx-conv-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--lx-text-xs);
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.lx-conv-card__meta-sep {
    opacity: 0.4;
}

/* ============================================
   BUTTONS - MICROINTERACTIONS
   ============================================ */

.lx-conv-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--lx-rounded-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lx-conv-btn--icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
}

.lx-conv-btn--icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lx-conv-btn--icon:active {
    transform: scale(0.95);
}

.lx-conv-btn--icon .material-icons {
    font-size: 16px;
    color: white;
}

.lx-conv-card__toggle {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--lx-rounded-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lx-conv-card__toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lx-conv-card__toggle:active {
    transform: scale(0.95);
}

.lx-conv-card__toggle .material-icons {
    font-size: 18px;
    color: white;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lx-conv-card--collapsed .lx-conv-card__toggle .material-icons {
    transform: rotate(180deg);
}

.lx-conv-card__remove {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--lx-rounded-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lx-conv-card__remove:hover {
    background: rgba(255, 59, 48, 0.2);
    transform: scale(1.1);
}

.lx-conv-card__remove:active {
    transform: scale(0.95);
}

.lx-conv-card__remove .material-icons {
    font-size: 18px;
    color: white;
}

/* Secondary Buttons */
.lx-conv-btn--secondary {
    padding: 4px 8px;
    font-size: var(--lx-text-xs);
    font-weight: var(--lx-font-medium);
    color: var(--lx-color-neutral-700);
    background: white;
    border: 1px solid var(--lx-color-neutral-300);
    border-radius: var(--lx-rounded-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lx-conv-btn--secondary .material-icons {
    font-size: 12px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lx-conv-btn--secondary:hover {
    background: var(--lx-color-neutral-50);
    border-color: var(--lx-color-neutral-500);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.lx-conv-btn--secondary:hover .material-icons {
    transform: scale(1.1);
}

.lx-conv-btn--secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lx-conv-btn--secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--lx-color-neutral-50);
    color: var(--lx-color-neutral-500);
    transform: none;
}

/* ============================================
   CARD CONTENT
   ============================================ */

.lx-conv-card__cnt {
    padding: 20px;
    position: relative;
    z-index: 1;
}

.lx-conv-card__txt {
    font-size: var(--lx-text-sm);
    line-height: 1.7;
    color: var(--lx-color-neutral-700);
    margin-top: 0px;
}

.lx-conv-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================
   AUDIO PLAYER - MODERN DESIGN
   ============================================ */

.lx-conv-card__audio {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: linear-gradient(135deg, var(--lx-color-neutral-50) 0%, white 100%);
    border: 1px solid var(--lx-color-neutral-300);
    border-radius: var(--lx-rounded-lg);
    margin-bottom: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lx-conv-card__audio:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--lx-color-neutral-300);
}

.lx-conv-audio__btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: linear-gradient(135deg, var(--lx-color-success-600) 0%, var(--lx-color-emerald-700) 100%);
    border-radius: var(--lx-rounded-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 153, 102, 0.3);
}

.lx-conv-audio__btn:hover {
    background: linear-gradient(135deg, var(--lx-color-emerald-700) 0%, var(--lx-color-emerald-800) 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 153, 102, 0.4);
}

.lx-conv-audio__btn:active {
    transform: scale(0.95);
}

.lx-conv-audio__btn .material-icons {
    font-size: 18px;
    color: white;
}

.lx-conv-audio__progress {
    flex: 1;
    height: 4px;
    background: var(--lx-color-neutral-300);
    border-radius: var(--lx-rounded-full);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.lx-conv-audio__progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            var(--lx-color-neutral-300) 0%,
            var(--lx-color-neutral-300) 100%);
}

.lx-conv-audio__progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg,
            var(--lx-color-success-600) 0%,
            var(--lx-color-emerald-600) 100%);
    border-radius: var(--lx-rounded-full);
    position: relative;
    z-index: 1;
    transition: width 0.1s linear;
}

.lx-conv-audio__time {
    font-size: 11px;
    color: var(--lx-color-neutral-500);
    font-weight: var(--lx-font-semibold);
    min-width: 36px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ============================================
   SUB CARDS - NESTED CONTENT
   ============================================ */

.lx-conv-card--sub {
    padding-left: 48px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.lx-conv-card--sub .lx-conv-card__dot {
    left: 22px;
    width: 8px;
    height: 8px;
    border-width: 2px;
    top: 14px;
}

/* Hint Card */
.lx-conv-card--hint .lx-conv-card__dot {
    border-color: var(--lx-color-neutral-500);
    color: var(--lx-color-neutral-500);
}

.lx-conv-card--hint .lx-conv-card__body {
    background: white;
    border-color: var(--lx-color-neutral-300);
}

/* Sample Card */
.lx-conv-card--sample .lx-conv-card__dot {
    border-color: var(--lx-color-neutral-500);
    color: var(--lx-color-neutral-500);
}

.lx-conv-card--sample .lx-conv-card__body {
    background: white;
    border-color: var(--lx-color-neutral-300);
}

/* Analysis Card */
.lx-conv-card--analysis .lx-conv-card__dot {
    border-color: var(--lx-color-neutral-500);
    color: var(--lx-color-neutral-500);
}

.lx-conv-card--analysis .lx-conv-card__body {
    background: white;
    border-color: var(--lx-color-neutral-300);
}

.lx-conv-sub__hdr {
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--lx-color-neutral-100);
}

.lx-conv-sub__hdr-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lx-conv-sub__title {
    font-size: 10px;
    font-weight: var(--lx-font-bold);
    color: var(--lx-color-neutral-700);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lx-conv-sub__title .material-icons {
    font-size: 14px;
    opacity: 0.7;
}

.lx-conv-card--sub .lx-conv-btn--toggle {
    width: 24px;
    height: 24px;
    min-width: 24px;
    color: var(--lx-color-neutral-500);
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--lx-rounded-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lx-conv-card--sub .lx-conv-btn--toggle .material-icons {
    font-size: 16px;
    color: var(--lx-color-neutral-500);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lx-conv-card--sub.lx-conv-card--collapsed .lx-conv-btn--toggle .material-icons {
    transform: rotate(180deg);
}

.lx-conv-card--sub .lx-conv-btn--toggle:hover {
    background: var(--lx-color-neutral-100);
    color: var(--lx-color-neutral-700);
    transform: scale(1.1);
}

.lx-conv-card--sub .lx-conv-btn--toggle:active {
    transform: scale(0.95);
}

.lx-conv-btn--close {
    width: 24px;
    height: 24px;
    min-width: 24px;
    color: var(--lx-color-neutral-500);
    display: none;
}

.lx-conv-sub__cnt {
    padding: 12px;
    position: relative;
    z-index: 1;
}

.lx-conv-sub__txt {
    font-size: var(--lx-text-xs);
    line-height: 1.5;
    color: var(--lx-color-neutral-700);
    margin: 0px;
}

/* Handle HTML content within sub-cards */
.lx-conv-sub__txt p {
    margin: 0 0 4px 0;
}

.lx-conv-sub__txt p:last-child {
    margin-bottom: 0;
}

.lx-conv-sub__txt ul,
.lx-conv-sub__txt ol {
    margin: 0 0 4px 0;
    padding-left: 16px;
}

.lx-conv-sub__txt li {
    margin-bottom: 4px;
}

.lx-conv-sub__txt strong,
.lx-conv-sub__txt b {
    font-weight: var(--lx-font-semibold);
}

.lx-conv-sub__txt em,
.lx-conv-sub__txt i {
    font-style: italic;
}

.lx-conv-sub__txt h2 {
    font-size: var(--lx-text-sm);
    font-weight: var(--lx-font-bold);
    margin: 8px 0 4px 0;
    color: var(--lx-color-neutral-900);
}

.lx-conv-sub__txt h3 {
    font-size: var(--lx-text-xs);
    font-weight: var(--lx-font-bold);
    margin: 6px 0 4px 0;
    color: var(--lx-color-neutral-900);
}

.lx-conv-sub__txt h4 {
    font-size: var(--lx-text-xs);
    font-weight: var(--lx-font-semibold);
    margin: 6px 0 4px 0;
    color: var(--lx-color-neutral-800);
}

.lx-conv-sub__txt h5 {
    font-size: var(--lx-text-xs);
    font-weight: var(--lx-font-medium);
    margin: 4px 0 4px 0;
    color: var(--lx-color-neutral-800);
}

.lx-conv-sub__txt h6 {
    font-size: var(--lx-text-xs);
    font-weight: var(--lx-font-normal);
    margin: 4px 0 4px 0;
    color: var(--lx-color-neutral-700);
}

/* ============================================
   ANALYSIS SECTION - DATA VISUALIZATION
   ============================================ */

.lx-conv-analysis__scores {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.lx-conv-score {
    background: white;
    padding: 12px 14px;
    border-radius: var(--lx-rounded-lg);
    text-align: center;
    border: 1px solid var(--lx-color-neutral-300);
    flex: 1;
    min-width: 70px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lx-conv-score::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--lx-color-neutral-500);
}

.lx-conv-score:hover {
    border-color: var(--lx-color-neutral-500);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.lx-conv-score__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--lx-color-neutral-500);
    font-weight: var(--lx-font-bold);
    margin-bottom: 6px;
}

.lx-conv-score__val {
    font-size: 20px;
    font-weight: var(--lx-font-bold);
    color: var(--lx-color-neutral-900);
    line-height: 1;
}

.lx-conv-analysis__feedback {
    margin-bottom: 14px;
}

.lx-conv-analysis__label {
    font-size: 10px;
    font-weight: var(--lx-font-bold);
    color: var(--lx-color-neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lx-conv-analysis__label::before {
    content: '';
    width: 3px;
    height: 12px;
    background: var(--lx-color-neutral-500);
    border-radius: var(--lx-rounded-full);
}

.lx-conv-analysis__suggestions {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lx-conv-analysis__suggestions li {
    padding: 8px 12px;
    padding-left: 32px;
    background: white;
    border-radius: var(--lx-rounded-lg);
    font-size: var(--lx-text-xs);
    line-height: 1.6;
    color: var(--lx-color-neutral-700);
    border: 1px solid var(--lx-color-neutral-300);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lx-conv-analysis__suggestions li::before {
    content: '→';
    position: absolute;
    left: 12px;
    top: 12px;
    color: var(--lx-color-neutral-700);
    font-weight: var(--lx-font-bold);
    font-size: 12px;
}

.lx-conv-analysis__suggestions li:hover {
    border-color: var(--lx-color-neutral-500);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

/* ============================================
   COLLAPSED STATE - MINIMAL FOOTPRINT
   ============================================ */

.lx-conv-card--collapsed .lx-conv-card__cnt,
.lx-conv-card--collapsed .lx-conv-sub__cnt {
    display: none;
}

.lx-conv-card--collapsed .lx-conv-card__body {
    opacity: 0.7;
    box-shadow: none;
    transform: scale(0.97);
    border-color: var(--lx-color-neutral-300);
}

/* Show dots for expanded cards (only main cards) */
.lx-conv-card:not(.lx-conv-card--collapsed):not(.lx-conv-card--sub) .lx-conv-card__dot {
    opacity: 1;
    transform: scale(1);
}

/* Hide dots for sub-cards always */
.lx-conv-card--sub .lx-conv-card__dot {
    display: none;
}

/* Hide dots for collapsed cards */
.lx-conv-card--collapsed .lx-conv-card__dot {
    opacity: 0;
    transform: scale(0);
}

/* Show dots on hover even when collapsed */
.lx-conv-card--collapsed:hover .lx-conv-card__dot {
    opacity: 1;
    transform: scale(0.8);
}

.lx-conv-card--collapsed .lx-conv-card__hdr,
.lx-conv-card--collapsed .lx-conv-sub__hdr {
    padding: 5px 10px;
}

.lx-conv-card--collapsed:hover .lx-conv-card__body {
    opacity: 0.8;
    transform: scale(0.98);
    border-color: var(--lx-color-neutral-300);
}

.lx-conv-card--collapsed:hover .lx-conv-card__dot {
    opacity: 0.8;
}

/* Preview text in collapsed state */
.lx-conv-card--collapsed .lx-conv-card__hdr::after,
.lx-conv-card--collapsed .lx-conv-sub__hdr::after {
    content: attr(data-preview);
    display: block;
    font-size: 11px;
    font-weight: var(--lx-font-normal);
    opacity: 0.7;
    margin-top: 0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
    max-width: 100%;
}

.lx-conv-card--collapsed .lx-conv-card__hdr,
.lx-conv-card--collapsed .lx-conv-sub__hdr {
    flex-wrap: wrap;
}

.lx-conv-card--collapsed .lx-conv-card__hdr::after {
    flex-basis: 100%;
    order: 3;
}

.lx-conv-card--collapsed .lx-conv-sub__hdr::after {
    flex-basis: 100%;
    order: 3;
}

/* ============================================
   INTERACTIVE STATES
   ============================================ */

.lx-conv-card__hdr,
.lx-conv-sub__hdr {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lx-conv-card__hdr:active,
.lx-conv-sub__hdr:active {
    transform: scale(0.99);
}

/* Hidden State */
.lx-conv-card--hidden {
    display: none !important;
}

/* ============================================
   SCROLLBAR - MINIMALIST DESIGN
   ============================================ */

.lx-conv__timeline::-webkit-scrollbar {
    width: 8px;
}

.lx-conv__timeline::-webkit-scrollbar-track {
    background: transparent;
}

.lx-conv__timeline::-webkit-scrollbar-thumb {
    background: var(--lx-color-neutral-300);
    border-radius: var(--lx-rounded-full);
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lx-conv__timeline::-webkit-scrollbar-thumb:hover {
    background: var(--lx-color-neutral-500);
    background-clip: padding-box;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .lx-conv {
        padding: 16px 0px;
        background: white;
    }

    /* Hide timeline and dots on mobile for simplicity */
    .lx-conv__timeline::before {
        display: none;
    }

    .lx-conv-card__dot,
    .lx-conv-card--sub .lx-conv-card__dot {
        display: none;
    }

    .lx-conv-card {
        padding-left: 0px;
        margin-bottom: 16px;
    }

    .lx-conv-card--sub {
        padding-left: 16px;
    }

    .lx-conv-card__cnt {
        padding: 14px;
    }

    .lx-conv-sub__cnt {
        padding: 10px;
    }

    .lx-conv-analysis__scores {
        gap: 8px;
    }

    .lx-conv-score {
        min-width: 60px;
        padding: 10px 12px;
    }

    .lx-conv-score__val {
        font-size: 18px;
    }

    /* Reduce animations on mobile */
    .lx-conv-card {
        animation-duration: 0.3s;
    }

    .lx-conv-card__body:hover {
        transform: none;
    }

    .lx-conv-btn--icon:hover,
    .lx-conv-card__toggle:hover,
    .lx-conv-card__remove:hover,
    .lx-conv-btn--secondary:hover {
        transform: none;
    }

    .lx-conv-analysis__suggestions li:hover {
        transform: none;
    }

    /* Empty state mobile adjustments */
    .lx-conv-empty {
        padding: 60px 20px;
        height: fit-content;
    }

    .lx-conv-empty__icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }

    .lx-conv-empty__icon .material-icons {
        font-size: 20px;
    }

    .lx-conv-empty__content {
        max-width: 280px;
    }
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {

    .lx-conv,
    .lx-conv *,
    .lx-conv *::before,
    .lx-conv *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .lx-conv-card {
        opacity: 1;
        transform: none;
    }
}

/* Hide some elements temporarily */
.lx-conv-card__audio,
.lx-conv-btn.lx-conv-btn--icon {
    display: none !important;
}

/* ============================================
     ANALYSIS CARD - CUSTOM STRONG & EM STYLES
     ============================================ */
.lx-conv-card--analysis .lx-conv-sub__txt strong {
    display: inline-block;
    font-size: 10px;
    font-weight: 500 !important;
    color: var(--lx-color-neutral-700);
    background: var(--lx-color-neutral-100);
    letter-spacing: 0.3px;
    margin-right: 2px;
    padding: 0px 6px;
    border: 1px solid var(--lx-color-neutral-500);
    border-radius: 4px;
}

.lx-conv-card--analysis .lx-conv-sub__txt em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px 4px;
    font-size: 10px;
    font-weight: 500 !important;
    font-style: normal !important;
    color: var(--lx-color-neutral-700);
    height: 14px;
    background: var(--lx-color-neutral-50);
    border: 1px solid var(--lx-color-neutral-300);
    border-radius: 4px;
    margin-right: 4px;
}

/* ============================================
   STICKY FOOTER BUTTONS
   ============================================ */

.lx-conv__footer {
    position: relative;
    /* Changed from absolute to work with flexbox */
    flex-shrink: 0;
    /* Prevent footer from shrinking */
    padding: 16px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    gap: 12px;
    z-index: 10;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.lx-conv-footer-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: var(--lx-text-xs);
    font-weight: var(--lx-font-semibold);
    border: none;
    border-radius: var(--lx-rounded-lg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.3px;
}

.lx-conv-footer-btn .material-icons {
    font-size: var(--lx-text-sm);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Button (Download) */
.lx-conv-footer-btn--light {
    background: white;
    color: var(--lx-color-neutral-700);
    border: 1px solid var(--lx-color-neutral-500);
}

.lx-conv-footer-btn--light:hover {
    background: var(--lx-color-neutral-50);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.lx-conv-footer-btn--light:hover .material-icons {
    transform: scale(1.1);
}

.lx-conv-footer-btn--light:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.lx-conv-footer-btn--light:active .material-icons {
    transform: scale(0.95);
}

/* Dark Button (Check Score) */
.lx-conv-footer-btn--dark {
    background: linear-gradient(135deg, var(--lx-color-neutral-700) 0%, var(--lx-color-neutral-900) 100%);
    color: white;
    border: 1px solid var(--lx-color-neutral-900);
}

.lx-conv-footer-btn--dark:hover {
    background: linear-gradient(135deg, var(--lx-color-primary-700) 0%, var(--lx-color-neutral-900) 100%);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.lx-conv-footer-btn--dark:hover .material-icons {
    transform: scale(1.1);
}

.lx-conv-footer-btn--dark:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lx-conv-footer-btn--dark:active .material-icons {
    transform: scale(0.95);
}

/* Disabled state */
.lx-conv-footer-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.lx-conv-footer-btn:disabled:hover {
    transform: none !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lx-conv__footer {
        padding: 12px;
        gap: 8px;
    }

    .lx-conv-footer-btn {
        padding: 10px 16px;
        font-size: var(--lx-text-xs);
    }

    .lx-conv-footer-btn .material-icons {
        font-size: 18px;
    }
}