:root {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --accent-primary: #ffffff;
    --accent-secondary: #333333;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --message-user: #ffffff;
    --message-ai: #f5f5f5;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f4;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-muted: #666666;
    --accent-primary: #000000;
    --accent-secondary: #e0e0e0;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --message-user: #000000;
    --message-ai: #2c2c2c;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    height: 100vh;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

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.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: backgroundFade 2s ease-in-out 0.5s forwards;
}

@keyframes backgroundFade {
    to { opacity: 1; }
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    background: var(--bg-primary);
    transition: var(--transition);
    position: relative;
    z-index: 2;
    animation: containerSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.chat-cont.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
    max-width: 70%;
}

/* Header */
.chat-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: headerSlideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

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

.chat-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    animation: borderExpand 1s ease-out 1s forwards;
}

@keyframes borderExpand {
    to {
        width: 80%;
    }
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.ai-avatar {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary) !important;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.ai-avatar i {
    color: var(--text-primary) !important;
    font-size: 16px !important;
    z-index: 10;
}

/* Style for AI avatar in chat messages */
.message.ai {
    display: flex;
    gap: 12px;
    padding: 12px 24px;
    position: relative;
}

.message.ai .ai-avatar {
    width: 32px;
    height: 32px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message.ai .ai-avatar i {
    color: var(--text-primary) !important;
    font-size: 16px !important;
}

/* Ensure user messages have proper spacing */
.message.user {
    display: flex;
    justify-content: flex-end;
    padding: 12px 24px;
}

/* Remove the robot emoji overlay */
.ai-avatar::after {
    display: none;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    position: absolute;
    right: 24px;
}

@keyframes avatarPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--accent-primary);
    }
    50% {
        box-shadow: 0 0 0 10px transparent;
    }
}

.ai-avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.header-info h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    transition: var(--transition);
    animation: titleGlow 3s ease-in-out infinite alternate;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 5px var(--accent-primary);
    }
    to {
        text-shadow: 0 0 20px var(--accent-primary), 0 0 30px var(--accent-primary);
    }
}

.status {
    font-size: 14px;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.btn-icon:hover {
    color: var(--bg-primary);
    transform: scale(1.1) rotate(360deg);
    border-color: var(--accent-primary);
}

.btn-icon:hover::before {
    width: 100%;
    height: 100%;
}

#themeToggle {
    animation: themeButtonFloat 3s ease-in-out infinite;
}

@keyframes themeButtonFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.chat-messages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.welcome-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 100%;
    animation: fadeInUp 0.3s ease;
    margin-bottom: 16px;
}

.welcome-message .message-content {
    background: var(--message-bg);
    padding: 12px 16px;
    border-radius: 24px;
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 1px 4px var(--shadow-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}


.welcome-message .ai-avatar::before {
    display: none;
}

.message {
    display: flex;
    margin-bottom: 24px;
    animation: messageSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation-fill-mode: forwards;
}

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

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

.message.ai {
    align-self: flex-start;
    max-width: 100%;
}

.message-content {
    background: var(--message-bg);
    padding: 12px 16px;
    border-radius: 24px;
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 1px 4px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    animation: contentGlow 0.8s ease-out;
}

@keyframes contentGlow {
    0% {
        box-shadow: 0 0 0 0 var(--accent-primary);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

.message.user .message-content {
    background: var(--accent-primary) !important;
    color: white !important;
    border: 1px solid var(--accent-primary);
    margin-left: auto;
    padding: 12px 16px;
    border-radius: 24px;
    max-width: 100%;
    word-wrap: break-word;
    line-height: 1.5;
    position: relative;
    box-shadow: 0 1px 4px var(--shadow-color);
}

[data-theme="dark"] .message.user .message-content,
[data-theme="dark"] .message.user .message-content *,
[data-theme="dark"] .message.user .message-content p,
[data-theme="dark"] .message.user .message-content span,
[data-theme="dark"] .message.user .message-content div {
    color: white !important;
    background: transparent !important;
}

[data-theme="light"] .message.user .message-content {
    background: white !important;
    color: black !important;
    border: 1px solid var(--accent-primary);
}

[data-theme="light"] .message.user .message-content,
[data-theme="light"] .message.user .message-content *,
[data-theme="light"] .message.user .message-content p,
[data-theme="light"] .message.user .message-content span,
[data-theme="light"] .message.user .message-content div {
    color: black !important;
    background: transparent !important;
}

.message.user .message-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    border-radius: inherit;
    pointer-events: none;
}

.message.ai .message-content {
    background: var(--message-ai);
    color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 8px;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.message.ai .message-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    border-radius: inherit;
}

.message.ai .ai-avatar {
background: var(--accent-primary);
color: white !important;
margin-right: 15px;
border-radius: 50%;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
flex-shrink: 0;
position: relative;
transition: var(--transition);
}

.message.ai .ai-avatar i {
color: white !important;
}

.message.ai .ai-avatar::before {
    display: none;
}

.message-time {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 5px;
    text-align: right;
}

.message.ai .message-time {
    text-align: left;
}

/* Input */
.chat-input-container {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 16px;
    backdrop-filter: blur(20px);
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    animation: inputSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

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

.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 40px;
    padding: 10px 16px;
    transition: var(--transition);
    position: relative;
    max-width: 100%;
}

.input-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

.input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.1),
        0 8px 32px var(--shadow-color);
    transform: translateY(-2px) scale(1.01);
}

