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

body {
    font-family: 'Inter', 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    background: #000000;
    min-height: 100vh;
    max-height: 100vh;
    color: #e5e5e5;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

/* Scattered dots background - white dots, denser at bottom */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Bottom layer - very dense dots */
        radial-gradient(1px 1px at 20px 90%, #ffffff, transparent),
        radial-gradient(1px 1px at 40px 95%, #ffffff, transparent),
        radial-gradient(1px 1px at 60px 88%, #ffffff, transparent),
        radial-gradient(1px 1px at 80px 92%, #ffffff, transparent),
        radial-gradient(1px 1px at 100px 89%, #ffffff, transparent),
        radial-gradient(1px 1px at 120px 96%, #ffffff, transparent),
        radial-gradient(1px 1px at 140px 87%, #ffffff, transparent),
        radial-gradient(1px 1px at 160px 93%, #ffffff, transparent),
        radial-gradient(1px 1px at 180px 85%, #ffffff, transparent),
        radial-gradient(1px 1px at 200px 97%, #ffffff, transparent),
        radial-gradient(1px 1px at 220px 90%, #ffffff, transparent),
        radial-gradient(1px 1px at 240px 89%, #ffffff, transparent),
        radial-gradient(1px 1px at 260px 94%, #ffffff, transparent),
        radial-gradient(1px 1px at 280px 86%, #ffffff, transparent),
        radial-gradient(1px 1px at 300px 91%, #ffffff, transparent),
        radial-gradient(1px 1px at 320px 95%, #ffffff, transparent),
        radial-gradient(1px 1px at 340px 88%, #ffffff, transparent),
        radial-gradient(1px 1px at 360px 92%, #ffffff, transparent),
        radial-gradient(1px 1px at 380px 87%, #ffffff, transparent),
        radial-gradient(1px 1px at 400px 94%, #ffffff, transparent),
        
        /* Additional bottom dots for density */
        radial-gradient(1px 1px at 30px 86%, #ffffff, transparent),
        radial-gradient(1px 1px at 70px 98%, #ffffff, transparent),
        radial-gradient(1px 1px at 110px 84%, #ffffff, transparent),
        radial-gradient(1px 1px at 150px 91%, #ffffff, transparent),
        radial-gradient(1px 1px at 190px 89%, #ffffff, transparent),
        radial-gradient(1px 1px at 230px 96%, #ffffff, transparent),
        radial-gradient(1px 1px at 270px 85%, #ffffff, transparent),
        radial-gradient(1px 1px at 310px 93%, #ffffff, transparent),
        radial-gradient(1px 1px at 350px 87%, #ffffff, transparent),
        radial-gradient(1px 1px at 390px 90%, #ffffff, transparent),
        
        /* Middle layer - medium density */
        radial-gradient(1px 1px at 60px 70%, #ffffff, transparent),
        radial-gradient(1px 1px at 180px 65%, #ffffff, transparent),
        radial-gradient(1px 1px at 300px 68%, #ffffff, transparent),
        radial-gradient(1px 1px at 120px 72%, #ffffff, transparent),
        radial-gradient(1px 1px at 340px 66%, #ffffff, transparent),
        radial-gradient(1px 1px at 240px 75%, #ffffff, transparent),
        radial-gradient(1px 1px at 160px 69%, #ffffff, transparent),
        radial-gradient(1px 1px at 280px 73%, #ffffff, transparent),
        
        /* Top layer - sparse dots */
        radial-gradient(1px 1px at 100px 30%, #ffffff, transparent),
        radial-gradient(1px 1px at 260px 25%, #ffffff, transparent),
        radial-gradient(1px 1px at 380px 35%, #ffffff, transparent);
    background-repeat: repeat;
    background-size: 400px 400px;
    opacity: 0.5;
    z-index: -3;
}

/* Background images container */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: 
        url('/static/img/left.jpeg') no-repeat left center,
        url('/static/img/right.jpeg') no-repeat right center;
    background-size: 400px 100%, 400px 100%;
    opacity: 0.4;
    z-index: -1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-height: 100vh;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Header Styles - Minimalistic */
.header {
    text-align: left;
    margin-bottom: 10px;
    color: #e5e5e5;
    padding-left: 20px;
}

.header-content {
    padding: 10px 0;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}

.title {
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 0;
    color: #f5f5f5;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.7;
    margin-bottom: 15px;
    font-weight: 300;
    color: #ccc;
    font-style: italic;
}

.model-info {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-bottom: 0;
    font-weight: 400;
    color: #ddd;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: #999;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #666;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: #00ff00;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
}

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

/* Main Conversation Space */
.conversation-space {
    flex: 1;
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 40px;
    align-items: start;
    padding: 10px 0;
}

/* AI Label Columns */
.ai-label-column {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.left-label {
    justify-content: flex-end;
}

.right-label {
    justify-content: flex-start;
}

/* AI Labels */
.ai-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.ai-avatar {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid #444;
    color: #ccc;
    background: rgba(40, 40, 40, 0.8);
}

.ai-1-avatar {
    border-left: 3px solid #ff0000;
    background: rgba(40, 20, 20, 0.8);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.ai-2-avatar {
    border-left: 3px solid #00ff00;
    background: rgba(20, 40, 20, 0.8);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.ai-name {
    font-weight: 400;
    font-size: 0.9rem;
    color: #ddd;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ai-desc {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

/* Mood and Energy Indicators */
.mood-indicator {
    margin-top: 8px;
    text-align: center;
    font-size: 0.7rem;
}

.mood-label {
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mood-value {
    color: #ddd;
    font-weight: 500;
    margin-left: 4px;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.energy-bar {
    margin-top: 6px;
    width: 60px;
    position: relative;
}

.energy-fill {
    height: 3px;
    background: linear-gradient(90deg, #ff4444, #ffaa44, #44ff44);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.energy-text {
    font-size: 0.6rem;
    color: #888;
    text-align: center;
    display: block;
    margin-top: 2px;
}

/* AI Avatar Mood States */
.ai-avatar.mood-frustrated {
    border-left-color: #ff6666 !important;
    box-shadow: 0 0 15px rgba(255, 102, 102, 0.4);
    animation: pulse-red 2s infinite;
}

.ai-avatar.mood-passionate {
    border-left-color: #ff9900 !important;
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.5);
    animation: pulse-orange 1.5s infinite;
}

.ai-avatar.mood-skeptical {
    border-left-color: #6666ff !important;
    box-shadow: 0 0 15px rgba(102, 102, 255, 0.4);
}

.ai-avatar.mood-curious {
    border-left-color: #66ffff !important;
    box-shadow: 0 0 15px rgba(102, 255, 255, 0.4);
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 102, 102, 0.4); }
    50% { box-shadow: 0 0 25px rgba(255, 102, 102, 0.8); }
}

@keyframes pulse-orange {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 153, 0, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 153, 0, 0.9); }
}

/* Tension Meter */
.tension-meter {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    backdrop-filter: blur(5px);
}

.tension-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tension-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    min-width: 80px;
}

.tension-fill {
    height: 100%;
    background: linear-gradient(90deg, #44ff44, #ffaa44, #ff4444);
    border-radius: 3px;
    transition: width 0.5s ease;
    width: 0%;
}

.tension-value {
    font-size: 0.75rem;
    color: #ddd;
    font-weight: 500;
    min-width: 30px;
    text-align: center;
}

/* Info Icon Tooltip */
.info-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    font-weight: bold;
    color: #000;
    margin-left: 8px;
    cursor: help;
    transition: all 0.2s ease;
}

.info-icon:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    color: #000;
    transform: scale(1.2);
}

/* Custom Tooltip */
.info-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.4;
    white-space: nowrap;
    max-width: 300px;
    white-space: normal;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Tooltip arrow */
.info-icon::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.info-icon:hover::after,
.info-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Conflict Display */
.conflict-display {
    margin: 0 20px 15px 20px;
    padding: 12px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.conflict-header {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff6666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.conflict-list {
    font-size: 0.8rem;
    color: #ddd;
}

.conflict-item {
    margin: 4px 0;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border-left: 3px solid #ff4444;
}

.conflict-topic {
    font-weight: 500;
    color: #ffaa44;
}

.conflict-intensity {
    font-size: 0.7rem;
    color: #888;
    float: right;
}

/* Message structure */
.message {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.speaker-name {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.message.ai-1 .speaker-name {
    color: #ff4444;
}

.message.ai-2 .speaker-name {
    color: #44ff44;
}

.message-time {
    color: #888;
    font-size: 0.75rem;
}

.message-mood {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mood-text {
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.energy-indicator {
    color: #ffaa44;
    font-size: 0.6rem;
    letter-spacing: 1px;
}

.message-content {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid #333;
    border-left: 4px solid;
    border-radius: 8px;
    padding: 15px 20px;
    line-height: 1.6;
    color: #e0e0e0;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.message.ai-1 .message-content {
    border-left-color: #ff4444;
    background: rgba(60, 40, 40, 0.8);
}

.message.ai-2 .message-content {
    border-left-color: #44ff44;
    background: rgba(40, 60, 40, 0.8);
}

.message-content:hover {
    background: rgba(50, 50, 50, 0.9);
    border-color: #555;
}

/* Conversation Container - Use more vertical space */
.conversation-container {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    height: calc(100vh - 220px);
    min-height: 500px;
    overflow: hidden;
}

.conversation-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 15px;
    gap: 12px;
    background: rgba(15, 15, 15, 0.6);
    border-radius: 8px;
    margin: 0 20px 15px 20px;
    backdrop-filter: blur(10px);
}

/* Message Stream - Use available space better */
.message-stream {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
    max-height: none; /* Remove max-height constraint to use full available space */
}

/* Message Animation */
.message-cloud {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.message-cloud.animate-in {
    animation: slideInUp 0.5s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll to Top Hint */
.scroll-hint {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.scroll-hint.visible {
    opacity: 1;
}

/* Loading Indicator */
.loading-older {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-older.visible {
    opacity: 1;
}

.loading-older::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #666;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Message Clouds in Unified Stream */
.message-cloud {
    max-width: 60%;
    background: rgba(25, 25, 25, 0.9);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    position: relative;
    animation: cloudFadeIn 0.5s ease-out;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

/* Left AI messages (Alpha) - Red theme */
.message-cloud.ai_1 {
    border-left: 3px solid #ff0000;
    background: rgba(40, 20, 20, 0.9);
    align-self: flex-start;
    margin-right: 40%;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.1);
}

/* Right AI messages (Beta) - Green theme */
.message-cloud.ai_2 {
    border-left: 3px solid #00ff00;
    background: rgba(20, 40, 20, 0.9);
    align-self: flex-end;
    margin-left: 40%;
    box-shadow: 0 2px 10px rgba(0, 255, 0, 0.1);
}

/* Enhanced coloring for current messages */
.message-cloud.current.ai_1 {
    border-left: 4px solid #ff0000;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.2);
    background: rgba(45, 20, 20, 0.95);
}

.message-cloud.current.ai_2 {
    border-left: 4px solid #00ff00;
    box-shadow: 0 4px 20px rgba(0, 255, 0, 0.2);
    background: rgba(20, 45, 20, 0.95);
}

/* Message states */
.message-cloud.current {
    opacity: 1;
    transform: scale(1);
}

.message-cloud.previous {
    opacity: 0.8;
    transform: scale(0.98);
}

.message-cloud.older {
    opacity: 0.6;
    transform: scale(0.95);
}

.message-cloud .message-text {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Add subtle color tinting to message text */
.message-cloud.ai_1 .message-text {
    color: #ffdddd;
}

.message-cloud.ai_2 .message-text {
    color: #ddffdd;
}

.message-cloud .message-time {
    font-size: 0.7rem;
    color: #666;
    font-family: 'SF Mono', monospace;
    text-align: right;
}

.message-cloud.ai_1 .message-time {
    text-align: left;
    color: #cc6666;
}

.message-cloud.ai_2 .message-time {
    text-align: right;
    color: #66cc66;
}

@keyframes cloudFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

/* Conversation Header Elements */
.last-speaker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.speaker-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #333;
    border: 2px solid #666;
    transition: all 0.3s ease;
}

.speaker-indicator.left-active {
    border-color: #ff0000;
    background: #ff0000;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.3);
}

.speaker-indicator.right-active {
    border-color: #00ff00;
    background: #00ff00;
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.3);
}

.speaker-text {
    font-size: 0.7rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.conversation-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #888;
    font-size: 0.8rem;
    text-align: center;
}

.pulse-animation {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #333;
    border: 2px solid #666;
    animation: pulseGrow 2s ease-in-out infinite;
}

@keyframes pulseGrow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.observer-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.observer-count.multiple-observers {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
    animation: multipleObserverGlow 2s ease-in-out infinite alternate;
}

@keyframes multipleObserverGlow {
    0% { 
        text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
        transform: scale(1.02);
    }
}

/* Current Theme Display */
.current-theme {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 12px;
}

.theme-label {
    color: #666;
    font-weight: 400;
}

.theme-text {
    color: #ddd;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 200px;
    text-align: center;
    text-transform: lowercase;
    font-style: italic;
    line-height: 1.2;
}

/* Typing Indicator */
.typing-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(25, 25, 25, 0.95);
    padding: 12px 20px;
    border-radius: 4px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    font-size: 0.8rem;
    animation: typingSlideUp 0.2s ease-out;
}

.typing-side {
    color: #aaa;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.typing-text {
    color: #aaa;
    font-style: italic;
}

@keyframes typingSlideUp {
    from { 
        opacity: 0; 
        transform: translateX(-50%) translateY(10px);
    }
    to { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0);
    }
}

/* Typewriter Effect */
.typing-cursor {
    animation: blink 1s infinite;
    font-weight: normal;
    color: inherit;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Updated responsive heights to ensure proper bottom spacing */
@media (max-width: 1200px) {
    .conversation-space {
        gap: 30px;
        padding: 15px 0;
    }
    
    .conversation-container {
        height: calc(100vh - 200px);
        min-height: 450px;
    }
    
    .conversation-header {
        margin: 0 15px 15px 15px;
    }
}

@media (max-width: 900px) {
    .conversation-space {
        grid-template-columns: 150px 1fr 150px;
        gap: 20px;
        padding: 10px 0;
    }
    
    .ai-label-column {
        padding-top: 10px;
    }
    
    .conversation-container {
        height: calc(100vh - 180px);
        min-height: 400px;
    }
    
    .conversation-header {
        margin: 0 10px 10px 10px;
        padding: 12px 0;
        gap: 10px;
    }
    
    .message-cloud.ai_1,
    .message-cloud.ai_2 {
        max-width: 75%;
        margin-left: 25%;
        margin-right: 25%;
    }
    
    body::after {
        background-size: 150px 100%, 150px 100%;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .title {
        font-size: 1.4rem;
    }
    
    /* Mobile grid layout - collapse to single column */
    .conversation-space {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Hide side columns on mobile */
    .ai-label-column {
        display: none;
    }
    
    /* Add AI identifiers in messages instead */
    .message-cloud::before {
        content: attr(data-entity);
        display: block;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    .message-cloud.ai_1::before {
        color: #ff4444;
    }
    
    .message-cloud.ai_2::before {
        color: #44ff44;
    }
    
    .conversation-container {
        height: calc(100vh - 160px);
        min-height: 350px;
        max-width: 100%;
    }
    
    .conversation-header {
        margin: 0 5px 10px 5px;
        padding: 10px 0;
        gap: 8px;
    }
    
    .message-cloud {
        max-width: 100%;
        padding: 15px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .message-stream {
        padding: 0 5px;
    }
    
    body::after {
        background-size: 100px 100%, 100px 100%;
    }
    
    .cookie-content {
        padding: 10px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cookie-text {
        font-size: 0.8rem;
    }
    
    .cookie-close {
        align-self: flex-end;
        margin-top: -32px;
    }

    .mood-label {
        color: #666;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        background: rgba(0, 0, 0, 0.7);
        padding: 2px 6px;
        border-radius: 3px;
        display: inline-block;
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Message Areas */
.message-area {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 300px;
}

.left-column .message-area {
    align-items: flex-end;
}

.right-column .message-area {
    align-items: flex-start;
}

/* History Indicators */
.history-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin-bottom: 10px;
}

.history-indicator:hover {
    opacity: 1;
}

.history-dots {
    font-size: 1.2rem;
    color: #666;
    letter-spacing: 2px;
}

.history-count {
    font-size: 0.7rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Message History Overlay */
.message-history {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    max-height: 70vh;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid #333;
    border-radius: 8px;
    backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.message-history.visible {
    opacity: 1;
    visibility: visible;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    color: #ccc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-history {
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    transition: color 0.3s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-history:hover {
    color: #aaa;
}

.history-content {
    max-height: calc(70vh - 60px);
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Custom scrollbar for history */
.history-content::-webkit-scrollbar {
    width: 6px;
}

.history-content::-webkit-scrollbar-track {
    background: rgba(40, 40, 40, 0.3);
}

.history-content::-webkit-scrollbar-thumb {
    background: rgba(100, 100, 100, 0.5);
    border-radius: 3px;
}

.history-content::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 120, 120, 0.7);
}

/* History Message Items */
.history-message {
    background: rgba(25, 25, 25, 0.8);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 15px;
    animation: historySlideIn 0.3s ease-out;
}

.history-message.ai-1 {
    border-left: 2px solid #ff0000;
}

.history-message.ai-2 {
    border-left: 2px solid #00ff00;
}

.history-message .message-text {
    color: #d0d0d0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.history-message .message-time {
    font-size: 0.7rem;
    color: #666;
    font-family: 'SF Mono', monospace;
    text-align: right;
}

@keyframes historySlideIn {
    from { 
        opacity: 0; 
        transform: translateX(-10px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
    }
}

/* Message area hover effects */
.message-area:hover .history-indicator {
    opacity: 0.8;
}

/* Background overlay when history is open */
.history-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.history-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* Info Button */
.info-button {
    position: absolute;
    top: 20px;
    right: 260px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    color: #ddd;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.info-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Support Button */
.support-button {
    position: absolute;
    top: 20px;
    right: 140px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-transform: lowercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
}

.support-button:hover {
    background: linear-gradient(135deg, #ff5252, #ff7979);
    border-color: rgba(255, 82, 82, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
}

/* Discord Button */
.discord-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 16px;
    color: #ddd;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-transform: lowercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    min-width: 100px;
    text-align: center;
    z-index: 1000;
}

.discord-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    text-decoration: none;
    color: #ddd;
}

/* Remove any remaining icon styles */
.discord-icon {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .discord-button {
        bottom: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 90px;
    }
}

@media (max-width: 600px) {
    .discord-button {
        bottom: 15px;
        right: 15px;
        padding: 6px 10px;
        font-size: 0.75rem;
        min-width: 80px;
    }
}

/* Support Link in Modal */
.support-link-container {
    text-align: center;
    margin: 24px 0;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 107, 107, 0.3);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.support-link:hover {
    background: linear-gradient(135deg, #ff5252, #ff7979);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    border-color: rgba(255, 82, 82, 0.5);
    text-decoration: none;
    color: #fff;
}

.coffee-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px 16px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-body {
    padding: 24px 32px 32px 32px;
    color: #ddd;
    line-height: 1.6;
}

.modal-section {
    margin-bottom: 32px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section p {
    margin: 0 0 16px 0;
    color: #ccc;
}

.modal-section ul {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.modal-section li {
    margin-bottom: 8px;
    color: #bbb;
}

.modal-section strong {
    color: #fff;
    font-weight: 600;
}

.modal-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 24px;
}

.modal-footer em {
    color: #888;
    font-style: italic;
    font-size: 1.1rem;
}

/* Attribution Link */
.attribution {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
}

.attribution a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.attribution a:hover {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-notice.visible {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    gap: 20px;
}

.cookie-text {
    color: #ddd;
    font-size: 0.85rem;
    line-height: 1.4;
    flex: 1;
}

.cookie-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    line-height: 1;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Skip link for accessibility and SEO */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    font-size: 14px;
    font-weight: 500;
}

.skip-link:focus {
    top: 6px;
}

/* Header navigation styling */
.header-nav {
    display: flex;
    gap: 10px;
    align-items: center;
} 