/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: rgba(128, 128, 128, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(2px);
}

.custom-cursor.hover {
    width: 24px;
    height: 24px;
    background: rgba(128, 128, 128, 0.3);
}

body {
    cursor: none;
}

/* Menu Button */
.menu-button {
    position: fixed;
    top: 24px;
    left: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.menu-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.menu-button:active {
    transform: scale(0.95);
}

/* Conversation Sidebar */
.conversation-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(32px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.conversation-sidebar.open {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.close-sidebar {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-sidebar:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.conversation-item {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    group: hover;
}

.conversation-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.conversation-item.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-preview {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.conversation-item:hover .conversation-actions {
    opacity: 1;
}

.delete-conversation {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.delete-conversation:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.new-conversation-btn {
    width: 100%;
    padding: 12px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    color: rgba(139, 92, 246, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.new-conversation-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.3);
    color: rgba(139, 92, 246, 1);
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.theme-switcher:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.theme-switcher:active {
    transform: scale(0.95);
}

/* Footer Info */
.footer-info {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 100;
    pointer-events: none;
}

.footer-info p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.4;
}

/* Voice Recording */
.voice-btn.recording {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.voice-recording-indicator {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(32px);
    background: rgba(239, 68, 68, 0.1);
    border-radius: 24px;
    padding: 12px 20px;
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.3);
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.3s ease;
}

.voice-recording-indicator.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.recording-pulse {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    animation: recordingPulse 1.5s ease-in-out infinite;
}

@keyframes recordingPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.recording-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #ef4444;
    font-weight: 500;
}

.hidden {
    display: none !important;
}

/* Skye Logo in Typing Indicator */
.skye-logo {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
}

/* Original Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
    transition: all 0.3s ease;
}

.chat-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.background-effects {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(128px);
    mix-blend-mode: normal;
    animation: pulse 4s ease-in-out infinite;
}

.bg-blob-1 {
    top: 0;
    left: 25%;
    width: 384px;
    height: 384px;
    background: rgba(139, 92, 246, 0.1);
}

.bg-blob-2 {
    bottom: 0;
    right: 25%;
    width: 384px;
    height: 384px;
    background: rgba(99, 102, 241, 0.1);
    animation-delay: 700ms;
}

.bg-blob-3 {
    top: 25%;
    right: 33%;
    width: 256px;
    height: 256px;
    background: rgba(217, 70, 239, 0.1);
    filter: blur(96px);
    animation-delay: 1000ms;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Mouse Follow Effect */
.mouse-follow-effect {
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    background: linear-gradient(45deg, #8b5cf6, #ec4899, #6366f1);
    filter: blur(96px);
    transition: opacity 0.3s ease;
}

.mouse-follow-effect.active {
    opacity: 0.02;
}

/* Main Chat Wrapper */
.chat-wrapper {
    width: 100%;
    max-width: 512px;
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.chat-header {
    text-align: center;
    margin-bottom: 48px;
}

.chat-title {
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    animation: fadeInUp 0.5s ease-out 0.2s both;
}

.title-underline {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    width: 0;
    margin: 0 auto 12px;
    animation: expandWidth 0.8s ease-out 0.5s both;
}

@keyframes expandWidth {
    to { width: 100%; }
}

.chat-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    animation: fadeInUp 0.5s ease-out 0.3s both;
}

/* Messages Container */
.messages-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 24px;
    padding: 0 8px;
}

.message {
    margin-bottom: 16px;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    text-align: right;
}

.message.assistant {
    text-align: left;
}

.message-content {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 0.875rem;
    line-height: 1.5;
}

.message.user .message-content {
    background: #3b82f6;
    color: white;
}

.message.assistant .message-content {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Input Container */
.input-container {
    position: relative;
    margin-bottom: 24px;
}

.command-palette {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 100%;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(24px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 0;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.15s ease;
}

.command-palette.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.command-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.command-option:hover,
.command-option.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.command-option i {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.command-label {
    font-weight: 500;
}

.command-prefix {
    color: rgba(255, 255, 255, 0.4);
    margin-left: auto;
}

/* Input Box */
.input-box {
    backdrop-filter: blur(32px);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: scaleIn 0.3s ease-out 0.1s both;
}

@keyframes scaleIn {
    from { transform: scale(0.98); }
    to { transform: scale(1); }
}

.attachments-container {
    padding: 0 16px;
    padding-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.attachment {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    animation: attachmentSlideIn 0.3s ease-out;
}

@keyframes attachmentSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.attachment-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    width: 12px;
    height: 12px;
    transition: color 0.2s ease;
}

.attachment-remove:hover {
    color: white;
}

#messageInput {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    resize: none;
    outline: none;
    min-height: 60px;
    max-height: 200px;
    font-family: inherit;
    line-height: 1.5;
}

#messageInput::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.input-controls {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(244, 246, 249, 0.02);
    border-radius: 0 0 16px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    padding: 8px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.control-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.control-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.send-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.send-btn.enabled {
    background: white;
    color: #0a0a0b;
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.1);
}

.send-btn.enabled:hover {
    transform: scale(1.01);
}

.send-btn.enabled:active {
    transform: scale(0.98);
}

.send-btn.disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.loading-icon {
    display: none;
    animation: spin 2s linear infinite;
}

.send-btn.loading .loading-icon {
    display: block;
}

.send-btn.loading #sendIcon {
    display: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Command Suggestions */
.command-suggestions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.suggestion-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: suggestionFadeIn 0.3s ease-out;
    animation-fill-mode: both;
}

.suggestion-btn:nth-child(1) { animation-delay: 0ms; }
.suggestion-btn:nth-child(2) { animation-delay: 100ms; }
.suggestion-btn:nth-child(3) { animation-delay: 200ms; }
.suggestion-btn:nth-child(4) { animation-delay: 300ms; }

@keyframes suggestionFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

/* Typing Indicator */
.typing-indicator {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(32px);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    padding: 8px 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
    transition: all 0.3s ease;
}

.typing-indicator.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.typing-avatar {
    width: 32px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.typing-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.typing-dots {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: typingDot 1.2s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.dot:nth-child(1) { animation-delay: 0ms; }
.dot:nth-child(2) { animation-delay: 150ms; }
.dot:nth-child(3) { animation-delay: 300ms; }

@keyframes typingDot {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.85);
    }
    30% {
        opacity: 0.9;
        transform: scale(1.1);
    }
}

/* Code Highlighting */
.message-content code {
    background: rgba(139, 92, 246, 0.1);
    color: #a855f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85em;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.message-content pre {
    background: rgba(0, 0, 0, 0.8);
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.message-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    font-size: inherit;
}

/* Syntax highlighting for common languages */
.message-content .keyword {
    color: #f472b6;
}

.message-content .string {
    color: #34d399;
}

.message-content .comment {
    color: #9ca3af;
    font-style: italic;
}

.message-content .number {
    color: #fbbf24;
}

.message-content .function {
    color: #60a5fa;
}

/* Light Theme */
body.light-theme {
    background: #f8fafc;
    color: #1e293b;
}

.light-theme .custom-cursor {
    background: rgba(128, 128, 128, 0.4);
}

.light-theme .custom-cursor.hover {
    background: rgba(128, 128, 128, 0.2);
}

.light-theme .menu-button,
.light-theme .theme-switcher {
    background: rgba(30, 41, 59, 0.1);
    border: 1px solid rgba(30, 41, 59, 0.2);
    color: rgba(30, 41, 59, 0.8);
}

.light-theme .menu-button:hover,
.light-theme .theme-switcher:hover {
    background: rgba(30, 41, 59, 0.2);
    color: rgba(30, 41, 59, 0.9);
}

.light-theme .conversation-sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-right: 1px solid rgba(30, 41, 59, 0.1);
}

.light-theme .sidebar-header h3 {
    color: rgba(30, 41, 59, 0.9);
}

.light-theme .close-sidebar {
    color: rgba(30, 41, 59, 0.6);
}

.light-theme .close-sidebar:hover {
    color: rgba(30, 41, 59, 0.9);
    background: rgba(30, 41, 59, 0.1);
}

.light-theme .conversation-item {
    background: rgba(30, 41, 59, 0.02);
    border: 1px solid rgba(30, 41, 59, 0.05);
}

.light-theme .conversation-item:hover {
    background: rgba(30, 41, 59, 0.05);
    border-color: rgba(30, 41, 59, 0.1);
}

.light-theme .conversation-title {
    color: rgba(30, 41, 59, 0.9);
}

.light-theme .conversation-preview {
    color: rgba(30, 41, 59, 0.5);
}

.light-theme .footer-info p {
    color: rgba(30, 41, 59, 0.4);
}

.light-theme .bg-blob-1 {
    background: rgba(139, 92, 246, 0.08);
}

.light-theme .bg-blob-2 {
    background: rgba(99, 102, 241, 0.08);
}

.light-theme .bg-blob-3 {
    background: rgba(217, 70, 239, 0.08);
}

.light-theme .mouse-follow-effect.active {
    opacity: 0.01;
}

.light-theme .chat-title {
    background: linear-gradient(to right, rgba(30, 41, 59, 0.9), rgba(30, 41, 59, 0.6));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.light-theme .title-underline {
    background: linear-gradient(to right, transparent, rgba(30, 41, 59, 0.3), transparent);
}

.light-theme .chat-subtitle {
    color: rgba(30, 41, 59, 0.6);
}

.light-theme .input-box {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(30, 41, 59, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.light-theme #messageInput {
    color: rgba(30, 41, 59, 0.9);
}

.light-theme #messageInput::placeholder {
    color: rgba(30, 41, 59, 0.4);
}

.light-theme .input-controls {
    border-top: 1px solid rgba(30, 41, 59, 0.1);
    background: rgba(248, 250, 252, 0.5);
}

.light-theme .control-btn {
    color: rgba(30, 41, 59, 0.6);
}

.light-theme .control-btn:hover {
    color: rgba(30, 41, 59, 0.9);
    background: rgba(30, 41, 59, 0.05);
}

.light-theme .control-btn.active {
    background: rgba(30, 41, 59, 0.1);
    color: rgba(30, 41, 59, 0.9);
}

.light-theme .send-btn.enabled {
    background: #1e293b;
    color: white;
    box-shadow: 0 10px 25px -5px rgba(30, 41, 59, 0.3);
}

.light-theme .send-btn.disabled {
    background: rgba(30, 41, 59, 0.1);
    color: rgba(30, 41, 59, 0.4);
}

.light-theme .message.assistant .message-content {
    background: rgba(30, 41, 59, 0.05);
    color: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(30, 41, 59, 0.1);
}

.light-theme .command-palette {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(30, 41, 59, 0.1);
}

.light-theme .command-option {
    color: rgba(30, 41, 59, 0.7);
}

.light-theme .command-option:hover,
.light-theme .command-option.active {
    background: rgba(30, 41, 59, 0.1);
    color: rgba(30, 41, 59, 0.9);
}

.light-theme .command-option i {
    color: rgba(30, 41, 59, 0.6);
}

.light-theme .command-prefix {
    color: rgba(30, 41, 59, 0.4);
}

.light-theme .suggestion-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(30, 41, 59, 0.1);
    color: rgba(30, 41, 59, 0.6);
}

.light-theme .suggestion-btn:hover {
    color: rgba(30, 41, 59, 0.9);
    background: rgba(255, 255, 255, 0.9);
}

.light-theme .typing-indicator {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(30, 41, 59, 0.1);
}

.light-theme .typing-avatar {
    background: rgba(30, 41, 59, 0.1);
    color: rgba(30, 41, 59, 0.9);
}

.light-theme .typing-text {
    color: rgba(30, 41, 59, 0.7);
}

.light-theme .dot {
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 4px rgba(30, 41, 59, 0.3);
}

.light-theme .attachment {
    background: rgba(30, 41, 59, 0.05);
    color: rgba(30, 41, 59, 0.7);
}

.light-theme .attachment-remove {
    color: rgba(30, 41, 59, 0.4);
}

.light-theme .attachment-remove:hover {
    color: rgba(30, 41, 59, 0.8);
}

.light-theme .message-content code {
    background: rgba(139, 92, 246, 0.08);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.light-theme .message-content pre {
    background: rgba(30, 41, 59, 0.95);
    color: #f1f5f9;
    border: 1px solid rgba(30, 41, 59, 0.2);
}

.light-theme .message-content .keyword {
    color: #ec4899;
}

.light-theme .message-content .string {
    color: #059669;
}

.light-theme .message-content .comment {
    color: #6b7280;
}

.light-theme .message-content .number {
    color: #d97706;
}

.light-theme .message-content .function {
    color: #2563eb;
}

/* Scrollbar Styling */
.messages-container::-webkit-scrollbar,
.conversations-list::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-track,
.conversations-list::-webkit-scrollbar-track {
    background: transparent;
}

.messages-container::-webkit-scrollbar-thumb,
.conversations-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.messages-container::-webkit-scrollbar-thumb:hover,
.conversations-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-container {
        padding: 16px;
    }
    
    .chat-wrapper {
        max-width: 100%;
    }
    
    .chat-title {
        font-size: 1.5rem;
    }
    
    .command-suggestions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .suggestion-btn {
        justify-content: center;
    }
    
    .menu-button,
    .theme-switcher {
        top: 16px;
        width: 40px;
        height: 40px;
    }
    
    .menu-button {
        left: 16px;
    }
    
    .theme-switcher {
        right: 16px;
    }
    
    .conversation-sidebar {
        width: 280px;
    }
    
    .footer-info {
        bottom: 12px;
        left: 12px;
    }
    
    .footer-info p {
        font-size: 0.6875rem;
    }
}

@media (max-width: 480px) {
    .chat-container {
        padding: 12px;
    }
    
    .chat-header {
        margin-bottom: 32px;
    }
    
    .chat-title {
        font-size: 1.25rem;
    }
    
    .input-box {
        border-radius: 12px;
    }
    
    .conversation-sidebar {
        width: 100vw;
    }
    
    .sidebar-header,
    .sidebar-footer {
        padding: 16px;
    }
    
    .conversations-list {
        padding: 12px;
    }
}