/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

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

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 40px;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b9d, #4ecdc4, transparent);
    border-radius: 1px;
}

/* Fullscreen Toggle Button */
.fullscreen-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.fullscreen-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.fullscreen-toggle i {
    color: #ff6b9d;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.fullscreen-toggle:hover i {
    color: #ffffff;
}

.fullscreen-toggle-inline {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1001;
}

.fullscreen-toggle-inline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.fullscreen-toggle-inline i {
    color: #ff6b9d;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.fullscreen-toggle-inline:hover i {
    color: #ffffff;
}

.logo h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b9d, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(255, 107, 157, 0.5);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.3)); }
    100% { filter: drop-shadow(0 0 30px rgba(78, 205, 196, 0.5)); }
}

.tagline {
    font-size: 1.2rem;
    color: #b8b8b8;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Main Interface - 3 Column Layout */
.main-interface {
    display: grid;
    grid-template-columns: 0.8fr 2fr 0.8fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
    min-height: 800px;
    transition: all 0.3s ease;
}

/* Fullscreen Mode */
.container.fullscreen-mode {
    padding: 0;
    max-width: 100%;
    min-height: 100vh;
}

.main-interface.fullscreen-interface {
    --sidebar-width: 280px;
    grid-template-columns: 1fr; /* Chat fylder hele gridden; sidepaneler er fixed */
    gap: 20px;
    margin: 0;
    min-height: 100vh;
    max-height: 100vh;
    padding: 20px;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.fullscreen-interface .context-actions-panel,
.fullscreen-interface .navigation-panel {
    position: fixed;
    top: 20px;
    bottom: 20px;
    width: var(--sidebar-width);
    max-height: calc(100vh - 40px);
    margin: 0;
}

.fullscreen-interface .context-actions-panel {
    left: 20px;
}

.fullscreen-interface .navigation-panel {
    right: 20px;
}

.fullscreen-interface .chat-interface {
    grid-column: 1 / -1; /* Udnyt hele kolonnen */
    margin: 0 calc(20px + var(--sidebar-width));
    height: calc(100vh - 40px);
    min-height: calc(100vh - 40px);
    max-height: calc(100vh - 40px);
    position: relative;
}

/* Left Panel - Context Actions */
.context-actions-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 30px;
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: 800px;
    overflow-y: auto;
}

.context-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.context-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.context-subtitle {
    color: #b8b8b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Context Actions */
.context-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.context-action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: left;
}

.context-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.context-action-btn.primary {
    background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

.context-action-btn.primary:hover {
    transform: translateX(5px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
}

.context-action-btn i {
    color: #ff6b9d;
    font-size: 1.2rem;
    width: 20px;
    flex-shrink: 0;
}

.context-action-btn.primary i {
    color: white;
}

.button-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.button-text {
    font-weight: 500;
    font-size: 0.95rem;
}

.button-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    line-height: 1.2;
}

.context-action-btn.primary .button-hint {
    color: rgba(255, 255, 255, 0.8);
}

/* Session Info */
.session-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.session-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.session-item:last-child {
    margin-bottom: 0;
}

.session-label {
    color: #b8b8b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.session-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Center Panel - Enhanced Chat Interface */
.chat-interface {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 800px;
    position: relative;
}

.chat-interface::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff6b9d, #4ecdc4, transparent);
}

/* Breadcrumb Bar */
.breadcrumb-bar {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.breadcrumb-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.breadcrumb-title {
    color: #b8b8b8;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b8b8b8;
}

.breadcrumb-item.active {
    background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
    color: white;
    border-color: transparent;
}

.breadcrumb-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Chat Header */
.chat-header {
    text-align: center;
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.ai-icon {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.ai-icon i {
    color: #ff6b9d;
    font-size: 1.5rem;
    animation: starTwinkle 2s ease-in-out infinite;
}

.ai-icon i:nth-child(2) { animation-delay: 0.3s; }
.ai-icon i:nth-child(3) { animation-delay: 0.6s; }
.ai-icon i:nth-child(4) { animation-delay: 0.9s; }

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

.chat-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced Chat Messages */
.chat-messages {
    flex: 1;
    padding: 25px 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    display: flex;
    gap: 15px;
    animation: fadeIn 0.4s ease-in;
}

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

.message.ai {
    justify-content: flex-start;
}

.message-content {
    max-width: 75%;
    padding: 18px 25px;
    border-radius: 25px;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    backdrop-filter: blur(10px);
}

.message.user .message-content {
    background: linear-gradient(135deg, #ff6b9d, #ff8e9e);
    color: white;
    border-bottom-right-radius: 8px;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
}

.message.ai .message-content {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom-left-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Enhanced message content for widgets */
.message-content.widget {
    max-width: 90%;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.message-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.message.user .message-avatar {
    background: linear-gradient(135deg, #ff6b9d, #ff8e9e);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
}

.message.ai .message-avatar {
    background: rgba(255, 255, 255, 0.1);
    color: #4ecdc4;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Chat Widget Styles */
.chat-widget {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    margin: 10px 0;
    animation: fadeIn 0.4s ease-in;
}

.chat-widget h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

/* Enhanced Dice Widget */
.dice-task-widget {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.05), rgba(78, 205, 196, 0.05));
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.dice-widget {
    text-align: center;
    padding: 30px 20px;
}

.dice {
    font-size: 5rem;
    animation: diceRoll 1s ease-in-out;
    margin-bottom: 20px;
}

@keyframes diceRoll {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.dice-result {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 20px;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.task-title {
    color: #ff6b9d;
    font-size: 1.1rem;
    font-weight: 600;
}

.task-points {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.task-description {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 3px solid #ff6b9d;
}

.task-guidance {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-tip {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b8b8b8;
    font-size: 0.9rem;
}

.task-extras {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.extra-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4ecdc4;
    font-size: 0.85rem;
    font-weight: 500;
}

.extra-item span {
    color: #ffffff;
}

/* Community Stories Widget */
.stories-widget {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.story-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.story-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.story-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.story-mode {
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.story-mode.normativ {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
}

.story-mode.normal {
    background: rgba(255, 107, 157, 0.2);
    color: #ff6b9d;
}

.story-mode.unhinged {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.story-user {
    color: #b8b8b8;
    font-size: 0.85rem;
}

.story-text {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Stats Widget */
.stats-widget {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    color: #ff6b9d;
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    color: #b8b8b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Mode Selection Widget */
.mode-selection-widget {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mode-card {
    padding: 20px;
    border-radius: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-card.normativ {
    background: rgba(78, 205, 196, 0.1);
    border-color: rgba(78, 205, 196, 0.3);
}

.mode-card.normal {
    background: rgba(255, 107, 157, 0.1);
    border-color: rgba(255, 107, 157, 0.3);
}

.mode-card.unhinged {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
}

.mode-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.mode-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.mode-card.normativ h5 { color: #4ecdc4; }
.mode-card.normal h5 { color: #ff6b9d; }
.mode-card.unhinged h5 { color: #ffa500; }

.mode-card p {
    color: #b8b8b8;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Smart suggestions styling */
.smart-suggestion {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(255, 107, 157, 0.1));
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: suggestionGlow 2s ease-in-out infinite alternate;
}

.smart-suggestion i {
    color: #4ecdc4;
    font-size: 1.1rem;
}

.smart-suggestion span {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes suggestionGlow {
    0% { box-shadow: 0 0 15px rgba(78, 205, 196, 0.3); }
    100% { box-shadow: 0 0 25px rgba(78, 205, 196, 0.5); }
}

.mode-card.recommended {
    border-color: #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
    position: relative;
}

.recommendation-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Completion celebration animations */
@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -15px, 0);
    }
    70% {
        transform: translate3d(0, -8px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

.completion-celebration {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(78, 205, 196, 0.1));
    border: 1px solid rgba(255, 107, 157, 0.3);
    box-shadow: 0 0 30px rgba(255, 107, 157, 0.2);
}

/* Experience level indicators */
.experience-level-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.level-badge {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-badge.level-beginner {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.level-badge.level-novice {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.level-badge.level-intermediate {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.level-badge.level-expert {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

.level-text {
    color: #b8b8b8;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Input Area */
.input-area {
    padding: 25px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.input-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-container:focus-within {
    border-color: #ff6b9d;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
    transform: scale(1.02);
}

#messageInput {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 25px;
    font-size: 1rem;
    background: transparent;
    color: #ffffff;
}

#messageInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.send-button {
    background: linear-gradient(135deg, #ff6b9d, #ff8e9e);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

.send-button:hover {
    background: linear-gradient(135deg, #ff8e9e, #ff6b9d);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
}

/* Right Panel - Navigation */
.navigation-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 30px;
    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: 800px;
    overflow-y: auto;
}

.nav-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.nav-subtitle {
    color: #b8b8b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Session Status */
.session-status {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-label {
    color: #b8b8b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: left;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-button.primary {
    background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.3);
}

.nav-button.primary:hover {
    transform: translateX(5px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.5);
}

.nav-button i {
    color: #ff6b9d;
    font-size: 1.2rem;
    width: 20px;
    flex-shrink: 0;
}

.nav-button.primary i {
    color: white;
}

/* Quick Actions */
.quick-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.quick-actions h4 {
    color: #b8b8b8;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.quick-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #b8b8b8;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.quick-btn i {
    color: #ff6b9d;
    font-size: 1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    color: #b8b8b8;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

/* Loading Animation */
.loading {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 20px;
}

.loading-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
    animation: loading 1.4s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-interface {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 20px;
    }
    
    .main-interface.fullscreen-interface {
        --sidebar-width: 260px;
        grid-template-columns: 1fr;
    }
    
    .fullscreen-interface .context-actions-panel,
    .fullscreen-interface .navigation-panel {
        width: var(--sidebar-width);
    }
    
    .fullscreen-interface .chat-interface {
        margin: 0 calc(20px + var(--sidebar-width));
    }
}

@media (max-width: 1024px) {
    .main-interface {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .navigation-panel {
        order: 1;
        position: static;
        max-height: none;
    }
    
    .chat-interface {
        order: 2;
        height: 600px;
    }
    
    .context-actions-panel {
        order: 3;
        position: static;
    }
    
    /* Fullscreen mode adjustments for tablets */
    .main-interface.fullscreen-interface {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .fullscreen-interface .context-actions-panel,
    .fullscreen-interface .navigation-panel {
        position: static;
        width: 100%;
        max-height: none;
    }
    
    .fullscreen-interface .chat-interface {
        margin: 0;
        height: 60vh;
        order: 2;
    }
    
    .fullscreen-interface .context-actions-panel {
        order: 3;
    }
    
    .fullscreen-interface .navigation-panel {
        order: 1;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .container.fullscreen-mode {
        padding: 0;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .main-interface {
        gap: 15px;
    }
    
    .chat-interface {
        height: 500px;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .context-actions-panel,
    .navigation-panel {
        padding: 20px;
    }
    
    .stats-widget {
        grid-template-columns: 1fr;
    }
    
    /* Mobile fullscreen adjustments */
    .fullscreen-interface .chat-interface {
        height: 50vh;
    }
    
    .fullscreen-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .fullscreen-toggle i {
        font-size: 1rem;
    }
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar,
.navigation-panel::-webkit-scrollbar,
.context-actions-panel::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track,
.navigation-panel::-webkit-scrollbar-track,
.context-actions-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb,
.navigation-panel::-webkit-scrollbar-thumb,
.context-actions-panel::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.navigation-panel::-webkit-scrollbar-thumb:hover,
.context-actions-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff8e9e, #45b7d1);
}