#messageInput {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    font-family: inherit;
    resize: none;
    outline: none;
    min-height: 24px;
    max-height: 120px;
    line-height: 1.6;
    color: var(--text-primary);
    transition: var(--transition);
}

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

.send-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--accent-primary);
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    transition: var(--transition);
    font-size: 14px;
    position: relative;
    overflow: hidden;
    animation: sendButtonPulse 2s ease-in-out infinite;
}

@keyframes sendButtonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--accent-primary);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px transparent;
    }
}

.send-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

.send-btn:hover:not(:disabled) {
    transform: scale(1.1) rotate(360deg);
    background: var(--bg-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}

.status {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status i {
    font-size: 8px;
    color: #10b981;
    animation: statusBlink 2s ease-in-out infinite;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Search Container */
.search-container {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    animation: searchSlideDown 0.3s ease-out;
}

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

.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    padding: 8px 16px;
    transition: var(--transition);
}

.search-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

#searchInput {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    padding: 8px 0;
}

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


/* Disabled Options Styling */
optgroup {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
}

option:disabled {
    color: var(--text-muted);
    opacity: 0.6;
    font-style: italic;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(12px);
    }
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 28px;
    width: 90%;
    max-width: 400px;
    max-height: 60vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 32px 64px var(--shadow-color),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: var(--accent-primary);
    opacity: 0.6;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-content {
    padding: 32px;
    background: var(--bg-secondary);
    transition: var(--transition);
}

.setting-group {
    margin-bottom: 25px;
}

.setting-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 14px;
}

.setting-group input,
.setting-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 24px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    position: relative;
}

.setting-group input:disabled {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

.setting-group input[type="password"]:not(:disabled) {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: text;
    opacity: 1;
}

.setting-group input:focus,
.setting-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.1),
        0 4px 16px var(--shadow-color);
    transform: translateY(-2px);
}

.setting-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.setting-group input[type="range"] {
    padding: 0;
}

.range-value {
    font-weight: 500;
    color: var(--accent-primary);
    margin-left: 12px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding: 28px 32px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    position: relative;
}

.modal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: var(--accent-primary);
    opacity: 0.6;
}

.btn-primary,
.btn-secondary {
    padding: 14px 28px;
    border: 2px solid transparent;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-2px);
    background: var(--bg-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

.btn-secondary:hover {
    transform: scale(1.05) translateY(-2px);
    background: var(--bg-primary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Loading */
.loading-indicator {
    display: none;
    align-items: center;
    margin: 20px 0;
    padding-left: 55px;
}

.loading-indicator.active {
    display: flex;
}

.typing-animation {
    display: flex;
    gap: 4px;
}

.typing-animation span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-animation span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-animation span:nth-child(3) {
    animation-delay: 0.4s;
}

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

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #2d2d44;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #4c9aff;
}

/* Responsive */
@media (max-width: 768px) {
    .chat-container {
        margin: 10px;
        height: calc(100vh - 20px);
        border-radius: 15px;
    }
    
    .chat-header {
        padding: 15px 20px;
        border-radius: 15px 15px 0 0;
    }
    
    .header-info h1 {
        font-size: 20px;
    }
    
    .ai-avatar {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .chat-messages {
        padding: 20px;
    }
    
    .chat-input-container {
        padding: 15px 20px 20px;
    }
    
    .message-content {
        max-width: 85%;
        padding: 12px 16px;
    }
    
    .modal {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .modal-content {
        padding: 20px;
    }
}
