/* ========== PREVENT BODY SCROLL ON MOBILE ========== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow: hidden;  /* Prevent HTML scroll */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f5f5 100%);
    min-height: 100%;
    height: 100%;  /* Full height */
    overflow: hidden;  /* Prevent body scroll */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: fixed;  /* Lock body position */
    width: 100%;
    top: 0;
    left: 0;
}

/* Container - Fixed height */
.container {
    width: 100%;
    max-width: 800px;
    height: 95vh;
    max-height: 900px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;  /* Prevent container overflow */
    position: relative;
}




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #f5f5f5 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.container {
    width: 100%;
    max-width: 800px;
    height: 95vh;
    max-height: 900px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header - Blue Gradient */
.header {
    padding: 30px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 50%, #1565C0 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.title {
    font-size: 24px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.model-badge {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

/* Chat Container */
.chat-container {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fafafa;
}




/* Prevent layout shift */
.chat-container:empty::before {
    content: '';
    display: block;
    flex: 1;
}

.container {
    width: 100%;
    max-width: 800px;
    height: 95vh;
    max-height: 900px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative; /* Add this */
}


/* Custom Scrollbar */
.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Welcome Message */
/* Welcome Message - Fixed Layout */
.welcome-message {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    margin: auto 0;  /* Changed from 'auto' to 'auto 0' */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.welcome-message h2 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #1976D2;
}



.welcome-message p {
    font-size: 16px;
    color: #2196F3;
    margin-bottom: 8px;
}

.welcome-message .info {
    font-size: 14px;
    color: #2196F3;
    font-weight: 500;
}

/* Message Bubbles */
.message {
    display: flex !important;
    gap: 12px;
    align-items: flex-start;
    opacity: 1 !important;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

/* User Message - Blue Gradient (Like Image) */
.message.user .message-avatar {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.message.user .message-content {
    background: linear-gradient(135deg, #2196F3 0%, #1E88E5 100%);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.25);
}

/* Assistant Message - White with Border (Like Image) */
.message.assistant .message-avatar {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #1976D2;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.message.assistant .message-content {
    background: white;
    color: #333;
    border: 1.5px solid #e3f2fd;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.message-content {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: 18px;
    line-height: 1.6;
    word-wrap: break-word;
    display: block !important;
    font-size: 15px;
}

/* Typing Indicator - Blue Theme */
.typing-message {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-message .message-content {
    padding: 14px 18px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1.5px solid #90caf9;
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.15);
}

.typing-text {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
    font-weight: 500;
}

.typing-dots {
    display: flex;
    gap: 5px;
    margin-top: 12px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    animation: bounce 0.6s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.4);
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes bounce {
    0%, 60%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-12px) scale(1.1);
        opacity: 1;
    }
}

/* Input Container - Clean White */
.input-container {
    padding: 20px 24px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    align-items: flex-end;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Wide Textarea */
#userInput {
    flex: 1;  /* Takes all available space */
    padding: 14px 18px;
    border: 2px solid var(--input-border);
    border-radius: 24px;
    font-size: 15px;
    resize: none;
    font-family: inherit;
    transition: all 0.3s;
    max-height: 120px;
    line-height: 1.5;
    background: var(--input-bg);
    color: var(--text-primary);
}

#userInput:focus {
    outline: none;
    border-color: var(--input-focus-border);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

#userInput::placeholder {
    color: var(--text-tertiary);
}

/* Compact Icon Buttons */
.send-btn, .clear-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border: none;
    border-radius: 50%;  /* Circular buttons */
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;  /* Don't shrink */
}

.btn-icon {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

/* Send Button - Blue Gradient */
.send-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    margin-bottom: 7px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.send-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

.send-btn:hover:not(:disabled) .btn-icon {
    transform: translateX(2px);
}

.send-btn:active:not(:disabled) {
    transform: translateY(0) scale(1);
}

.send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Clear Button - Red */
.clear-btn {
    background: #f44336;
    color: white;
     margin-bottom: 7px;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.clear-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(244, 67, 54, 0.4);
}

.clear-btn:hover .btn-icon {
    transform: scale(1.1);
}

.clear-btn:active {
    transform: translateY(0) scale(1);
}

/* ========== MOBILE: FULL SCREEN, NO BODY SCROLL ========== */

@media (max-width: 768px) {
    html {
        overflow: hidden;  /* Lock HTML scroll */
        height: 100vh;
        position: fixed;
        width: 100%;
    }
    
    body {
        padding: 0;
        background: white;
        overflow: hidden;  /* Lock body scroll */
        height: 100vh;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
    }

    .container {
        height: 100vh;  /* Full viewport height */
        max-height: 100vh;
        border-radius: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* Header - Fixed at top */
    .header {
        padding: 18px;
        flex-shrink: 0;  /* Don't shrink */
        z-index: 10;
    }

    .title {
        font-size: 20px;
    }

    .model-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    /* Chat Container - ONLY THIS SCROLLS */
    .chat-container {
        flex: 1;  /* Take remaining space */
        padding: 16px;
        gap: 12px;
        overflow-y: auto;  /* Enable scroll ONLY here */
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;  /* Smooth iOS scroll */
        overscroll-behavior: contain;  /* Prevent bounce scroll */
    }

    /* Welcome Message */
    .welcome-message {
        padding: 30px 16px;
    }

    .welcome-message h2 {
        font-size: 24px;
    }

    /* Messages */
    .message-content {
        max-width: 80%;
        font-size: 14px;
        padding: 12px 16px;
    }

    .message-avatar {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 14px;
    }

    .typing-message .message-content {
        padding: 12px 16px;
    }

    .typing-text {
        font-size: 13px;
    }

    .typing-dots span {
        width: 7px;
        height: 7px;
    }

   .input-container {
        padding: 12px 16px;
        margin-bottom: 25px;
        gap: 8px;
    }

    #userInput {
        font-size: 16px;  /* Prevent iOS zoom */
        padding: 12px 16px;
        max-height: 100px;
    }

    /* Smaller icon buttons on mobile */
    .send-btn, .clear-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .btn-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - even more compact */
    .send-btn, .clear-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }

    .btn-icon {
        width: 18px;
        height: 18px;
    }
}


/* ========== RICH TEXT FORMATTING IN MESSAGES ========== */

/* Paragraphs in messages */
.message-content p {
    margin: 0 0 12px 0;
    line-height: 1.6;
}

.message-content p:last-child {
    margin-bottom: 0;
}

/* Bold text */
.message-content strong {
    font-weight: 700;
    color: #1976D2;  /* Blue for emphasis */
}

.message.user .message-content strong {
    color: #ffffff;  /* White in user messages */
    font-weight: 700;
}

/* Italic text */
.message-content em {
    font-style: italic;
    color: #424242;
}

.message.user .message-content em {
    color: #e3f2fd;
}

/* Inline code */
.message-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #d32f2f;
}

