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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1b3a 50%, #2d1b69 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 220px;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    z-index: 100;
}

.logo {
    margin-bottom: 40px;
    padding: 16px 20px;
}

.logo h2 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    padding: 14px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.nav-item.active {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.nav-item svg {
    flex-shrink: 0;
}

.nav-item span {
    font-weight: 500;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 220px;
    padding: 24px 32px;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.weart-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-container {
    position: relative;
}

.search-bar {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 14px 24px 14px 48px;
    width: 420px;
    color: white;
    font-size: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-bar::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-bar:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.create-prompt-btn {
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    border: none;
    border-radius: 24px;
    padding: 14px 28px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
}

.create-prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(34, 211, 238, 0.4);
}

.profile-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

.left-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Journey Card */
.journey-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.journey-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.journey-left {
    flex: 1;
}

.journey-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 32px;
    line-height: 1.2;
}

.stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
}

.stat-text {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Progress Circle */
.progress-circle {
    width: 140px;
    height: 140px;
    position: relative;
    margin-left: 40px;
}

.progress-ring {
    transform: rotate(-90deg);
    width: 140px;
    height: 140px;
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 12;
}

.progress-ring-progress {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 377;
    stroke-dashoffset: 150.8;
    transition: stroke-dashoffset 0.8s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Categories */
.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.category-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: 140px;
    justify-content: center;
}

.category-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.category-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.95);
}

/* Trending Section */
.trending-section {
    margin-top: 8px;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trending-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.trending-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.trending-card h3 {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

/* Right Sidebar */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.learning-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.learning-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.learning-card .section-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.learning-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #ff9a8b 0%, #fecfef 50%, #fecfef 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.learning-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,107,107,0.3) 0%, rgba(255,165,0,0.3) 50%, rgba(255,20,147,0.3) 100%);
}

.learning-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50"><polygon fill="rgba(139,69,19,0.6)" points="0,50 25,30 50,40 75,20 100,25 100,50"/><polygon fill="rgba(101,67,33,0.4)" points="0,50 20,35 40,42 60,28 80,32 100,30 100,50"/></svg>');
    background-size: cover;
}

.learning-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.learning-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.95);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 35%;
    background: linear-gradient(90deg, #22d3ee, #3b82f6);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.trending-sidebar {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.trending-sidebar:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.trending-sidebar-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
}

.arrow-right {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.trending-sidebar-title:hover .arrow-right {
    opacity: 1;
    transform: translateX(2px);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1400px) {
    .content-grid {
        grid-template-columns: 1fr 300px;
    }
    
    .search-bar {
        width: 360px;
    }
}

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-bar {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 80px;
        padding: 24px 0;
        align-items: center;
    }
    
    .logo {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 20px;
        margin-bottom: 32px;
        box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
        padding: 0;
    }
    
    .logo h2 {
        display: none;
    }
    
    .nav-menu {
        align-items: center;
    }
    
    .nav-item {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
        margin: 6px 0;
    }
    
    .nav-item span {
        display: none;
    }

    .main-content {
        margin-left: 80px;
        padding: 16px 20px;
    }

    .header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .header-left {
        gap: 20px;
    }

    .search-bar {
        width: 100%;
    }

    .categories {
        grid-template-columns: 1fr;
    }

    .trending-grid {
        grid-template-columns: 1fr;
    }

    .journey-card {
        padding: 24px;
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .progress-circle {
        margin-left: 0;
    }

    .stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 16px;
    }
    
    .journey-card {
        padding: 20px;
    }
    
    .journey-title {
        font-size: 24px;
    }
    
    .weart-title {
        font-size: 28px;
    }
    
    .stats {
        flex-direction: column;
        gap: 16px;
    }
} 

/* Cosmic background styles */
.cosmic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #040816 0%, #0A1F43 100%);
    overflow: hidden;
}

.stars-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(2px 2px at 20px 30px, #eee, transparent),
                      radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
                      radial-gradient(1px 1px at 90px 40px, #fff, transparent),
                      radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
                      radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    opacity: 0.6;
    animation: sparkle 8s linear infinite;
}

.nebula-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(0, 171, 255, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(155, 95, 255, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 40% 80%, rgba(0, 242, 195, 0.05) 0%, transparent 50%);
    opacity: 0.3;
    animation: nebulaDrift 20s ease-in-out infinite;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ABFF;
    border-radius: 50%;
    opacity: 0.5;
    animation: float 8s infinite ease-in-out;
}

/* Animation for particles */
@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-10px) translateX(5px); }
    100% { transform: translateY(0) translateX(0); }
}

@keyframes sparkle {
    0% { transform: translateX(0); }
    100% { transform: translateX(-200px); }
}

@keyframes nebulaDrift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(10px) translateY(-5px); }
    50% { transform: translateX(-5px) translateY(10px); }
    75% { transform: translateX(-10px) translateY(-5px); }
} 

/* AI Chat Card Styles */
.ai-chat-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 480px;
}

.ai-chat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.ai-chat-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.ai-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.ai-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 2px;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ai-chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.ai-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.ai-message {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border-bottom-left-radius: 6px;
    padding: 12px 16px;
    max-width: 85%;
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    line-height: 1.4;
    font-size: 13px;
}

.ai-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.user-message {
    align-self: flex-end;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    border-bottom-right-radius: 6px;
    padding: 12px 16px;
    max-width: 85%;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    line-height: 1.4;
    font-size: 13px;
}

.user-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.message-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
    text-align: right;
}

.ai-message .message-time {
    text-align: left;
}

.ai-input-container {
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.ai-input-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 13px;
    font-family: inherit;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    resize: none;
    min-height: 40px;
    max-height: 80px;
}

.ai-input-box::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ai-input-box:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.ai-send-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(34, 211, 238, 0.3);
    flex-shrink: 0;
}

.ai-send-btn:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.4);
}

.ai-send-btn:active {
    transform: translateY(0) scale(0.98);
}

.ai-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ai-input-box:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Typing indicator */
.typing-indicator {
    position: relative;
}

.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #22d3ee;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Animation for loading spinner in send button */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Markdown styling for AI messages */
.ai-message h1, .ai-message h2, .ai-message h3, .ai-message h4, .ai-message h5, .ai-message h6 {
    color: #22d3ee;
    font-weight: 600;
    margin: 12px 0 6px 0;
    line-height: 1.3;
}

.ai-message h1 { font-size: 16px; }
.ai-message h2 { font-size: 15px; }
.ai-message h3 { font-size: 14px; }
.ai-message h4 { font-size: 13px; }

.ai-message p {
    margin: 6px 0;
    line-height: 1.5;
}

.ai-message ul, .ai-message ol {
    margin: 8px 0;
    padding-left: 16px;
}

.ai-message li {
    margin: 3px 0;
    line-height: 1.4;
}

.ai-message strong {
    color: #ffffff;
    font-weight: 600;
}

.ai-message em {
    color: #e0e7ff;
    font-style: italic;
}

.ai-message hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 12px 0;
}

.ai-message blockquote {
    border-left: 2px solid #22d3ee;
    padding-left: 12px;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.ai-message code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.ai-message pre {
    background: rgba(255, 255, 255, 0.08);
    padding: 8px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 8px 0;
    font-size: 12px;
}

/* Custom scrollbar for chat container */
.ai-chat-container::-webkit-scrollbar {
    width: 4px;
}

.ai-chat-container::-webkit-scrollbar-track {
    background: transparent;
}

.ai-chat-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.ai-chat-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
} 