/* ==========================================================================
   CSS Design System - Die Ehrliche KI (The Honest AI)
   ========================================================================== */

/* Root Variables */
:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Theme Colors (Cyberpunk Dark) */
    --bg-dark: #090d16;
    --bg-card: rgba(17, 25, 40, 0.65);
    --bg-card-hover: rgba(26, 38, 60, 0.8);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(168, 85, 247, 0.2);
    
    /* Brand Accents */
    --accent-purple: #a855f7;
    --accent-purple-glow: rgba(168, 85, 247, 0.4);
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.4);
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.4);
    --accent-yellow: #eab308;
    --accent-yellow-glow: rgba(234, 179, 8, 0.4);

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Layout */
    --sidebar-width: 280px;
    --input-width: 800px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    
    /* Dynamic Active Theme (changed by JS) */
    --theme-accent: var(--accent-purple);
    --theme-accent-glow: var(--accent-purple-glow);
}

.image-theme {
    --theme-accent: var(--accent-cyan);
    --theme-accent-glow: var(--accent-cyan-glow);
}

/* Reset & Scrollbars */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--theme-accent);
}

/* ==========================================================================
   Background Mesh & Ambient Effects
   ========================================================================== */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at bottom left, #0e172a, #090d16 60%);
}

.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    mix-blend-mode: screen;
    pointer-events: none;
}

.orb-1 {
    top: -10%;
    right: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    animation: floatOrb 25s infinite alternate;
}

.orb-2 {
    bottom: -20%;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    animation: floatOrb 30s infinite alternate-reverse;
}

.orb-3 {
    top: 30%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 70%);
    animation: floatOrb 20s infinite alternate;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(8%, 12%) scale(1.15);
    }
}

/* ==========================================================================
   App Structure Layout
   ========================================================================== */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
}

/* Mobile Header (Hidden on Desktop) */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.icon-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background: rgba(9, 13, 22, 0.4);
    border-right: 1px solid var(--border-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    z-index: 90;
    transition: var(--transition-smooth);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
}

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

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(234, 179, 8, 0.4));
    animation: monkeyBounce 4s infinite ease-in-out;
}

@keyframes monkeyBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(5deg); }
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.accent-text {
    color: var(--accent-purple);
    background: linear-gradient(135deg, var(--accent-purple) 30%, var(--accent-cyan) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.new-chat-btn {
    margin: 20px 16px 10px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.new-chat-btn:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
    transform: translateY(-1px);
}

/* History List */
.history-section {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.history-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding-left: 12px;
    margin-bottom: 12px;
    display: block;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.history-item.active {
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.08);
    border-left: 3px solid var(--accent-purple);
    border-radius: 0 8px 8px 0;
    padding-left: 9px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-light);
    background: rgba(9, 13, 22, 0.2);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-status {
    font-size: 11px;
    color: var(--accent-cyan);
}

/* ==========================================================================
   Main Chat Container & Area
   ========================================================================== */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 10;
    overflow: hidden; /* Prevents overflow from propagating */
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 40px 24px 20px;
    display: flex;
    flex-direction: column;
}

/* Welcome Screen */
.welcome-screen {
    max-width: var(--input-width);
    margin: 40px auto auto;
    width: 100%;
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.welcome-header {
    text-align: center;
    margin-bottom: 48px;
}

.welcome-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 5vw, 44px);
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-purple) 20%, var(--accent-cyan) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 2px;
}

.welcome-subtitle {
    color: var(--text-secondary);
    font-size: clamp(14px, 2vw, 17px);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Info Grid cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon.purple {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.info-icon.cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.info-icon.emerald {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.info-card p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Quick Suggestions */
.suggestions-section {
    max-width: 650px;
    margin: 0 auto;
}

.suggestions-section h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-align: center;
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.suggestion-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    padding: 10px 14px;
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.suggestion-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-glow);
    color: var(--text-primary);
    transform: scale(1.02);
}

/* ==========================================================================
   Chat Feed & Messages
   ========================================================================== */
.chat-feed {
    max-width: var(--input-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.message-wrapper {
    display: flex;
    gap: 16px;
    width: 100%;
    opacity: 0;
    transform: translateY(12px);
    animation: bubbleEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bubbleEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.message-wrapper.user .message-avatar {
    background: linear-gradient(135deg, var(--accent-purple) 0%, #7c3aed 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    order: 2;
}

.message-wrapper.ai .message-avatar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
}

.message-bubble {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: var(--border-radius-lg);
    line-height: 1.55;
    font-size: 14.5px;
    position: relative;
}

.message-wrapper.user .message-bubble {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: var(--text-primary);
    border-top-right-radius: 4px;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.05);
}

.message-wrapper.ai .message-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    border-top-left-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Typewriter blinking cursor effect */
.typing-cursor::after {
    content: '▋';
    display: inline-block;
    color: var(--accent-purple);
    animation: cursorBlink 0.8s infinite;
    font-size: 13px;
    margin-left: 2px;
    vertical-align: middle;
}

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

/* AI Pending State / Loading Indicator */
.ai-pending {
    display: flex;
    gap: 5px;
    padding: 8px 4px;
    align-items: center;
}

.pending-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out both;
}

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

@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.1); opacity: 1; var(--theme-accent); }
}