.message.user .message-content code {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Bullet lists */
.message-content ul {
    margin: 12px 0;
    padding-left: 24px;
    list-style-type: disc;
}

.message-content ul li {
    margin: 6px 0;
    line-height: 1.6;
}

/* Numbered lists */
.message-content ol {
    margin: 12px 0;
    padding-left: 24px;
    list-style-type: decimal;
}

.message-content ol li {
    margin: 6px 0;
    line-height: 1.6;
}

/* Nested lists */
.message-content ul ul,
.message-content ol ul,
.message-content ul ol,
.message-content ol ol {
    margin: 4px 0;
    padding-left: 20px;
}

/* Line breaks */
.message-content br {
    display: block;
    margin: 8px 0;
    content: "";
}

/* Headings in messages (optional) */
.message-content h1,
.message-content h2,
.message-content h3 {
    margin: 16px 0 8px 0;
    font-weight: 600;
    color: #1976D2;
}

.message-content h1 { font-size: 18px; }
.message-content h2 { font-size: 16px; }
.message-content h3 { font-size: 15px; }

/* Mobile adjustments */
@media (max-width: 768px) {
    .message-content ul,
    .message-content ol {
        padding-left: 20px;
    }
    
    .message-content p {
        margin-bottom: 10px;
    }
    
    .message-content code {
        font-size: 12px;
    }
}


/* ========== iOS SAFARI VIEWPORT FIX ========== */

@supports (-webkit-touch-callout: none) {
    /* Target iOS Safari specifically */
    body {
        height: -webkit-fill-available;
    }
    
    .container {
        height: -webkit-fill-available;
    }
}

/* ========== DARK MODE VARIABLES ========== */

:root {
    /* Light mode colors (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-gradient-start: #e3f2fd;
    --bg-gradient-end: #f5f5f5;
    
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-tertiary: #9e9e9e;
    
    --accent-primary: #2196F3;
    --accent-secondary: #1976D2;
    --accent-tertiary: #1565C0;
    
    --message-user-bg: linear-gradient(135deg, #2196F3 0%, #1E88E5 100%);
    --message-assistant-bg: #ffffff;
    --message-assistant-border: #e3f2fd;
    
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.15);
    
    --input-bg: #fafafa;
    --input-border: #e3f2fd;
    --input-focus-border: #2196F3;
    
    --typing-bg: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    --typing-border: #90caf9;
}

/* Dark mode colors */
[data-theme="dark"] {
    --bg-primary: #1e1e1e;
    --bg-secondary: #2d2d2d;
    --bg-gradient-start: #1a1a2e;
    --bg-gradient-end: #16213e;
    
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-tertiary: #808080;
    
    --accent-primary: #42A5F5;
    --accent-secondary: #2196F3;
    --accent-tertiary: #1976D2;
    
    --message-user-bg: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    --message-assistant-bg: #2d2d2d;
    --message-assistant-border: #404040;
    
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.5);
    
    --input-bg: #2d2d2d;
    --input-border: #404040;
    --input-focus-border: #42A5F5;
    
    --typing-bg: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    --typing-border: #404040;
}

/* ========== THEME TOGGLE BUTTON ========== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 20px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
}

/* ========== APPLY THEME COLORS ========== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    transition: background 0.3s ease;
}

.container {
    width: 100%;
    max-width: 800px;
    height: 95vh;
    max-height: 900px;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Header stays blue gradient (both themes) */
.header {
    padding: 24px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 50%, #1565C0 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Chat Container */
.chat-container {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-secondary);
    transition: background 0.3s ease;
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: color 0.3s ease;
}

.welcome-message h2 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--accent-secondary);
    transition: color 0.3s ease;
}