/* ==========================================================================
   Image Generation Card Styles
   ========================================================================== */
.monkey-card {
    width: 100%;
    max-width: 420px;
    background: rgba(17, 25, 40, 0.8);
    border: 2px solid var(--accent-yellow);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(234, 179, 8, 0.2);
    margin-top: 10px;
    animation: cardReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.monkey-card-header {
    background: rgba(234, 179, 8, 0.1);
    padding: 8px 12px;
    border-bottom: 1px solid rgba(234, 179, 8, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent-yellow);
    text-transform: uppercase;
}

.card-badge {
    background: var(--accent-yellow);
    color: #000;
    font-weight: 800;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.monkey-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #000;
    overflow: hidden;
}

.monkey-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.monkey-img:hover {
    transform: scale(1.05);
}

.monkey-card-footer {
    padding: 14px;
    background: rgba(9, 13, 22, 0.6);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.monkey-prompt {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    font-style: italic;
}

.download-btn {
    width: 100%;
    padding: 10px;
    background: var(--accent-yellow);
    color: #000;
    border: none;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.download-btn:hover {
    background: #facc15;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.4);
    transform: translateY(-1px);
}

/* Image Generation Loading Log / Hologram console */
.generator-console {
    border: 1px dashed var(--accent-cyan);
    background: rgba(6, 182, 212, 0.03);
    border-radius: var(--border-radius-md);
    padding: 16px;
    max-width: 450px;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.05);
    position: relative;
    overflow: hidden;
}

/* Hologram Scanning Line */
.generator-console::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    animation: scanLine 2.5s linear infinite;
    opacity: 0.6;
}

@keyframes scanLine {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.console-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-family: monospace;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
    padding-bottom: 6px;
}

.console-logs {
    font-family: monospace;
    font-size: 11.5px;
    color: #22d3ee;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 80px;
    justify-content: flex-end;
}

.log-entry {
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-time {
    color: var(--text-muted);
    font-size: 10px;
}

.log-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: logSpin 0.6s linear infinite;
    display: inline-block;
}

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

.console-progressbar {
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 14px;
    border-radius: 2px;
    overflow: hidden;
}

.progressbar-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: width 0.3s ease;
}

/* ==========================================================================
   Input Floating Panel Area
   ========================================================================== */
.input-panel {
    width: 100%;
    padding: 16px 24px 24px;
    background: rgba(9, 13, 22, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
}

.input-glass-container {
    pointer-events: auto; /* Enable clicks inside the actual panel */
    max-width: var(--input-width);
    width: 100%;
    background: rgba(13, 20, 35, 0.65);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Accent glow based on mode */
.input-glass-container:focus-within {
    border-color: var(--theme-accent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
                0 0 15px var(--theme-accent-glow),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mode Switch Tabs */
.mode-tabs {
    display: flex;
    gap: 4px;
    padding-left: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 6px;
}

.mode-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.mode-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.mode-tab.active {
    color: var(--theme-accent);
    background: rgba(255, 255, 255, 0.05);
}

/* Input text area and buttons */
.input-row {
    display: flex;
    flex-direction: column;
    padding: 6px 8px;
    gap: 12px;
}

#prompt-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14.5px;
    line-height: 1.5;
    resize: none;
    min-height: 24px;
    max-height: 160px;
    padding: 4px 0;
}

#prompt-input::placeholder {
    color: var(--text-muted);
}

.action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 10px;
}

.char-counter {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.send-btn {
    background: var(--theme-accent);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.send-btn:hover:not(:disabled) {
    box-shadow: 0 0 15px var(--theme-accent-glow);
    transform: translateY(-1px);
}

.send-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.input-disclaimer {
    pointer-events: auto;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
    max-width: 600px;
    line-height: 1.4;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
    /* Hide sidebar and adjust margins */
    .sidebar {
        position: fixed;
        left: -100%;
        top: 60px;
        height: calc(100% - 60px);
        width: 100%;
        max-width: 300px;
        box-shadow: 20px 0 40px rgba(0, 0, 0, 0.5);
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .chat-area {
        padding-top: 60px;
    }
    
    .chat-container {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 24px;
        padding-bottom: 16px;
    }
    
    .welcome-screen {
        margin-top: 10px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .input-panel {
        padding: 12px 12px 16px;
    }
}