.welcome-message p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.welcome-message .info {
    font-size: 14px;
    color: var(--accent-primary);
    font-weight: 500;
}

/* User Message */
.message.user .message-avatar {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.message.user .message-content {
    background: var(--message-user-bg);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.25);
    transition: background 0.3s ease;
}

/* Assistant Message */
.message.assistant .message-avatar {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #1976D2;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .message.assistant .message-avatar {
    background: linear-gradient(135deg, #3d3d3d 0%, #2d2d2d 100%);
    color: #42A5F5;
}

.message.assistant .message-content {
    background: var(--message-assistant-bg);
    color: var(--text-primary);
    border: 1.5px solid var(--message-assistant-border);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Rich text in messages */
.message-content strong {
    font-weight: 700;
    color: var(--accent-primary);
}

.message.user .message-content strong {
    color: #ffffff;
}

.message-content code {
    background: var(--input-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #d32f2f;
    transition: background 0.3s ease;
}

[data-theme="dark"] .message-content code {
    background: #1e1e1e;
    color: #ff6b6b;
}

/* Typing Indicator */
.typing-message .message-content {
    padding: 14px 18px;
    background: var(--typing-bg);
    border: 1.5px solid var(--typing-border);
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 12px rgba(33, 150, 243, 0.15);
    transition: all 0.3s ease;
}

.typing-text {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 14px;
    font-weight: 500;
}

/* Input Container */
.input-container {
    padding: 20px 24px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    align-items: flex-end;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#userInput {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--input-border);
    border-radius: 24px;
    font-size: 15px;
    resize: none;
    font-family: inherit;
    transition: all 0.3s;
    max-height: 120px;
    line-height: 1.5;
    background: var(--input-bg);
    color: var(--text-primary);
}

#userInput:focus {
    outline: none;
    border-color: var(--input-focus-border);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

#userInput::placeholder {
    color: var(--text-tertiary);
}

/* Buttons */
.send-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.send-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

.clear-btn {
    background: #f44336;
    color: white;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.clear-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 67, 54, 0.4);
}

/* Custom Scrollbar for dark mode */
[data-theme="dark"] .chat-container::-webkit-scrollbar-thumb {
    background: #555;
}

[data-theme="dark"] .chat-container::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .header-actions {
        gap: 8px;
    }
}
